mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-18 03:11:19 +02:00
apply same active/focus shadow styling to button variants
This commit is contained in:
@@ -42,6 +42,7 @@
|
|||||||
}
|
}
|
||||||
border-color: $active-border;
|
border-color: $active-border;
|
||||||
|
|
||||||
|
&:focus {
|
||||||
// Avoid using mixin so we can pass custom focus shadow properly
|
// Avoid using mixin so we can pass custom focus shadow properly
|
||||||
@if $enable-shadows {
|
@if $enable-shadows {
|
||||||
box-shadow: $btn-active-box-shadow, 0 0 0 $btn-focus-width rgba($border, .5);
|
box-shadow: $btn-active-box-shadow, 0 0 0 $btn-focus-width rgba($border, .5);
|
||||||
@@ -49,6 +50,7 @@
|
|||||||
box-shadow: 0 0 0 $btn-focus-width rgba($border, .5);
|
box-shadow: 0 0 0 $btn-focus-width rgba($border, .5);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin button-outline-variant($color, $color-hover: #fff, $active-background: $color, $active-border: $color) {
|
@mixin button-outline-variant($color, $color-hover: #fff, $active-background: $color, $active-border: $color) {
|
||||||
|
Reference in New Issue
Block a user