From e38d46f9b6d00e36e7bf2e3c33c6aee44ba49065 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Thu, 21 Jun 2018 09:47:14 +0200 Subject: [PATCH] style: multiple buttons style fixes --- src/browser/scss/themes/alt-buttons.scss | 12 +++++++++++- src/browser/scss/themes/flat.scss | 2 +- src/browser/scss/widgets/_panel.scss | 12 +++++------- src/browser/scss/widgets/_switch.scss | 2 +- 4 files changed, 18 insertions(+), 10 deletions(-) diff --git a/src/browser/scss/themes/alt-buttons.scss b/src/browser/scss/themes/alt-buttons.scss index 0faccaa7..6b7d510b 100644 --- a/src/browser/scss/themes/alt-buttons.scss +++ b/src/browser/scss/themes/alt-buttons.scss @@ -1,3 +1,13 @@ +.widget.push-container.on .toggle:before, +.widget.modal-container.on .toggle:before, +.widget.switch-container .value.on:before, +.widget.switcher-container .value.on:before, +.widget.crossfader-container .value.on:before, +.widget.toggle-container.on:not(.led) .toggle:before { + z-index: 1; + opacity: .5; +} + .widget.push-container.on, .widget.modal-container.on, .widget.switch-container .value.on, @@ -9,7 +19,7 @@ font-weight: 900; } -.widget.push-container.active > .label { +.widget.push-container.active:not(.on) > .label { color: var(--color-custom); } diff --git a/src/browser/scss/themes/flat.scss b/src/browser/scss/themes/flat.scss index 385d5f63..967c4818 100644 --- a/src/browser/scss/themes/flat.scss +++ b/src/browser/scss/themes/flat.scss @@ -15,7 +15,7 @@ .toggle-container .toggle.on:after, .push-container .toggle.active:after, .switch-container .switch .value.on:after { - background: var(--color-bg) + // background: var(--color-bg) } .widget { diff --git a/src/browser/scss/widgets/_panel.scss b/src/browser/scss/widgets/_panel.scss index 28368282..d1ef6845 100644 --- a/src/browser/scss/widgets/_panel.scss +++ b/src/browser/scss/widgets/_panel.scss @@ -174,7 +174,7 @@ .modal-container { @extend .toggle-container; - > .toggle:after { + > .label:after { content:"\f0da"!important; font-family: FontAwesome; transform: rotateZ(-45deg); @@ -182,18 +182,16 @@ display: block; width:8rem; height:6rem; - right:2rem!important; - top:1rem!important; - left:auto!important; - bottom:auto!important; + right:2rem; + top:1rem; line-height: 10rem; text-align: center; float:right; position: absolute; box-shadow: none; background: none!important; - color:var(--color-text-fade); - opacity: 1!important; + color: inherit; + opacity: 0.7; } > .panel { diff --git a/src/browser/scss/widgets/_switch.scss b/src/browser/scss/widgets/_switch.scss index 5d7792af..bcecd817 100644 --- a/src/browser/scss/widgets/_switch.scss +++ b/src/browser/scss/widgets/_switch.scss @@ -84,7 +84,7 @@ background: radial-gradient( ellipse at center, transparent, var(--color-bg)); } &:before { - opacity: 0.3 + opacity: 0.3; } } &:first-child {