1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-31 00:59:51 +02:00

create a variable for the focus box-shadow, use it in the button base class

also be sure to apply it for the active state when shadows are enabled
This commit is contained in:
Mark Otto
2016-12-27 14:45:57 -08:00
committed by Mark Otto
parent a9bee8b6c8
commit b449e6b65e
2 changed files with 3 additions and 2 deletions

View File

@@ -23,7 +23,7 @@
&:focus,
&.focus {
outline: 0;
box-shadow: 0 0 0 2px rgba($brand-primary, .25);
box-shadow: $btn-focus-box-shadow;
}
// Disabled comes first so active can properly restyle
@@ -37,7 +37,7 @@
&:active,
&.active {
background-image: none;
@include box-shadow($btn-active-box-shadow);
@include box-shadow($btn-focus-box-shadow, $btn-active-box-shadow);
}
}