]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Moved disabled settings into switch-paddle mixin.
authorJ. Eric Ellis <jellisii@gmail.com>
Wed, 21 Feb 2018 15:38:15 +0000 (10:38 -0500)
committerJ. Eric Ellis <jellisii@gmail.com>
Wed, 21 Feb 2018 15:38:15 +0000 (10:38 -0500)
scss/components/_switch.scss

index 481e0dc775369a0e197d157f9ee23ab473c6a22c..b1056da05a0e31cb18063f43968bdcc2af5fb484 100644 (file)
@@ -140,6 +140,12 @@ $switch-cursor-disabled: not-allowed !default;
     }
   }
 
+  // indicate a disabled switch
+  input:disabled ~ & {
+    cursor: $switch-cursor-disabled;
+    opacity: $switch-opacity-disabled;
+  }
+
   input:focus ~ & {
     @include disable-mouse-outline;
   }
@@ -216,11 +222,6 @@ $switch-cursor-disabled: not-allowed !default;
   // <input> element
   .switch-input {
     @include switch-input;
-    // indicate a disabled switch
-    &:disabled ~ .switch-paddle {
-      cursor: $switch-cursor-disabled;
-      opacity: $switch-opacity-disabled;
-    }
   }
 
   // <label> element