diff options
| author | Nudasoft <[email protected]> | 2022-02-18 00:50:44 +0530 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-02-17 11:20:44 -0800 |
| commit | 999bfaa036cb886389050db3645d74dfede0d2e8 (patch) | |
| tree | 5ac618efd9b1ec10fe9c42a451f14fcb689e94b5 /scss | |
| parent | 5565c64bde8a203560c596c67eebb7a6f2fed412 (diff) | |
| download | bootstrap-999bfaa036cb886389050db3645d74dfede0d2e8.tar.xz bootstrap-999bfaa036cb886389050db3645d74dfede0d2e8.zip | |
Add !important property to colored links. (#35740)
* Add !important property to colored links.
* Apply suggestions from code review
Co-authored-by: Mark Otto <[email protected]>
Diffstat (limited to 'scss')
| -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 8c167dedf..1cb418280 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 } } } |
