diff options
| author | Martijn Cuppens <[email protected]> | 2019-07-25 09:41:13 +0200 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2019-07-25 10:41:13 +0300 |
| commit | 1c05c1dbf11ad272c142b1007e2ded1aa5cf3d7b (patch) | |
| tree | dc04bd84bc16f5324e92bff1bc1306436529d6df /scss/_variables.scss | |
| parent | 172d580db37a24d8f564acc5ae4deb811ba85699 (diff) | |
| download | bootstrap-1c05c1dbf11ad272c142b1007e2ded1aa5cf3d7b.tar.xz bootstrap-1c05c1dbf11ad272c142b1007e2ded1aa5cf3d7b.zip | |
Drop `color()`, `theme-color()` & `gray()` functions (#29083)
Drop `color()`, `theme-color()` & `gray()` functions in favor of variables. The functions just called a `map-get()` of a map where just the variables were defined.
Also the `theme-color-level()` now accepts any color you want instead of only `$theme-colors` colors. The first value now is a variable instead of the `$theme-colors` key.
Diffstat (limited to 'scss/_variables.scss')
| -rw-r--r-- | scss/_variables.scss | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scss/_variables.scss b/scss/_variables.scss index f6eb41910..f7868490c 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -161,7 +161,7 @@ $body-text-align: null !default; // // Style anchor elements. -$link-color: theme-color("primary") !default; +$link-color: $primary !default; $link-decoration: none !default; $link-hover-color: darken($link-color, 15%) !default; $link-hover-decoration: underline !default; @@ -244,7 +244,7 @@ $box-shadow-lg: 0 1rem 3rem rgba($black, .175) !default; $box-shadow-inset: inset 0 1px 2px rgba($black, .075) !default; $component-active-color: $white !default; -$component-active-bg: theme-color("primary") !default; +$component-active-bg: $primary !default; $caret-width: .3em !default; $caret-vertical-align: $caret-width * .85 !default; @@ -661,8 +661,8 @@ $form-file-button-bg: $input-group-addon-bg !default; $form-feedback-margin-top: $form-text-margin-top !default; $form-feedback-font-size: $small-font-size !default; -$form-feedback-valid-color: theme-color("success") !default; -$form-feedback-invalid-color: theme-color("danger") !default; +$form-feedback-valid-color: $success !default; +$form-feedback-invalid-color: $danger !default; $form-feedback-icon-valid-color: $form-feedback-valid-color !default; $form-feedback-icon-valid: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'><path fill='#{$form-feedback-icon-valid-color}' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/></svg>") !default; @@ -985,7 +985,7 @@ $progress-bg: $gray-200 !default; $progress-border-radius: $border-radius !default; $progress-box-shadow: $box-shadow-inset !default; $progress-bar-color: $white !default; -$progress-bar-bg: theme-color("primary") !default; +$progress-bar-bg: $primary !default; $progress-bar-animation-timing: 1s linear infinite !default; $progress-bar-transition: width .6s ease !default; |
