You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
798 B
SCSS
31 lines
798 B
SCSS
// 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: linear-gradient(87deg, $color 0, adjust-hue($color, 25%) 100%) !important;
|
|
}
|
|
}
|
|
|
|
@mixin bg-translucent-variant($parent, $color) {
|
|
#{$parent} {
|
|
background-color: darken(rgba($color, $translucent-color-opacity), 7%) !important;
|
|
}
|
|
a#{$parent},
|
|
button#{$parent} {
|
|
@include hover-focus {
|
|
background-color: darken(rgba($color, $translucent-color-opacity), 12%) !important;
|
|
}
|
|
}
|
|
}
|