Skip to content
Browse files

Bug 818234 - Add disabled style to switch of building blocks

  • Loading branch information...
1 parent 1762252 commit 4f7af7ac862f704f1077869e0f8ede9c22908995 @RudyLu RudyLu committed with evelynhung Dec 6, 2012
Showing with 15 additions and 3 deletions.
  1. +15 −3 shared/style/switches.css
View
18 shared/style/switches.css
@@ -95,6 +95,21 @@ label input[data-type="switch"] + span:after {
transform: translateX(-5.4rem);
}
+/* switch: disabled state */
+label input[data-type="switch"]:disabled + span:before,
+label input[data-type="switch"]:disabled + span:after {
+ opacity: 0.2;
+}
+
+label input[data-type="switch"]:disabled + span {
+ opacity: 0.3;
+}
+
+label input[data-type="switch"]:checked:disabled + span {
+ opacity: 1;
+ border: solid 1px #A7DBE6;
+}
+
/* 'ON' state */
label input[data-type="switch"]:checked + span {
@@ -110,6 +125,3 @@ label input[data-type="switch"]:checked + span:after {
transform: translateX(0);
}
-label input[data-type="switch"]:disabled + span {
- opacity: 0.5;
-}

0 comments on commit 4f7af7a

Please sign in to comment.
Something went wrong with that request. Please try again.