mirror of
https://git.anonymousland.org/anonymousland/anonymousland.git
synced 2024-10-01 11:49:49 -04:00
13 lines
233 B
SCSS
13 lines
233 B
SCSS
|
// Contextual backgrounds
|
||
|
|
||
|
// [converter] $parent hack
|
||
|
@mixin bg-variant($parent, $color) {
|
||
|
#{$parent} {
|
||
|
background-color: $color;
|
||
|
}
|
||
|
a#{$parent}:hover,
|
||
|
a#{$parent}:focus {
|
||
|
background-color: darken($color, 10%);
|
||
|
}
|
||
|
}
|