1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-30 16:50:00 +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

@@ -48,7 +48,8 @@
line-height: inherit;
white-space: nowrap;
@include hover-focus {
&:hover,
&:focus {
text-decoration: none;
}
}
@@ -112,7 +113,8 @@
border: $border-width solid transparent; // remove default button style
@include border-radius($navbar-toggler-border-radius);
@include hover-focus {
&:hover,
&:focus {
text-decoration: none;
}
}
@@ -193,7 +195,8 @@
.navbar-brand {
color: $navbar-light-brand-color;
@include hover-focus {
&:hover,
&:focus {
color: $navbar-light-brand-hover-color;
}
}
@@ -202,7 +205,8 @@
.nav-link {
color: $navbar-light-color;
@include hover-focus {
&:hover,
&:focus {
color: $navbar-light-hover-color;
}
@@ -230,12 +234,11 @@
.navbar-text {
color: $navbar-light-color;
a {
color: $navbar-light-active-color;
@include hover-focus {
color: $navbar-light-active-color;
}
a,
a:hover,
a:focus {
color: $navbar-light-active-color;
}
}
}
@@ -245,7 +248,8 @@
.navbar-brand {
color: $navbar-dark-brand-color;
@include hover-focus {
&:hover,
&:focus {
color: $navbar-dark-brand-hover-color;
}
}
@@ -254,7 +258,8 @@
.nav-link {
color: $navbar-dark-color;
@include hover-focus {
&:hover,
&:focus {
color: $navbar-dark-hover-color;
}
@@ -282,12 +287,10 @@
.navbar-text {
color: $navbar-dark-color;
a {
a,
a:hover,
a:focus {
color: $navbar-dark-active-color;
@include hover-focus {
color: $navbar-dark-active-color;
}
}
}
}