[libadwaita/wip/exalm/stylesheet-cleanups: 6/6] stylesheet: Nest label styles




commit f28e4bdf785d0a104560fe52bfdaf0e24f703a83
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Thu May 20 22:59:01 2021 +0500

    stylesheet: Nest label styles

 src/stylesheet/widgets/_calendar.scss | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/src/stylesheet/widgets/_calendar.scss b/src/stylesheet/widgets/_calendar.scss
index 9a26318d..89b535e2 100644
--- a/src/stylesheet/widgets/_calendar.scss
+++ b/src/stylesheet/widgets/_calendar.scss
@@ -24,23 +24,23 @@ calendar {
 
     > label {
       @include focus-ring($focus-state: 'focus');
-    }
 
-    > label.day-number {
-      padding: 4px;
+      &.day-number {
+        padding: 4px;
 
-      &:selected {
-        border-radius: 3px;
+        &:selected {
+          border-radius: 3px;
 
-        background-color: $selected_bg_color;
-        color: $selected_fg_color;
+          background-color: $selected_bg_color;
+          color: $selected_fg_color;
 
-        &:disabled { color: mix($selected_fg_color, $selected_bg_color, 50%); }
+          &:disabled { color: mix($selected_fg_color, $selected_bg_color, 50%); }
+        }
       }
-    }
 
-    > label.day-number.other-month {
-      color: gtkalpha(currentColor, 0.3);
+      &.day-number.other-month {
+        color: gtkalpha(currentColor, 0.3);
+      }
     }
   }
 }


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