From c7e9f21da0eb035b73a165e16f77a9cd18036305 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Thu, 2 Jan 2020 22:44:54 +0200 Subject: color input and opacity input now use Checkbox component. Cleanup. --- src/components/style_switcher/style_switcher.scss | 12 +++++------- src/components/style_switcher/style_switcher.vue | 10 +++++----- 2 files changed, 10 insertions(+), 12 deletions(-) (limited to 'src/components/style_switcher') diff --git a/src/components/style_switcher/style_switcher.scss b/src/components/style_switcher/style_switcher.scss index 135c113a..7291a884 100644 --- a/src/components/style_switcher/style_switcher.scss +++ b/src/components/style_switcher/style_switcher.scss @@ -15,12 +15,14 @@ &.disabled { input, select { - &:not(.exclude-disabled) { - opacity: .5 - } + opacity: .5 } } + .opt { + margin: .5em; + } + input, select { min-width: 3em; margin: 0; @@ -44,10 +46,6 @@ min-width: 3em; } - &[type=checkbox] + label { - margin: 6px 0; - } - &:not([type=number]):not([type=text]) { align-self: flex-start; } diff --git a/src/components/style_switcher/style_switcher.vue b/src/components/style_switcher/style_switcher.vue index f5b12e7e..f993e070 100644 --- a/src/components/style_switcher/style_switcher.vue +++ b/src/components/style_switcher/style_switcher.vue @@ -239,7 +239,7 @@ v-model="panelOpacityLocal" name="panelOpacity" :fallback="previewTheme.opacity.panel" - :showOptionalTickbox="panelColorLocal !== 'transparent'" + :disabled="panelColorLocal === 'transparent'" />
@@ -382,7 +382,7 @@ v-model="underlayOpacityLocal" name="underlayOpacity" :fallback="previewTheme.opacity.underlay" - :showOptionalTickbox="underlayOpacityLocal !== 'transparent'" + :disabled="underlayOpacityLocal === 'transparent'" />
-- cgit v1.2.3-70-g09d2