mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-14 04:31:09 +00:00
Adwaita: Make sidebar row styling better
- Reorder declaration blocks for code legibility. - Don't lighten text color on :hover and :selected for better contrast. - Add missing :focus-visible:focus-within styling to non-:selected row.
This commit is contained in:
parent
179fc68355
commit
bd0d75e237
@ -3604,25 +3604,25 @@ separator.sidebar {
|
||||
border-radius: $menu-margin;
|
||||
margin: 0 $menu-margin;
|
||||
|
||||
&:hover,
|
||||
&:focus-visible:focus-within {
|
||||
background-color: darken($menu_selected_color, 5%);
|
||||
}
|
||||
|
||||
&:selected {
|
||||
background-color: $menu_selected_color;
|
||||
color: $fg_color;
|
||||
color: inherit;
|
||||
|
||||
&:hover {
|
||||
background-color: darken($menu_selected_color,5%);
|
||||
}
|
||||
|
||||
&:focus-visible:focus-within {
|
||||
outline-width: 0;
|
||||
color: $selected_fg_color;
|
||||
background-color: $selected_bg_color;
|
||||
&:hover { color: $selected_fg_color; background-color: darken($selected_bg_color,10%); }
|
||||
&:hover { background-color: darken($selected_bg_color,10%); }
|
||||
}
|
||||
&:hover:not(:last-child) { /* FIXME: dirty specificity bump */
|
||||
color: $fg_color;
|
||||
background-color: darken($menu_selected_color,5%);
|
||||
}
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: $fg_color;
|
||||
background-color: darken($menu_selected_color, 5%);
|
||||
}
|
||||
|
||||
&:disabled { color: $insensitive_fg_color; }
|
||||
|
Loading…
Reference in New Issue
Block a user