[libadwaita/wip/exalm/borderless: 4/14] stylesheet: Remove separator margin for non-menu popovers




commit d580582641bbdd5e64849a88c525f6e0f3291690
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Sun Aug 1 00:05:11 2021 +0500

    stylesheet: Remove separator margin for non-menu popovers
    
    It seems to be legacy from GTK3 GtkPopoverMenu era, there's no explanation
    of why it was added:
    
    https://gitlab.gnome.org/GNOME/gtk/-/commit/1c3bad3d907f3b824d93931edf7fb3eaf68f35f8
    
    So let's remove it.

 src/stylesheet/widgets/_menus.scss    | 4 ++++
 src/stylesheet/widgets/_popovers.scss | 6 ------
 2 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/src/stylesheet/widgets/_menus.scss b/src/stylesheet/widgets/_menus.scss
index 3f7c579b..014e0f05 100644
--- a/src/stylesheet/widgets/_menus.scss
+++ b/src/stylesheet/widgets/_menus.scss
@@ -53,6 +53,10 @@ popover.menu {
     margin: 6px 0;
   }
 
+  &.background list separator {
+    margin: 0;
+  }
+
   accelerator {
     color: gtkalpha(currentColor, 0.55);
 
diff --git a/src/stylesheet/widgets/_popovers.scss b/src/stylesheet/widgets/_popovers.scss
index 627a5c00..99d5c412 100644
--- a/src/stylesheet/widgets/_popovers.scss
+++ b/src/stylesheet/widgets/_popovers.scss
@@ -32,12 +32,6 @@ popover.background {
       border-style: none;
       background-color: transparent;
     }
-
-    separator {
-      margin: 3px;
-    }
-
-    list separator { margin: 0; }
   }
 
   .osd &.background,


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