mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-26 23:54:23 +01:00
Fixed form switch when enable-rounded
is false
This commit is contained in:
parent
e59b776b1e
commit
e3ec163365
@ -63,11 +63,7 @@ $form-select-indicator-color-dark: $body-color-dark !default;
|
|||||||
$form-select-indicator-dark: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='#{$form-select-indicator-color-dark}' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/></svg>") !default;
|
$form-select-indicator-dark: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='#{$form-select-indicator-color-dark}' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/></svg>") !default;
|
||||||
|
|
||||||
$form-switch-color-dark: rgba($white, .25) !default;
|
$form-switch-color-dark: rgba($white, .25) !default;
|
||||||
@if $enable-rounded {
|
$form-switch-bg-image-dark: if($enable-rounded, url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='#{$form-switch-color-dark}'/></svg>"), url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><rect x='-3' y='-3' width='6' height='6' fill='#{$form-switch-color-dark}'/></svg>")) !default;
|
||||||
$form-switch-bg-image-dark: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='#{$form-switch-color-dark}'/></svg>") !default;
|
|
||||||
} @else {
|
|
||||||
$form-switch-bg-image-dark: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><rect x='-3' y='-3' width='6' height='6' fill='#{$form-switch-color-dark}'/></svg>") !default;
|
|
||||||
}
|
|
||||||
|
|
||||||
// scss-docs-start form-validation-colors-dark
|
// scss-docs-start form-validation-colors-dark
|
||||||
$form-valid-color-dark: $green-300 !default;
|
$form-valid-color-dark: $green-300 !default;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user