mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-18 11:21:23 +02:00
Add :focus to all new :hover selectors
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user