]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
added variable for the background of checked and indeterminate custom inputs and...
authorgijsbotje <botje_gijs@hotmail.com>
Sat, 6 Jan 2018 00:14:15 +0000 (01:14 +0100)
committergijsbotje <botje_gijs@hotmail.com>
Sat, 6 Jan 2018 00:14:15 +0000 (01:14 +0100)
added styles for these cases

scss/_custom-forms.scss
scss/_variables.scss

index d99a86dc7f96b7f040b0978f4ea62b5e39787cc1..dd844c07f4ba63fca4445c00d087d77fd5dfda9a 100644 (file)
       background-image: $custom-checkbox-indicator-icon-indeterminate;
     }
   }
+
+  .custom-control-input:disabled {
+    &:checked ~ .custom-control-label::before {
+      background-color: $custom-control-indicator-checked-disabled-bg;
+    }
+    &:indeterminate ~ .custom-control-label::before {
+      background-color: $custom-control-indicator-checked-disabled-bg;
+    }
+  }
 }
 
 // Radios
       background-image: $custom-radio-indicator-icon-checked;
     }
   }
+
+  .custom-control-input:disabled {
+    &:checked ~ .custom-control-label::before {
+      background-color: $custom-control-indicator-checked-disabled-bg;
+    }
+  }
 }
 
 
index 31149a5e496c404a0db81d60103b8208eed7a978..fe3f85b3aa87888d67dffe05bccde11d76aee256 100644 (file)
@@ -449,6 +449,7 @@ $custom-control-label-disabled-color:     $gray-600 !default;
 
 $custom-control-indicator-checked-color:        $white !default;
 $custom-control-indicator-checked-bg:           theme-color("primary") !default;
+$custom-control-indicator-checked-disabled-bg:  rgba(theme-color("primary"), .5) !default;
 $custom-control-indicator-checked-box-shadow:   none !default;
 
 $custom-control-indicator-focus-box-shadow:     0 0 0 1px $body-bg, $input-btn-focus-box-shadow !default;