mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-30 00:29:52 +02:00
convert to scss
This commit is contained in:
11
scss/mixins/_background-variant.scss
Normal file
11
scss/mixins/_background-variant.scss
Normal file
@@ -0,0 +1,11 @@
|
||||
// Contextual backgrounds
|
||||
|
||||
// [converter] $parent hack
|
||||
@mixin bg-variant($parent, $color) {
|
||||
#{$parent} {
|
||||
background-color: $color;
|
||||
}
|
||||
a#{$parent}:hover {
|
||||
background-color: darken($color, 10%);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user