aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-01-27 21:08:04 -0800
committerMark Otto <[email protected]>2012-01-27 21:08:04 -0800
commit3934d1b6c4cb975967235547b77e90b4c8c91be2 (patch)
treef62aefd53a6f74d6ed5864a1c6c211cf3f6a6613 /less
parent4e191c423d2d1e834a4cb57ae246d03a82272ee4 (diff)
downloadbootstrap-3934d1b6c4cb975967235547b77e90b4c8c91be2.tar.xz
bootstrap-3934d1b6c4cb975967235547b77e90b4c8c91be2.zip
rgba text color on active buttons for a bit more contrast from their non-active siblings
Diffstat (limited to 'less')
-rw-r--r--less/button-groups.less3
-rw-r--r--less/buttons.less7
2 files changed, 9 insertions, 1 deletions
diff --git a/less/button-groups.less b/less/button-groups.less
index 471d33748..3e08e6b09 100644
--- a/less/button-groups.less
+++ b/less/button-groups.less
@@ -73,7 +73,8 @@
// On hover/focus/active, bring the proper btn to front
.btn-group .btn:hover,
.btn-group .btn:focus,
-.btn-group .btn:active {
+.btn-group .btn:active,
+.btn-group .btn.active {
z-index: 2;
}
diff --git a/less/buttons.less b/less/buttons.less
index 8d75248b3..f1060dc6b 100644
--- a/less/buttons.less
+++ b/less/buttons.less
@@ -18,6 +18,12 @@
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
color: @white
}
+ &.primary.active,
+ &.danger.active,
+ &.success.active,
+ &.info.active {
+ color: rgba(255,255,255,.75);
+ }
&.primary {
.buttonBackground(@primaryButtonBackground, spin(@primaryButtonBackground, 15));
}
@@ -81,6 +87,7 @@
.box-shadow(@shadow);
background-color: darken(@white, 10%);
background-color: darken(@white, 15%) e("\9");
+ color: rgba(0,0,0,.5);
}
&.disabled,
&[disabled] {