From b15ab4adb837e43409e5e3cf3a40a83ef4dbf62f Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Sun, 8 Jan 2023 22:12:24 -0300 Subject: Initial commit --- .../scss/bootstrap/mixins/_background-variant.scss | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 themes/hugo-whisper-theme/assets/scss/bootstrap/mixins/_background-variant.scss (limited to 'themes/hugo-whisper-theme/assets/scss/bootstrap/mixins/_background-variant.scss') diff --git a/themes/hugo-whisper-theme/assets/scss/bootstrap/mixins/_background-variant.scss b/themes/hugo-whisper-theme/assets/scss/bootstrap/mixins/_background-variant.scss new file mode 100755 index 0000000..494439d --- /dev/null +++ b/themes/hugo-whisper-theme/assets/scss/bootstrap/mixins/_background-variant.scss @@ -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; + } +} -- cgit v1.2.3