1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-30 08:39:56 +02:00

Drop all hover mixins

Previously deprecated in v4.x, this clears out the now unused Sass option and removes some unused mixins. Arguably we could remove more, but I like the hover-focus mixin and we make extensive use of it across the project.
This commit is contained in:
Mark Otto
2018-09-18 02:10:07 +03:00
committed by XhmikosR
parent a827934f13
commit 1d4d9f8d89
20 changed files with 51 additions and 84 deletions

View File

@@ -219,7 +219,7 @@ a {
text-decoration: $link-decoration;
background-color: transparent; // Remove the gray background on active links in IE 10.
@include hover {
&:hover {
color: $link-hover-color;
text-decoration: $link-hover-decoration;
}
@@ -232,15 +232,11 @@ a {
// See https://github.com/twbs/bootstrap/issues/19402
a:not([href]):not([tabindex]) {
color: inherit;
text-decoration: none;
@include hover-focus {
&,
&:hover,
&:focus {
color: inherit;
text-decoration: none;
}
&:focus {
outline: 0;
}
}