styles: simplify toggle style (set color on container element, let label inherit)

themes: update alt-buttons
This commit is contained in:
jean-emmanuel 2018-03-04 11:19:14 +01:00
parent 42caa043da
commit 4b6cd0f091
2 changed files with 4 additions and 7 deletions

View file

@ -1,13 +1,11 @@
.widget.push-container.on,
.widget.modal-container.on,
.widget.switch-container .value.on,
.widget.switcher-container .value.on,
.widget.crossfader-container .value.on,
.widget.toggle-container.on:not(.led)
{
background : var(--color-custom);
}
.widget.push-container.on > .label,
.widget.modal-container.on > .label,
.widget.toggle-container.on:not(.led) > .label
{
color: var(--color-bg);
font-weight: bolder;
}

View file

@ -63,9 +63,8 @@
z-index: 2;
}
&.on > .label {
&.on {
color: var(--color-custom);
opacity: 1;
}
&.led {