2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-15 11:59:39 +03:00

Only apply the active and focus shadow on the focus state for :active

This commit is contained in:
Mark Otto
2017-12-23 20:33:41 -08:00
committed by Mark Otto
parent c0129f8c2a
commit 97cfe5a582
+5 -1
View File
@@ -40,7 +40,11 @@
&:not([disabled]):not(.disabled):active,
&:not([disabled]):not(.disabled).active {
background-image: none;
@include box-shadow($btn-focus-box-shadow, $btn-active-box-shadow);
box-shadow: $btn-active-box-shadow;
&:focus {
@box-shadow: $btn-focus-box-shadow, $btn-active-box-shadow;
}
}
}