[libadwaita/wip/exalm/radii: 4/7] stylesheet: Unlink menu radius and margin




commit 3d790e52031b089c0e13371f08f3ae26e8bc5038
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Thu Oct 14 13:07:48 2021 +0500

    stylesheet: Unlink menu radius and margin
    
    No idea why they were linked.

 src/stylesheet/_common.scss          | 2 +-
 src/stylesheet/widgets/_dialogs.scss | 2 +-
 src/stylesheet/widgets/_menus.scss   | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/stylesheet/_common.scss b/src/stylesheet/_common.scss
index a261f65d..a0add299 100644
--- a/src/stylesheet/_common.scss
+++ b/src/stylesheet/_common.scss
@@ -4,7 +4,7 @@ $button_transition: all 200ms $ease-out-quad;
 $focus_transition: outline-width 200ms $ease-out-quad, outline-offset 200ms $ease-out-quad;
 $button_radius: 5px;
 $menu_radius: 5px;
-$menu_margin: $menu_radius; //margin around menuitems & sidebar items
+$menu_margin: 5px; //margin around menuitems & sidebar items
 $menu_padding: 12px; //inner menuitem padding
 $window_radius: $button_radius + 3;
 $popover_radius: $button_radius + 4;
diff --git a/src/stylesheet/widgets/_dialogs.scss b/src/stylesheet/widgets/_dialogs.scss
index 0b6787be..006f50fb 100644
--- a/src/stylesheet/widgets/_dialogs.scss
+++ b/src/stylesheet/widgets/_dialogs.scss
@@ -35,7 +35,7 @@ window.assistant {
 
     > label {
       padding: 6px 12px;
-      border-radius: $menu-margin;
+      border-radius: $menu_radius;
 
       &.highlight {
         background-color: $view_selected_color;
diff --git a/src/stylesheet/widgets/_menus.scss b/src/stylesheet/widgets/_menus.scss
index f8b74444..3dd2adf0 100644
--- a/src/stylesheet/widgets/_menus.scss
+++ b/src/stylesheet/widgets/_menus.scss
@@ -45,7 +45,7 @@ popover.menu {
 
     &, > scrolledwindow > viewport {
       > stack > box {
-        padding: $menu-margin;
+        padding: $menu_margin;
       }
     }
   }
@@ -110,7 +110,7 @@ popover.menu {
     min-height: 30px;
     min-width: 40px;
     padding: 0 $menu_padding;
-    border-radius: $menu-margin;
+    border-radius: $menu_radius;
 
     @extend %undecorated_button;
 


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