[gnome-shell/wip/snwh/theme-refactor: 23/34] theme: dash, tidy the sass



commit d713d787456ece60071b80183b5e533cd88b8e0d
Author: Sam Hewitt <sam snwh org>
Date:   Thu Dec 19 14:11:59 2019 -0500

    theme: dash, tidy the sass
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/904

 data/theme/gnome-shell-sass/widgets/_dash.scss | 32 +++++++++++++++-----------
 1 file changed, 18 insertions(+), 14 deletions(-)
---
diff --git a/data/theme/gnome-shell-sass/widgets/_dash.scss b/data/theme/gnome-shell-sass/widgets/_dash.scss
index c11ad4dddb..dc02d00e9f 100644
--- a/data/theme/gnome-shell-sass/widgets/_dash.scss
+++ b/data/theme/gnome-shell-sass/widgets/_dash.scss
@@ -43,9 +43,9 @@ $dash_border_radius: $modal_radius * 1.5;
   border:none;
   box-shadow:0 0 0 1px $osd_outer_borders_color;
   color: $osd_fg_color;
+  margin-top: $base_margin + 4px;
   padding: $base_padding $base_padding + 2px;
   text-align: center;
-  margin-top: $base_margin + 4px;
   -x-offset: $base_margin * 2; // distance from the dash edge
 }
 
@@ -54,31 +54,35 @@ $dash_border_radius: $modal_radius * 1.5;
   background-color: transparent;
   color: $osd_fg_color;
 
-  & .overview-icon {
+  &.overview-icon {
     @extend %icon_tile;
     color: $osd_fg_color;
   }
 
-  &:hover .overview-icon,
-  &:focus .overview-icon,
-  &:selected .overview-icon {
-    background-color: transparentize($osd_fg_color,0.9);
-    color: $osd_fg_color;
+  &:hover,
+  &:focus,
+  &:selected {
+    .overview-icon {
+      background-color: transparentize($osd_fg_color,0.9);
+      color: $osd_fg_color;
+    }
   }
 
   &:drop .overview-icon {
     background-color: transparentize($selected_bg_color,.15);
   }
 
-  &:active .overview-icon,
-  &:checked .overview-icon {
-    background-color: darken($osd_bg_color,10%);
+  &:active, &:checked {
+    .overview-icon {
+      background-color: darken($osd_bg_color,10%);
+    }
   }
 
-  &:checked .show-apps-icon,
-  &:focus .show-apps-icon {
-    color: $fg_color;
-    transition-duration: 100ms;
+  &:checked, &:focus {
+     .show-apps-icon {
+      color: $fg_color;
+      transition-duration: 100ms;
+    }
   }
 }
 


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