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:
parent
af9d6c3dd3
commit
b08d2b6adc
2 changed files with 10 additions and 5 deletions
|
@ -34,7 +34,8 @@
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: $dark;
|
color: $dark;
|
||||||
|
|
||||||
&:hover {
|
&:hover,
|
||||||
|
&:focus {
|
||||||
color: $blue;
|
color: $blue;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
@ -70,7 +71,8 @@
|
||||||
color: $bd-purple-light;
|
color: $bd-purple-light;
|
||||||
|
|
||||||
&.active,
|
&.active,
|
||||||
&:hover {
|
&:hover,
|
||||||
|
&:focus {
|
||||||
color: $white;
|
color: $white;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,7 +45,8 @@
|
||||||
|
|
||||||
> * { pointer-events: none; }
|
> * { pointer-events: none; }
|
||||||
|
|
||||||
&:hover {
|
&:hover,
|
||||||
|
&:focus {
|
||||||
color: rgba(0, 0, 0, .85);
|
color: rgba(0, 0, 0, .85);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
background-color: rgba($bd-purple-bright, .1);
|
background-color: rgba($bd-purple-bright, .1);
|
||||||
|
@ -91,7 +92,8 @@
|
||||||
color: rgba(0, 0, 0, .65);
|
color: rgba(0, 0, 0, .65);
|
||||||
@include border-radius(.25rem);
|
@include border-radius(.25rem);
|
||||||
|
|
||||||
&:hover {
|
&:hover,
|
||||||
|
&:focus {
|
||||||
color: rgba(0, 0, 0, .85);
|
color: rgba(0, 0, 0, .85);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
background-color: rgba($bd-purple-bright, .1);
|
background-color: rgba($bd-purple-bright, .1);
|
||||||
|
@ -99,7 +101,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
> .active > a,
|
> .active > a,
|
||||||
> .active:hover > a {
|
> .active:hover > a,
|
||||||
|
> .active:focus > a {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: rgba(0, 0, 0, .85);
|
color: rgba(0, 0, 0, .85);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue