[gtk/nana-4/gtk-sidebar-style-fixes: 3/8] Adwaita: Move placessidebar-specific sizing from .navigation-sidebar




commit 9828756e05bf8236604c04427ad32aeeffce82c0
Author: nana-4 <hnmaigo gmail com>
Date:   Sun Nov 22 12:14:34 2020 +0900

    Adwaita: Move placessidebar-specific sizing from .navigation-sidebar
    
    The common .navigation-sidebar styling should be more generic.

 gtk/theme/Adwaita/_common.scss | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index a5074872be..af54488a80 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -3596,16 +3596,11 @@ separator.sidebar {
   padding: $menu-margin 0; //only vertical padding. horizontal row size would clip
 
   > row {
-    // Needs overriding of the GtkListBoxRow padding
     min-height: 36px;
-    padding: 0px 2px;
+    padding: 0 8px;
     border-radius: $menu-margin;
     margin: 0 $menu-margin;
 
-    // Using margins/padding directly in the SidebarRow
-    // will make the animation of the new bookmark row jump
-    > revealer { padding: 0 14px; }
-
     &:selected {
       background-color: $menu_selected_color;
       color: $fg_color;
@@ -3647,9 +3642,14 @@ row image.sidebar-icon { opacity: $_placesidebar_icons_opacity; } // dim the sid
 */
 
 placessidebar {
-  row:not(:last-child) { //FIXME: specificty bump hack
+  .navigation-sidebar > row {
+    // Needs overriding of the `.navigation-sidebar > row` padding
     padding: 0;
 
+    // Using margins/padding directly in the SidebarRow
+    // will make the animation of the new bookmark row jump
+    > revealer { padding: 0 14px; }
+
     image.sidebar-icon {
       &:dir(ltr) { padding-right: 8px; }
       &:dir(rtl) { padding-left: 8px; }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]