mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-05-17 08:31:05 +00:00
13 lines
235 B
SCSS
13 lines
235 B
SCSS
// Contextual backgrounds
|
|
|
|
// [converter] $parent hack
|
|
@mixin bg-variant($parent, $color) {
|
|
#{$parent} {
|
|
background-color: $color;
|
|
}
|
|
a#{$parent} {
|
|
@include hover {
|
|
background-color: darken($color, 10%);
|
|
}
|
|
}
|
|
}
|