Adwaita: selected:hover and focus:selected:hover states

- getting pretty deep, but visually seems to make sense. Selected row hovers
  increase contrast.

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3251
This commit is contained in:
Jakub Steiner
2020-10-13 21:27:17 +02:00
parent 77d4729483
commit f1e9f853de

View File

@@ -3460,10 +3460,11 @@ separator.sidebar {
outline-width: 0;
color: $selected_fg_color;
background-color: $selected_bg_color;
&:hover { background-color: darken($selected_bg_color,10%); }
}
&:hover:not(:last-child) { /* FIXME: dirty specificity bump */
color: $fg_color;
background-color: $menu_selected_color;
color: $selected_fg_color;
background-color: darken(desaturate($selected_bg_color,100%),10%);
}
}