0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-02 14:24:19 +01:00

Wrapped btn:hover, btn.disabled inside .btn

This commit is contained in:
nextgenthemes 2012-07-07 23:20:50 +03:00
parent 7ff1b074ea
commit 7d1c8c2a0c

View File

@ -27,10 +27,9 @@
.border-radius(4px);
.ie7-restore-left-whitespace(); // Give IE7 some love
.box-shadow(~"inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)");
}
// Hover state
.btn:hover {
&:hover {
color: @grayDark;
text-decoration: none;
background-color: darken(@white, 10%);
@ -43,13 +42,13 @@
}
// Focus state for keyboard and accessibility
.btn:focus {
&:focus {
.tab-focus();
}
// Active state
.btn.active,
.btn:active {
&.active,
&:active {
background-color: darken(@white, 10%);
background-color: darken(@white, 15%) e("\9");
background-image: none;
@ -58,8 +57,8 @@
}
// Disabled state
.btn.disabled,
.btn[disabled] {
&.disabled,
&[disabled] {
cursor: default;
background-color: darken(@white, 10%);
background-image: none;
@ -67,6 +66,7 @@
.box-shadow(none);
}
}
// Button Sizes
// --------------------------------------------------