[libadwaita/wip/exalm/stylesheet2: 41/97] stylesheet: Nest popover menu styles




commit 132197e5dfaa62ba97c9dd74f99071b77219a6c6
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Thu Apr 8 20:02:20 2021 +0500

    stylesheet: Nest popover menu styles

 src/stylesheet/_common.scss | 28 ++++++++++++++++------------
 1 file changed, 16 insertions(+), 12 deletions(-)
---
diff --git a/src/stylesheet/_common.scss b/src/stylesheet/_common.scss
index 3bc41f4..a77beb8 100644
--- a/src/stylesheet/_common.scss
+++ b/src/stylesheet/_common.scss
@@ -1887,7 +1887,9 @@ popover.menu {
   }
 }
 
-// initial styling for popover menu and bar
+/*******************
+ * Popover Menubar *
+ *******************/
 menubar {
   padding: 0px;
   box-shadow: inset 0 -1px transparentize(black, 0.9);
@@ -1905,18 +1907,20 @@ menubar {
       color: $insensitive_fg_color;
       box-shadow: none;
     }
-  }
 
-  & > item popover.menu.background > contents {
-    padding: $menu-margin;
-  }
-  //nested submenus
-  & > item popover.menu popover.menu {
-    padding: 0 0 4px 0;
-  }
-  & > item popover.menu.background popover.menu.background > contents {
-    margin: 0;
-    border-radius: $popover_radius; //including top
+    popover.menu.background > contents {
+      padding: $menu-margin;
+    }
+
+    //nested submenus
+    popover.menu popover.menu {
+      padding: 0 0 4px 0;
+    }
+
+    popover.menu.background popover.menu.background > contents {
+      margin: 0;
+      border-radius: $popover_radius; //including top
+    }
   }
 }
 


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