aboutsummaryrefslogtreecommitdiff
path: root/scss/utilities
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2017-10-19 09:03:33 -0700
committerGitHub <[email protected]>2017-10-19 09:03:33 -0700
commit06641ca0b3fe28021907f30c6f297d40f789f2fa (patch)
treeb9a4f25fe7212e089f65f386bcdecc3d30ed4fd6 /scss/utilities
parentd763d019ad3f61bb78c85f9dc2f7b842c8357e71 (diff)
downloadbootstrap-06641ca0b3fe28021907f30c6f297d40f789f2fa.tar.xz
bootstrap-06641ca0b3fe28021907f30c6f297d40f789f2fa.zip
Gradients and shadows (#24429)
* Update the form focus mixin to use a manual `$enable-shadows` check so we can always ensure a focus state for accessibility and consistency * - Add new `$input-btn-focus-width` and `$input-btn-focus-color` variables. - Replace separate `$btn-focus-box-shadow` and `$input-focus-box-shadow` variables with unified `$input-btn-focus-box-shadow` to match our combined variables approach elsewhere. * Put new focus width var to use in buttons mixins * use new button input-box shadow var * Add a new mixin for quickly adding linear gradient to components when $enable-gradients is set to true * use correct var * fix focus shadows in button mixins * Add opt-in gradients to alerts, buttons, carousel, custom radios and checkboxes, custom file input, and dropdown items * Generate .bg-gradient- utilities * add headings to colors page and document bg-gradient utils * update the button color for active status, check with yiq as it's done for basic state and hover state
Diffstat (limited to 'scss/utilities')
-rw-r--r--scss/utilities/_background.scss6
1 files changed, 6 insertions, 0 deletions
diff --git a/scss/utilities/_background.scss b/scss/utilities/_background.scss
index 3d2e07d69..1f18b2f3f 100644
--- a/scss/utilities/_background.scss
+++ b/scss/utilities/_background.scss
@@ -4,6 +4,12 @@
@include bg-variant(".bg-#{$color}", $value);
}
+@if $enable-gradients {
+ @each $color, $value in $theme-colors {
+ @include bg-gradient-variant(".bg-gradient-#{$color}", $value);
+ }
+}
+
.bg-white {
background-color: $white !important;
}