mirror of
https://github.com/privacyguides/privacyguides.org.git
synced 2025-07-30 23:31:08 +00:00
Initial commit
This commit is contained in:
21
_sass/bootstrap/mixins/_background-variant.scss
Executable file
21
_sass/bootstrap/mixins/_background-variant.scss
Executable file
@@ -0,0 +1,21 @@
|
||||
// stylelint-disable declaration-no-important
|
||||
|
||||
// Contextual backgrounds
|
||||
|
||||
@mixin bg-variant($parent, $color) {
|
||||
#{$parent} {
|
||||
background-color: $color !important;
|
||||
}
|
||||
a#{$parent},
|
||||
button#{$parent} {
|
||||
@include hover-focus {
|
||||
background-color: darken($color, 10%) !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@mixin bg-gradient-variant($parent, $color) {
|
||||
#{$parent} {
|
||||
background: $color linear-gradient(180deg, mix($body-bg, $color, 15%), $color) repeat-x !important;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user