mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-17 09:52:29 +01:00
Add extra styles for focused/hovered active outline buttons
This commit is contained in:
parent
6ec9aa34a4
commit
9b8a4bc691
@ -64,19 +64,33 @@
|
|||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
border-color: $color;
|
border-color: $color;
|
||||||
|
|
||||||
|
@include hover {
|
||||||
|
color: #fff;
|
||||||
|
background-color: $color;
|
||||||
|
border-color: $color;
|
||||||
|
}
|
||||||
|
|
||||||
&:focus,
|
&:focus,
|
||||||
&.focus,
|
&.focus {
|
||||||
|
color: #fff;
|
||||||
|
background-color: $color;
|
||||||
|
border-color: $color;
|
||||||
|
}
|
||||||
|
|
||||||
&:active,
|
&:active,
|
||||||
&.active,
|
&.active,
|
||||||
.open > &.dropdown-toggle {
|
.open > &.dropdown-toggle {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
background-color: $color;
|
background-color: $color;
|
||||||
border-color: $color;
|
border-color: $color;
|
||||||
}
|
|
||||||
@include hover {
|
&:hover,
|
||||||
color: #fff;
|
&:focus,
|
||||||
background-color: $color;
|
&.focus {
|
||||||
border-color: $color;
|
color: #fff;
|
||||||
|
background-color: darken($color, 17%);
|
||||||
|
border-color: darken($color, 25%);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.disabled,
|
&.disabled,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user