diff options
author | Nudasoft <30935025+Nudasoft@users.noreply.github.com> | 2022-02-17 22:20:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-17 22:20:44 +0300 |
commit | 999bfaa036cb886389050db3645d74dfede0d2e8 (patch) | |
tree | 5ac618efd9b1ec10fe9c42a451f14fcb689e94b5 | |
parent | 5565c64bde8a203560c596c67eebb7a6f2fed412 (diff) |
Add !important property to colored links. (#35740)
* Add !important property to colored links.
* Apply suggestions from code review
Co-authored-by: Mark Otto <otto@github.com>
-rw-r--r-- | scss/helpers/_colored-links.scss | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scss/helpers/_colored-links.scss b/scss/helpers/_colored-links.scss index 8c167dedf5..1cb4182801 100644 --- a/scss/helpers/_colored-links.scss +++ b/scss/helpers/_colored-links.scss @@ -1,11 +1,11 @@ @each $color, $value in $theme-colors { .link-#{$color} { - color: $value; + color: $value !important; // stylelint-disable-line declaration-no-important @if $link-shade-percentage != 0 { &:hover, &:focus { - color: if(color-contrast($value) == $color-contrast-light, shade-color($value, $link-shade-percentage), tint-color($value, $link-shade-percentage)); + color: if(color-contrast($value) == $color-contrast-light, shade-color($value, $link-shade-percentage), tint-color($value, $link-shade-percentage)) !important; // stylelint-disable-line declaration-no-important } } } |