diff options
author | Jakub Steiner <jimmac@gmail.com> | 2020-09-14 11:48:43 +0200 |
---|---|---|
committer | Jakub Steiner <jimmac@gmail.com> | 2020-09-14 11:51:54 +0200 |
commit | 962f76ddc9c058618ac67effdb01e985e5c53a27 (patch) | |
tree | 8c3e37526be0bc87ea1bfa6c61d7653b8387fc90 /gtk/theme/Adwaita | |
parent | d45aabb4ec7689c677745af990e526822c37f882 (diff) | |
download | gtk+-962f76ddc9c058618ac67effdb01e985e5c53a27.tar.gz |
Adwaita: navigation-sidebar spacing
- split from placessidebar as it's more generic
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3138
Diffstat (limited to 'gtk/theme/Adwaita')
-rw-r--r-- | gtk/theme/Adwaita/_common.scss | 53 |
1 files changed, 28 insertions, 25 deletions
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss index 9b10702bd4..c0f291478e 100644 --- a/gtk/theme/Adwaita/_common.scss +++ b/gtk/theme/Adwaita/_common.scss @@ -3389,35 +3389,16 @@ separator.sidebar { } -/**************** - * File chooser * - ****************/ -$_placesidebar_icons_opacity: 0.7; - -row image.sidebar-icon { opacity: $_placesidebar_icons_opacity; } // dim the sidebar icons - // see bug #786613 for details - // on this oddity - -/* this should be more generic, only using .navigation-sidebar - https://gitlab.gnome.org/GNOME/gtk/-/issues/2929 -*/ -placessidebar, .navigation-sidebar { - list { - padding: 4px 0; - - > row { - margin: 1px 0; - } +/********************** + * Navigation Sidebar * + **********************/ - > separator { - margin: 4px 0; - } - } +.navigation-sidebar { - row { + > row { // Needs overriding of the GtkListBoxRow padding min-height: 36px; - padding: 0px; + padding: 0px 8px; // Using margins/padding directly in the SidebarRow // will make the animation of the new bookmark row jump @@ -3444,6 +3425,27 @@ placessidebar, .navigation-sidebar { } &:disabled { color: $insensitive_fg_color; } + } +} + + +/**************** + * File chooser * + ****************/ + +$_placesidebar_icons_opacity: 0.7; + +row image.sidebar-icon { opacity: $_placesidebar_icons_opacity; } // dim the sidebar icons + // see bug #786613 for details + // on this oddity + +/* this should be more generic, only using .navigation-sidebar + https://gitlab.gnome.org/GNOME/gtk/-/issues/2929 +*/ + +placessidebar { + row:not(:last-child) { //FIXME: specificty bump hack + padding: 0; image.sidebar-icon { &:dir(ltr) { padding-right: 8px; } @@ -3798,6 +3800,7 @@ colorchooser .popover.osd { border-radius: 5px; } &:hover { -gtk-icon-filter: brightness(1.2); } > rubberband { @extend rubberband; } + } .scale-popup { |