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




commit f9617fced04dca2bfeb58c63a7415d5cb041d811
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]