[libadwaita/wip/exalm/borderless: 16/19] stylesheet: Reset toolbar styles for popovers




commit 92c3f3be03ee53e1d97bbd76234bdb3ffe5f3473
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Tue Jul 20 15:32:03 2021 +0500

    stylesheet: Reset toolbar styles for popovers
    
    We've already been propagating button and switch margins. On top of that,
    now we're also making buttons flat. Don't do this and explicitly reset the
    styles instead.

 src/stylesheet/widgets/_toolbars.scss | 22 ++++++++++++++++++++--
 1 file changed, 20 insertions(+), 2 deletions(-)
---
diff --git a/src/stylesheet/widgets/_toolbars.scss b/src/stylesheet/widgets/_toolbars.scss
index 4fec6100..3bdfba8e 100644
--- a/src/stylesheet/widgets/_toolbars.scss
+++ b/src/stylesheet/widgets/_toolbars.scss
@@ -37,8 +37,7 @@
   splitbutton,
   separator:not(.sidebar),
   button,
-  menubutton,
-  .linked2 {
+  menubutton {
     margin-top: 6px;
     margin-bottom: 6px;
   }
@@ -55,6 +54,25 @@
     margin-top: 10px;
     margin-bottom: 10px;
   }
+
+  // Reset styles for popovers
+  popover {
+    button.image-button:not(.raised),
+    button.arrow-button:not(.raised) {
+      @extend %button;
+    }
+
+    entry,
+    spinbutton,
+    splitbutton,
+    separator:not(.sidebar),
+    button,
+    menubutton,
+    switch {
+      margin-top: 0;
+      margin-bottom: 0;
+    }
+  }
 }
 
 .toolbar {


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