summaryrefslogtreecommitdiff
path: root/bootstrap/less/mixins/labels.less
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap/less/mixins/labels.less')
-rwxr-xr-xbootstrap/less/mixins/labels.less12
1 files changed, 12 insertions, 0 deletions
diff --git a/bootstrap/less/mixins/labels.less b/bootstrap/less/mixins/labels.less
new file mode 100755
index 0000000..9f7a67e
--- /dev/null
+++ b/bootstrap/less/mixins/labels.less
@@ -0,0 +1,12 @@
+// Labels
+
+.label-variant(@color) {
+ background-color: @color;
+
+ &[href] {
+ &:hover,
+ &:focus {
+ background-color: darken(@color, 10%);
+ }
+ }
+}