mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
a96038b50a
- Rather than mix multiple properties in our color utilities, this splits all color and all background utils into separate classes. - Adds new .text-white class to help lighten text color for darker backgrounds
12 lines
235 B
SCSS
12 lines
235 B
SCSS
// Contextual backgrounds
|
|
|
|
@mixin bg-variant($parent, $color) {
|
|
#{$parent} {
|
|
background-color: $color !important;
|
|
}
|
|
a#{$parent} {
|
|
@include hover-focus {
|
|
background-color: darken($color, 10%) !important;
|
|
}
|
|
}
|
|
}
|