[gnome-shell-sass] popupMenu: Remove excess padding from separators



commit f218b69b06a942ddb3e69e0f6e64c33c1674926a
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Feb 14 13:36:04 2020 +0100

    popupMenu: Remove excess padding from separators
    
    Currently separators get all the padding from regular menu items,
    which is excessive for non-interactive elements.
    
    Shuffle style classes around a bit to allow overriding the normal
    padding for separators.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/1004

 widgets/_popovers.scss | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)
---
diff --git a/widgets/_popovers.scss b/widgets/_popovers.scss
index 2dd2b53..b28893f 100644
--- a/widgets/_popovers.scss
+++ b/widgets/_popovers.scss
@@ -82,13 +82,17 @@ $popover_arrow_height: 12px;
 
 // separator
 .popup-separator-menu-item {
-  //-margin-horizontal: 24px;
-  height: 1px; //not really the whole box
-  margin: 6px 64px;
-  background-color: lighten($borders_color, 2%);
-  .popup-sub-menu & { //submenu separators
-    @if $variant == 'dark' {
-      background-color: lighten($bg_color,10%);
+  padding: 0;
+
+  .popup-separator-menu-item-separator {
+    //-margin-horizontal: 24px;
+    height: 1px; //not really the whole box
+    margin: 6px 64px;
+    background-color: lighten($borders_color, 2%);
+    .popup-sub-menu & { //submenu separators
+      @if $variant == 'dark' {
+        background-color: lighten($bg_color,10%);
+      }
     }
   }
 }


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