[gnome-shell/wip/sassWithSomeFixes: 9/33] theme: checkboxes



commit e8e130acf06eefaa4dac889fa181e1a15e8dc3b7
Author: Jakub Steiner <jimmac gmail com>
Date:   Wed Oct 8 15:09:09 2014 +0200

    theme: checkboxes

 data/theme/_common.scss          |   15 +++++++++++++++
 data/theme/_gnome-shell-old.scss |   22 ----------------------
 2 files changed, 15 insertions(+), 22 deletions(-)
---
diff --git a/data/theme/_common.scss b/data/theme/_common.scss
index 864d0f0..179c892 100644
--- a/data/theme/_common.scss
+++ b/data/theme/_common.scss
@@ -104,6 +104,21 @@ StScrollBar {
   }
 }
 
+/* Check Boxes */
+
+.check-box {
+  StBoxLayout { spacing: .8em; }
+  StBin {
+    width: 24px;
+    height: 22px;
+    background-image: url("checkbox-off.svg");
+  }
+  &:focus Stbin { background-image: url("checkbox-off-focused.svg"); }
+  &:checked Stbin { background-image: url("checkbox.svg"); }
+  &:focus:checked Stbin { background-image: url("checkbox-focused.svg"); }
+}
+
+
 /* links */
 .shell-link {
   color: $link_color;
diff --git a/data/theme/_gnome-shell-old.scss b/data/theme/_gnome-shell-old.scss
index e161d49..3d079c8 100644
--- a/data/theme/_gnome-shell-old.scss
+++ b/data/theme/_gnome-shell-old.scss
@@ -21,29 +21,7 @@
 
 /* default text style */
 
-/* Check Boxes */
 
-.check-box StBoxLayout {
-    spacing: .8em;
-}
-
-.check-box StBin {
-    width: 24px;
-    height: 22px;
-    background-image: url("checkbox-off.svg");
-}
-
-.check-box:focus StBin {
-    background-image: url("checkbox-off-focused.svg");
-}
-
-.check-box:checked StBin {
-    background-image: url("checkbox.svg");
-}
-
-.check-box:focus:checked StBin {
-    background-image: url("checkbox-focused.svg");
-}
 
 /* Slider */
 


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