mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-05-27 12:24:03 +00:00
13 lines
230 B
SCSS
13 lines
230 B
SCSS
// Contextual backgrounds
|
|
|
|
@mixin bg-variant($parent, $color) {
|
|
#{$parent} {
|
|
color: #fff;
|
|
background-color: $color;
|
|
}
|
|
a#{$parent} {
|
|
@include hover-focus {
|
|
background-color: darken($color, 10%);
|
|
}
|
|
}
|
|
}
|