mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-05-18 12:39:41 +03: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
13 lines
235 B
SCSS
13 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;
|
|
}
|
|
}
|
|
}
|