neat-looking variables tab (sans shadow editor)
This commit is contained in:
parent
756ea63b67
commit
cfe52185f7
|
@ -109,6 +109,7 @@
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
grid-area: label;
|
grid-area: label;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
align-self: baseline;
|
||||||
}
|
}
|
||||||
|
|
||||||
&-movement {
|
&-movement {
|
||||||
|
@ -118,6 +119,21 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.variables-editor {
|
||||||
|
.variable-selector {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: auto 1fr auto 10em;
|
||||||
|
grid-template-rows: subgrid;
|
||||||
|
align-items: baseline;
|
||||||
|
grid-gap: 0 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.list-edit-area {
|
||||||
|
display: grid;
|
||||||
|
grid-template-rows: subgrid;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.component-editor {
|
.component-editor {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 6fr 3fr 4fr;
|
grid-template-columns: 6fr 3fr 4fr;
|
||||||
|
|
|
@ -259,7 +259,7 @@
|
||||||
<div
|
<div
|
||||||
key="palette"
|
key="palette"
|
||||||
:label="$t('settings.style.themes3.editor.palette_tab')"
|
:label="$t('settings.style.themes3.editor.palette_tab')"
|
||||||
class="setting-item list-editor"
|
class="setting-item list-editor palette-editor"
|
||||||
>
|
>
|
||||||
<label
|
<label
|
||||||
class="list-select-label"
|
class="list-select-label"
|
||||||
|
@ -297,46 +297,68 @@
|
||||||
<div
|
<div
|
||||||
key="variables"
|
key="variables"
|
||||||
:label="$t('settings.style.themes3.editor.variables_tab')"
|
:label="$t('settings.style.themes3.editor.variables_tab')"
|
||||||
class="setting-item list-editor"
|
class="setting-item list-editor variables-editor"
|
||||||
>
|
>
|
||||||
<label
|
<label
|
||||||
class="list-select-label"
|
class="list-select-label"
|
||||||
for="variables-selector"
|
for="variables-selector"
|
||||||
|
>
|
||||||
|
{{ $t('settings.style.themes3.variables.label') }}
|
||||||
|
{{ ' ' }}
|
||||||
|
</label>
|
||||||
|
<Select
|
||||||
|
id="variables-selector"
|
||||||
|
v-model="selectedVirtualDirectiveId"
|
||||||
|
class="list-select"
|
||||||
|
size="9"
|
||||||
|
>
|
||||||
|
<option
|
||||||
|
v-for="(p, index) in virtualDirectives"
|
||||||
|
:key="p.name"
|
||||||
|
:value="index"
|
||||||
>
|
>
|
||||||
{{ $t('settings.style.themes3.variables.label') }}
|
{{ p.name }}
|
||||||
{{ ' ' }}
|
</option>
|
||||||
</label>
|
</Select>
|
||||||
<Select
|
<SelectMotion
|
||||||
id="variables-selector"
|
class="list-select-movement"
|
||||||
v-model="selectedVirtualDirectiveId"
|
v-model="virtualDirectives"
|
||||||
class="list-select"
|
:selected-id="selectedVirtualDirectiveId"
|
||||||
size="9"
|
:get-add-value="getNewVirtualDirective"
|
||||||
>
|
@update:selectedId="e => selectedVirtualDirectiveId = e"
|
||||||
<option
|
/>
|
||||||
v-for="(p, index) in virtualDirectives"
|
<div class="list-edit-area">
|
||||||
:key="p.name"
|
<div class="variable-selector">
|
||||||
:value="index"
|
<label
|
||||||
|
class="variable-name-label"
|
||||||
|
for="variables-selector"
|
||||||
|
>
|
||||||
|
{{ $t('settings.style.themes3.variables.name_label') }}
|
||||||
|
{{ ' ' }}
|
||||||
|
</label>
|
||||||
|
<input
|
||||||
|
class="input"
|
||||||
|
v-model="selectedVirtualDirective.name"
|
||||||
|
>
|
||||||
|
<label
|
||||||
|
class="variable-type-label"
|
||||||
|
for="variables-selector"
|
||||||
|
>
|
||||||
|
{{ $t('settings.style.themes3.variables.type_label') }}
|
||||||
|
{{ ' ' }}
|
||||||
|
</label>
|
||||||
|
<Select
|
||||||
|
v-model="selectedVirtualDirective.valType"
|
||||||
>
|
>
|
||||||
{{ p.name }}
|
|
||||||
</option>
|
|
||||||
</Select>
|
|
||||||
<SelectMotion
|
|
||||||
class="list-select-movement"
|
|
||||||
v-model="virtualDirectives"
|
|
||||||
:selected-id="selectedVirtualDirectiveId"
|
|
||||||
:get-add-value="getNewVirtualDirective"
|
|
||||||
@update:selectedId="e => selectedVirtualDirectiveId = e"
|
|
||||||
/>
|
|
||||||
<div class="list-edit-area">
|
|
||||||
<Select>
|
|
||||||
<option value='shadow'>shadow</option>
|
<option value='shadow'>shadow</option>
|
||||||
<option value='shadow'>color</option>
|
<option value='shadow'>color</option>
|
||||||
<option value='shadow'>generic</option>
|
<option value='shadow'>generic</option>
|
||||||
</Select>
|
</Select>
|
||||||
<ShadowControl
|
</div>
|
||||||
v-if="selectedVirtualDirective.valType === 'shadow'"
|
<ShadowControl
|
||||||
v-model="selectedVirtualDirectiveParsed"
|
v-if="selectedVirtualDirective.valType === 'shadow'"
|
||||||
/>
|
v-model="selectedVirtualDirectiveParsed"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</tab-switcher>
|
</tab-switcher>
|
||||||
|
|
|
@ -775,7 +775,9 @@
|
||||||
"v2_unsupported": "Older v2 themes don't support palettes. Switch to v3 theme to make use of palettes"
|
"v2_unsupported": "Older v2 themes don't support palettes. Switch to v3 theme to make use of palettes"
|
||||||
},
|
},
|
||||||
"variables": {
|
"variables": {
|
||||||
"label": "Variables"
|
"label": "Variables",
|
||||||
|
"name_label": "Name:",
|
||||||
|
"type_label": "Type:"
|
||||||
},
|
},
|
||||||
"editor": {
|
"editor": {
|
||||||
"title": "Style",
|
"title": "Style",
|
||||||
|
|
Loading…
Reference in a new issue