1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

Add :focus to all new :hover selectors

This commit is contained in:
Mark Otto 2019-07-15 10:26:55 -07:00 committed by Mark Otto
parent af9d6c3dd3
commit b08d2b6adc
2 changed files with 10 additions and 5 deletions

View file

@ -34,7 +34,8 @@
font-weight: 500;
color: $dark;
&:hover {
&:hover,
&:focus {
color: $blue;
text-decoration: none;
}
@ -70,7 +71,8 @@
color: $bd-purple-light;
&.active,
&:hover {
&:hover,
&:focus {
color: $white;
background-color: transparent;
}

View file

@ -45,7 +45,8 @@
> * { pointer-events: none; }
&:hover {
&:hover,
&:focus {
color: rgba(0, 0, 0, .85);
text-decoration: none;
background-color: rgba($bd-purple-bright, .1);
@ -91,7 +92,8 @@
color: rgba(0, 0, 0, .65);
@include border-radius(.25rem);
&:hover {
&:hover,
&:focus {
color: rgba(0, 0, 0, .85);
text-decoration: none;
background-color: rgba($bd-purple-bright, .1);
@ -99,7 +101,8 @@
}
> .active > a,
> .active:hover > a {
> .active:hover > a,
> .active:focus > a {
font-weight: 600;
color: rgba(0, 0, 0, .85);
}