mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-22 15:39:59 +00:00
Merge branch 'v4-dev' of https://github.com/twbs/bootstrap into v4-dev
This commit is contained in:
commit
7bce8648ed
@ -3,16 +3,12 @@
|
|||||||
// 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) {
|
@mixin button-variant($background, $border, $active-background: darken($background, 7.5%), $active-border: darken($border, 10%)) {
|
||||||
$active-background: darken($background, 7.5%);
|
|
||||||
$active-border: darken($border, 10%);
|
|
||||||
|
|
||||||
@include 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);
|
||||||
|
|
||||||
// Hover and focus styles are shared
|
|
||||||
&:hover {
|
&:hover {
|
||||||
@include color-yiq($background);
|
@include color-yiq($background);
|
||||||
background-color: $active-background;
|
background-color: $active-background;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user