mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-30 12:24:19 +01:00
06641ca0b3
* 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
14 lines
242 B
SCSS
14 lines
242 B
SCSS
@mixin alert-variant($background, $border, $color) {
|
|
color: $color;
|
|
@include gradient-bg($background);
|
|
border-color: $border;
|
|
|
|
hr {
|
|
border-top-color: darken($border, 5%);
|
|
}
|
|
|
|
.alert-link {
|
|
color: darken($color, 10%);
|
|
}
|
|
}
|