mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-17 14:54:30 +01:00
Merge branch 'btn-active' of https://github.com/andresgalante/bootstrap into andresgalante-btn-active
This commit is contained in:
commit
9501ed8725
@ -3,16 +3,16 @@
|
|||||||
// Easily pump out default styles, as well as :hover, :focus, :active,
|
// Easily pump out default styles, as well as :hover, :focus, :active,
|
||||||
// and disabled options for all buttons
|
// and disabled options for all buttons
|
||||||
|
|
||||||
@mixin button-variant($background, $border, $active-background: darken($background, 7.5%), $active-border: darken($border, 10%)) {
|
@mixin button-variant($background, $border, $hover-background: darken($background, 7.5%), $hover-border: darken($border, 10%), $active-background: darken($background, 12.5%), $active-border: darken($border, 15%)) {
|
||||||
color: color-yiq($background);
|
@include color-yiq($background);
|
||||||
background-color: $background;
|
background-color: $background;
|
||||||
border-color: $border;
|
border-color: $border;
|
||||||
@include box-shadow($btn-box-shadow);
|
@include box-shadow($btn-box-shadow);
|
||||||
|
|
||||||
@include hover {
|
@include hover {
|
||||||
color: color-yiq($active-background);
|
@include color-yiq($hover-background);
|
||||||
background-color: $active-background;
|
background-color: $hover-background;
|
||||||
border-color: $active-border;
|
border-color: $hover-border;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:focus,
|
&:focus,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user