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




commit f69518a7e2de0f7fd9280ed358c282b6b4eb3c7f
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]