[libadwaita/wip/exalm/card: 6/14] stylesheet: Support .pill for menu buttons




commit 1265adc654a158622319d3ed002458be57f9e1e9
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Tue Oct 19 18:29:06 2021 +0500

    stylesheet: Support .pill for menu buttons

 src/stylesheet/widgets/_buttons.scss | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/stylesheet/widgets/_buttons.scss b/src/stylesheet/widgets/_buttons.scss
index 31200557..06660448 100644
--- a/src/stylesheet/widgets/_buttons.scss
+++ b/src/stylesheet/widgets/_buttons.scss
@@ -294,6 +294,7 @@ button {
     label { padding: 0; }
   }
 
+  @at-root %pill_button,
   &.pill {
     padding: 10px 32px;
     border-radius: 9999px;
@@ -358,6 +359,7 @@ menubutton {
   &.circular > button { @extend %circular_button; }
   &.flat > button { @extend %button_basic_flat; }
   &.outline > button { @extend %outline_button; }
+  &.pill > button { @extend %pill_button; }
 
   &.suggested-action {
     background-color: $accent_bg_color;
@@ -379,7 +381,7 @@ menubutton {
   &.opaque {
     border-radius: $button_radius;
 
-    &.circular {
+    &.circular, &.pill {
       border-radius: 9999px;
     }
 


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