summaryrefslogtreecommitdiff
path: root/bootstrap/fonts/less/mixins/background-variant.less
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap/fonts/less/mixins/background-variant.less')
-rwxr-xr-xbootstrap/fonts/less/mixins/background-variant.less9
1 files changed, 9 insertions, 0 deletions
diff --git a/bootstrap/fonts/less/mixins/background-variant.less b/bootstrap/fonts/less/mixins/background-variant.less
new file mode 100755
index 0000000..a85c22b
--- /dev/null
+++ b/bootstrap/fonts/less/mixins/background-variant.less
@@ -0,0 +1,9 @@
+// Contextual backgrounds
+
+.bg-variant(@color) {
+ background-color: @color;
+ a&:hover,
+ a&:focus {
+ background-color: darken(@color, 10%);
+ }
+}