aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/buttons.less15
-rw-r--r--lib/labels.less6
2 files changed, 16 insertions, 5 deletions
diff --git a/lib/buttons.less b/lib/buttons.less
index 228b6c06d..cebacd049 100644
--- a/lib/buttons.less
+++ b/lib/buttons.less
@@ -1,6 +1,10 @@
// BUTTON STYLES
// -------------
+
+// Colors
+// ------
+
.btn {
// Set text color
&.primary,
@@ -31,6 +35,9 @@
}
}
+
+// Mixin for generating button backgrounds
+// ---------------------------------------
.buttonBackground(@startColor, @endColor) {
// gradientBar will set the background to a pleasing blend of these, to support IE<=9
.gradientBar(@startColor, @endColor);
@@ -40,18 +47,22 @@
background-color: @endColor;
}
+ // called out separately because IE8 would ignore otherwise
&[disabled] {
background-color: @endColor;
}
+ // IE 7 + 8 can't handle box-shadow to show active, so we darken a bit ourselves
&:active,
&.active {
- // IE 7 + 8 can't handle box-shadow to show active, so we darken a bit ourselves
background-color: darken(@endColor, 10%) e("\9");
}
}
-// Base .btn styles
+
+// Base styles
+// -----------
+
.btn {
// Button Base
display: inline-block;
diff --git a/lib/labels.less b/lib/labels.less
index 114bc85b5..06dc7f3c0 100644
--- a/lib/labels.less
+++ b/lib/labels.less
@@ -9,8 +9,8 @@
text-transform: uppercase;
background-color: @grayLight;
.border-radius(3px);
- &.important { background-color: #c43c35; }
+ &.important { background-color: @errorText; }
&.warning { background-color: @orange; }
- &.success { background-color: @green; }
- &.notice { background-color: lighten(@blue, 25%); }
+ &.success { background-color: @successText; }
+ &.info { background-color: @infoText; }
}