From 2609c0d0d279031cba579d60bf94cca81544ec4f Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 20 Nov 2018 22:14:49 +0300 Subject: [PATCH] unification of stylings --- src/App.scss | 13 + src/components/color_input/color_input.vue | 35 +-- .../opacity_input/opacity_input.vue | 42 +-- .../shadow_control/shadow_control.vue | 52 ++-- .../style_switcher/style_switcher.vue | 272 +++++------------- 5 files changed, 104 insertions(+), 310 deletions(-) diff --git a/src/App.scss b/src/App.scss index 1021b64b..970a5f74 100644 --- a/src/App.scss +++ b/src/App.scss @@ -64,6 +64,11 @@ button { font-size: 14px; font-family: sans-serif; + i[class*=icon-] { + color: $fallback--text; + color: var(--btnText, $fallback--text); + } + &::-moz-focus-inner { border: none; } @@ -145,6 +150,14 @@ input, textarea, .select { line-height: 16px; } + &[type=range] { + background: none; + border: none; + margin: 0; + box-shadow: none; + flex: 1; + } + &[type=radio], &[type=checkbox] { display: none; diff --git a/src/components/color_input/color_input.vue b/src/components/color_input/color_input.vue index b756d265..34eec248 100644 --- a/src/components/color_input/color_input.vue +++ b/src/components/color_input/color_input.vue @@ -5,7 +5,7 @@ .color-control { - display: flex; - align-items: baseline; - - &.disabled *:not(.opt-l){ - opacity: .5 - } - - .label { - flex: 2; - min-width: 7em; - } - - .opt-l { - align-self: center; - flex: 0; - &::before { - width: 14px; - height: 14px; - } - } - - .text-input { + input.text-input { max-width: 7em; flex: 1; } - - .color-input { - flex: 0; - padding: 1px; - cursor: pointer; - height: 29px; - min-width: 2em; - border: none; - align-self: stretch; - } } diff --git a/src/components/opacity_input/opacity_input.vue b/src/components/opacity_input/opacity_input.vue index e0567ec7..3926915b 100644 --- a/src/components/opacity_input/opacity_input.vue +++ b/src/components/opacity_input/opacity_input.vue @@ -5,7 +5,7 @@ - - diff --git a/src/components/shadow_control/shadow_control.vue b/src/components/shadow_control/shadow_control.vue index b99df35a..cd774d32 100644 --- a/src/components/shadow_control/shadow_control.vue +++ b/src/components/shadow_control/shadow_control.vue @@ -39,7 +39,7 @@
-
+