mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
6a75d07e0c
- Simplifies variables usage - Makes components and brand variable usage more consistent (dark bg and white text throughout instead of some mixed light and dark bgs) - Very likely means lower contrast and thus no more AA compliance (we'll want to fix that eventually obviously)
14 lines
258 B
SCSS
14 lines
258 B
SCSS
// Contextual backgrounds
|
|
|
|
// [converter] $parent hack
|
|
@mixin bg-variant($parent, $color) {
|
|
#{$parent} {
|
|
color: #fff;
|
|
background-color: $color;
|
|
}
|
|
a#{$parent} {
|
|
@include hover-focus {
|
|
background-color: darken($color, 10%);
|
|
}
|
|
}
|
|
}
|