libmalcontent-ui: Cleanup CSS
Use named colors, and reimplement the disabled slider with a CSS grayscale filter.
This commit is contained in:
parent
61141a6670
commit
e8e9231d89
|
@ -1,11 +1,11 @@
|
||||||
/* FIXME: This ‘negative’ variant of a GtkSwitch should probably be
|
/* FIXME: This ‘negative’ variant of a GtkSwitch should probably be
|
||||||
* upstreamed to GTK. See https://gitlab.gnome.org/GNOME/gtk/issues/2470 */
|
* upstreamed to GTK. See https://gitlab.gnome.org/GNOME/gtk/issues/2470 */
|
||||||
switch:checked.restricts {
|
switch:checked.restricts {
|
||||||
background-color: #fffd33;
|
background-color: @yellow_5;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch:checked.restricts, switch:checked.restricts slider {
|
switch:checked.restricts, switch:checked.restricts slider {
|
||||||
border-color: #ffd52b;
|
border-color: @yellow_3;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch:disabled.restricts {
|
switch:disabled.restricts {
|
||||||
|
@ -14,5 +14,5 @@ switch:disabled.restricts {
|
||||||
}
|
}
|
||||||
|
|
||||||
switch:disabled.restricts slider {
|
switch:disabled.restricts slider {
|
||||||
border-color: #bfb8b1;
|
filter: grayscale(100%);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue