neat-looking variables tab (sans shadow editor)
This commit is contained in:
parent
756ea63b67
commit
cfe52185f7
|
@ -109,6 +109,7 @@
|
|||
font-weight: bold;
|
||||
grid-area: label;
|
||||
margin: 0;
|
||||
align-self: baseline;
|
||||
}
|
||||
|
||||
&-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 {
|
||||
display: grid;
|
||||
grid-template-columns: 6fr 3fr 4fr;
|
||||
|
|
|
@ -259,7 +259,7 @@
|
|||
<div
|
||||
key="palette"
|
||||
:label="$t('settings.style.themes3.editor.palette_tab')"
|
||||
class="setting-item list-editor"
|
||||
class="setting-item list-editor palette-editor"
|
||||
>
|
||||
<label
|
||||
class="list-select-label"
|
||||
|
@ -297,7 +297,7 @@
|
|||
<div
|
||||
key="variables"
|
||||
:label="$t('settings.style.themes3.editor.variables_tab')"
|
||||
class="setting-item list-editor"
|
||||
class="setting-item list-editor variables-editor"
|
||||
>
|
||||
<label
|
||||
class="list-select-label"
|
||||
|
@ -328,11 +328,33 @@
|
|||
@update:selectedId="e => selectedVirtualDirectiveId = e"
|
||||
/>
|
||||
<div class="list-edit-area">
|
||||
<Select>
|
||||
<div class="variable-selector">
|
||||
<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"
|
||||
>
|
||||
<option value='shadow'>shadow</option>
|
||||
<option value='shadow'>color</option>
|
||||
<option value='shadow'>generic</option>
|
||||
</Select>
|
||||
</div>
|
||||
<ShadowControl
|
||||
v-if="selectedVirtualDirective.valType === 'shadow'"
|
||||
v-model="selectedVirtualDirectiveParsed"
|
||||
|
|
|
@ -775,7 +775,9 @@
|
|||
"v2_unsupported": "Older v2 themes don't support palettes. Switch to v3 theme to make use of palettes"
|
||||
},
|
||||
"variables": {
|
||||
"label": "Variables"
|
||||
"label": "Variables",
|
||||
"name_label": "Name:",
|
||||
"type_label": "Type:"
|
||||
},
|
||||
"editor": {
|
||||
"title": "Style",
|
||||
|
|
Loading…
Reference in a new issue