2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-08 17:22:31 +03:00

rgba text color on active buttons for a bit more contrast from their non-active siblings

This commit is contained in:
Mark Otto
2012-01-27 21:08:04 -08:00
parent 4e191c423d
commit 3934d1b6c4
3 changed files with 21 additions and 3 deletions
+2 -1
View File
@@ -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;
}
+7
View File
@@ -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] {