libmalcontent-ui: Cleanup CSS

Use named colors, and reimplement the disabled slider with a CSS
grayscale filter.
This commit is contained in:
Georges Basile Stavracas Neto 2022-07-15 19:42:30 -03:00
parent 61141a6670
commit e8e9231d89
1 changed files with 3 additions and 3 deletions

View File

@ -1,11 +1,11 @@
/* FIXME: This negative variant of a GtkSwitch should probably be
* upstreamed to GTK. See https://gitlab.gnome.org/GNOME/gtk/issues/2470 */
switch:checked.restricts {
background-color: #fffd33;
background-color: @yellow_5;
}
switch:checked.restricts, switch:checked.restricts slider {
border-color: #ffd52b;
border-color: @yellow_3;
}
switch:disabled.restricts {
@ -14,5 +14,5 @@ switch:disabled.restricts {
}
switch:disabled.restricts slider {
border-color: #bfb8b1;
filter: grayscale(100%);
}