summaryrefslogtreecommitdiffstats
path: root/resources/scss/bootstrap/mixins/_background-variant.scss
diff options
context:
space:
mode:
Diffstat (limited to 'resources/scss/bootstrap/mixins/_background-variant.scss')
-rw-r--r--resources/scss/bootstrap/mixins/_background-variant.scss12
1 files changed, 12 insertions, 0 deletions
diff --git a/resources/scss/bootstrap/mixins/_background-variant.scss b/resources/scss/bootstrap/mixins/_background-variant.scss
new file mode 100644
index 0000000..533ff12
--- /dev/null
+++ b/resources/scss/bootstrap/mixins/_background-variant.scss
@@ -0,0 +1,12 @@
+// 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%);
+ }
+}