Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <markdotto@gmail.com>2018-09-18 02:10:07 +0300
committerXhmikosR <xhmikosr@gmail.com>2019-05-08 20:58:07 +0300
commit1d4d9f8d8941f006e81e95549bee991753a75e6e (patch)
treed96c39023a97966db96220c868fc89a0529e08df /scss/_navbar.scss
parenta827934f1309e02419d58b9ca4ab83982204c050 (diff)
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.
Diffstat (limited to 'scss/_navbar.scss')
-rw-r--r--scss/_navbar.scss35
1 files changed, 19 insertions, 16 deletions
diff --git a/scss/_navbar.scss b/scss/_navbar.scss
index 8f52bdd173..b1efa0c04a 100644
--- a/scss/_navbar.scss
+++ b/scss/_navbar.scss
@@ -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;
- }
}
}
}