Compare commits

...

2 Commits

Author SHA1 Message Date
Jakub Steiner
5baf7c83d0 Adwaita: work around popover shadow clipping
- rather than solving the issue, make the clipped rectangle
  look less bad by clipping on all sides but bottom

https://gitlab.gnome.org/GNOME/gtk/-/issues/1987
2020-11-20 17:07:31 +01:00
Jakub Steiner
6937830c38 Adwaita: unified sidebar styles (fixed)
- stacksidebar focus, separation and color as everything else
- eliminate placessidebar double padding

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3382
2020-11-20 13:39:17 +01:00

View File

@@ -1862,7 +1862,7 @@ $_menu-padding: 12px; //inner menuitem padding
popover.menu {
padding: 0;
margin: 0 3px 5px 3px; //alocate space for dropshadow. #1987
margin-bottom: 3px; //work around shadow clipping. #1987
box.inline-buttons {
padding: 0 $_menu-padding;
@@ -3563,6 +3563,10 @@ filechooserbutton:drop(active) {
}
stacksidebar {
//not a regular list
list.separators:not(.horizontal) > row:not(.separator) {
border-bottom: none;
}
row {
padding: 10px 4px;
@@ -3573,8 +3577,20 @@ stacksidebar {
&.needs-attention > label {
@extend %needs_attention;
background-size: 6px 6px, 0 0;
background-size: 6px 6px, 0 0;
}
&:selected {
background-color: $menu_selected_color;
border-radius: $menu_radius;
color: $fg_color;
}
&:selected:hover:dir(ltr), &:selected:hover:dir(rtl) {
background-color: darken($menu_selected_color,5%);
}
&:focus:focus-visible {
outline-width: 0;
background-color: $selected_bg_color;
color: $selected_fg_color;
}
}
}
@@ -3649,6 +3665,7 @@ row image.sidebar-icon { opacity: $_placesidebar_icons_opacity; } // dim the sid
*/
placessidebar {
&.sidebar { padding: 0; } //override default as it's nested
row:not(:last-child) { //FIXME: specificty bump hack
padding: 0;