mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-27 15:19:52 +02:00
redo outlines
- removes original outline removal (hah) - replaces it with an explicit `outline: 0` on `.btn` - instead of replicating `:hover` for `:focus`, uses custom and themed `box-shadow` for an "outline" - not mapped to the `$enable-shadows` variable because accessibility
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
color: $color;
|
||||
background-color: $active-background;
|
||||
border-color: $active-border;
|
||||
box-shadow: 0 0 0 2px rgba($border, .5);
|
||||
}
|
||||
|
||||
// Disabled comes first so active can properly restyle
|
||||
@@ -57,9 +58,7 @@
|
||||
|
||||
&:focus,
|
||||
&.focus {
|
||||
color: $color-hover;
|
||||
background-color: $color;
|
||||
border-color: $color;
|
||||
box-shadow: 0 0 0 2px rgba($color, .5);
|
||||
}
|
||||
|
||||
&.disabled,
|
||||
|
Reference in New Issue
Block a user