[gtk/wip/jimmac/natigation-sidebar-whitespace: 2/2] Adwaita: navigation-sidebar spacing
- From: Jakub Steiner <jimmac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/jimmac/natigation-sidebar-whitespace: 2/2] Adwaita: navigation-sidebar spacing
- Date: Mon, 14 Sep 2020 09:50:43 +0000 (UTC)
commit dfcb98a3fa6bf3b7044ab85d945254bd010fb318
Author: Jakub Steiner <jimmac gmail com>
Date: Mon Sep 14 11:48:43 2020 +0200
Adwaita: navigation-sidebar spacing
- split from placessidebar as it's more generic
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3138
gtk/theme/Adwaita/_common.scss | 53 ++++++++++++++++++++++--------------------
1 file 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 {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]