From 92afd6af12abc0a11f721a8f4c181c55522743ac Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 21 Nov 2018 22:01:34 +0300 Subject: [PATCH] layout fixes --- .../contrast_ratio/contrast_ratio.vue | 3 +++ .../style_switcher/style_switcher.scss | 17 +++++++++++++---- .../style_switcher/style_switcher.vue | 10 ++++------ src/i18n/en.json | 6 +++--- 4 files changed, 23 insertions(+), 13 deletions(-) diff --git a/src/components/contrast_ratio/contrast_ratio.vue b/src/components/contrast_ratio/contrast_ratio.vue index f4f9ea86..bd971d00 100644 --- a/src/components/contrast_ratio/contrast_ratio.vue +++ b/src/components/contrast_ratio/contrast_ratio.vue @@ -54,6 +54,9 @@ export default { display: flex; justify-content: flex-end; + margin-top: -4px; + margin-bottom: 5px; + .label { margin-right: 1em; } diff --git a/src/components/style_switcher/style_switcher.scss b/src/components/style_switcher/style_switcher.scss index 6c6e913a..f8529b4f 100644 --- a/src/components/style_switcher/style_switcher.scss +++ b/src/components/style_switcher/style_switcher.scss @@ -59,6 +59,10 @@ color: var(--cRed, $fallback--cRed); } + .tab-switcher { + margin: 0 -1em; + } + .apply-container, .radius-container, .color-container, @@ -75,10 +79,19 @@ } .color-container{ + > h4 { + width: 99%; + } flex-wrap: wrap; justify-content: space-between; } + .color-container, + .shadow-container, + .radius-container { + margin: 1em 1em 0; + } + .presets-container, .shadow-selector { display: flex; @@ -139,10 +152,6 @@ display:flex; align-items: baseline; } - - h4 { - margin-top: 1em; - } } .radius-item { diff --git a/src/components/style_switcher/style_switcher.vue b/src/components/style_switcher/style_switcher.vue index fbf9a20a..4ed62242 100644 --- a/src/components/style_switcher/style_switcher.vue +++ b/src/components/style_switcher/style_switcher.vue @@ -48,9 +48,9 @@

{{$t('settings.theme_help')}}

-
+
+

{{ $t('settings.style.common_colors.main') }}

-

{{ $t('settings.style.basic_colors.main') }}

@@ -59,21 +59,19 @@
-

{{ $t('settings.style.basic_colors.foreground') }}

-

{{ $t('settings.style.basic_colors.foreground_hint') }}

+

{{ $t('settings.style.common_colors.foreground_hint') }}

+

{{ $t('settings.style.common_colors.rgbo') }}

-

{{ $t('settings.style.basic_colors.rgbo') }}

-

.

diff --git a/src/i18n/en.json b/src/i18n/en.json index 3fcc6da2..b039757e 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -179,9 +179,9 @@ } } }, - "basic_colors": { - "_tab_label": "Basic", - "main": "Basic colors", + "common_colors": { + "_tab_label": "Common", + "main": "Common colors", "foreground": "Panel header, top bar, buttons, text fields", "foreground_hint": "See \"Advanced\" tab for more detailed control", "rgbo": "Icons, accents, badges"