diff options
| author | Gijs Boddeus <[email protected]> | 2018-12-12 14:28:25 +0100 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2018-12-12 15:28:25 +0200 |
| commit | 180a06eeb7484048c6bfb381b04bd96a858d42e5 (patch) | |
| tree | 5d05da005cb1023d4e20261c5231b95bd6297fff /scss/_variables.scss | |
| parent | dbadf24bb31379d1310c50bce5c40457fe1b729e (diff) | |
| download | bootstrap-180a06eeb7484048c6bfb381b04bd96a858d42e5.tar.xz bootstrap-180a06eeb7484048c6bfb381b04bd96a858d42e5.zip | |
Add switch custom form control (#23004)
Diffstat (limited to 'scss/_variables.scss')
| -rw-r--r-- | scss/_variables.scss | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scss/_variables.scss b/scss/_variables.scss index 057a149ea..2d0816808 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -555,6 +555,10 @@ $custom-checkbox-indicator-indeterminate-border-color: $custom-checkbox-indicato $custom-radio-indicator-border-radius: 50% !default; $custom-radio-indicator-icon-checked: str-replace(url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='#{$custom-control-indicator-checked-color}'/%3e%3c/svg%3e"), "#", "%23") !default; +$custom-switch-width: $custom-control-indicator-size * 1.75 !default; +$custom-switch-indicator-border-radius: $custom-control-indicator-size / 2 !default; +$custom-switch-indicator-size: calc(#{$custom-control-indicator-size} - #{$custom-control-indicator-border-width * 4}) !default; + $custom-select-padding-y: $input-btn-padding-y !default; $custom-select-padding-x: $input-btn-padding-x !default; $custom-select-height: $input-height !default; |
