aboutsummaryrefslogtreecommitdiff
path: root/lib/buttons.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-01-26 11:10:07 -0800
committerMark Otto <[email protected]>2012-01-26 11:10:07 -0800
commitedef89f30efd73e5fca9952eef48136f8264aa93 (patch)
treea8f1a6d3c4a5ec3db1c1007a5c087065d3150b14 /lib/buttons.less
parentdd9a0a3f1639ea9a060b147c26601d236d240bf1 (diff)
downloadbootstrap-edef89f30efd73e5fca9952eef48136f8264aa93.tar.xz
bootstrap-edef89f30efd73e5fca9952eef48136f8264aa93.zip
move around some comments in buttons.less, update labels to use correct variables, add snippet to docs about IE9
Diffstat (limited to 'lib/buttons.less')
-rw-r--r--lib/buttons.less15
1 files changed, 13 insertions, 2 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;