0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-18 10:52:19 +01:00

Remove redundant text decoration from hover states

This commit is contained in:
Martijn Cuppens 2020-03-20 09:35:55 +01:00
parent 39c11c6b3f
commit 7fc4037a02
6 changed files with 5 additions and 6 deletions

View File

@ -21,7 +21,7 @@
&:hover {
color: $body-color;
text-decoration: none;
text-decoration: if($link-hover-decoration == underline, none, null);
}
&:focus,

View File

@ -150,7 +150,7 @@
&:hover,
&:focus {
color: $dropdown-link-hover-color;
text-decoration: none;
text-decoration: if($link-hover-decoration == underline, none, null);
@include gradient-bg($dropdown-link-hover-bg);
}

View File

@ -18,7 +18,7 @@
&:hover,
&:focus {
text-decoration: none;
text-decoration: if($link-hover-decoration == underline, none, null);
}
// Disabled state lightens text

View File

@ -14,7 +14,7 @@
&:hover {
z-index: 2;
color: $pagination-hover-color;
text-decoration: none;
text-decoration: if($link-hover-decoration == underline, none, null);
background-color: $pagination-hover-bg;
border-color: $pagination-hover-border-color;
}

View File

@ -251,7 +251,7 @@ $body-text-align: null !default;
$link-color: $primary !default;
$link-decoration: underline !default;
$link-hover-color: darken($link-color, 15%) !default;
$link-hover-decoration: $link-decoration !default;
$link-hover-decoration: null !default;
// Darken percentage for links with `.text-*` class (e.g. `.text-success`)
$emphasized-link-hover-darken-percentage: 15% !default;

View File

@ -70,7 +70,6 @@
&:hover,
&:focus {
color: rgba($black, .85);
text-decoration: none;
background-color: rgba($bd-purple-bright, .1);
}
}