diff options
| author | gijsbotje <[email protected]> | 2018-01-06 01:14:15 +0100 |
|---|---|---|
| committer | gijsbotje <[email protected]> | 2018-01-06 01:14:15 +0100 |
| commit | d7dbdf91c6c09faccc9734165f8bd5a2cd7f5350 (patch) | |
| tree | 7369d5c93968561706555ba32066eade4f4199b1 /scss/_custom-forms.scss | |
| parent | 34cd2038d2b16f305919e1fc36ff45913e3d1dfd (diff) | |
| download | bootstrap-d7dbdf91c6c09faccc9734165f8bd5a2cd7f5350.tar.xz bootstrap-d7dbdf91c6c09faccc9734165f8bd5a2cd7f5350.zip | |
added variable for the background of checked and indeterminate custom inputs and radios that are disabled
added styles for these cases
Diffstat (limited to 'scss/_custom-forms.scss')
| -rw-r--r-- | scss/_custom-forms.scss | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/scss/_custom-forms.scss b/scss/_custom-forms.scss index d99a86dc7..dd844c07f 100644 --- a/scss/_custom-forms.scss +++ b/scss/_custom-forms.scss @@ -117,6 +117,15 @@ 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 @@ -136,6 +145,12 @@ background-image: $custom-radio-indicator-icon-checked; } } + + .custom-control-input:disabled { + &:checked ~ .custom-control-label::before { + background-color: $custom-control-indicator-checked-disabled-bg; + } + } } |
