onFOSS.org/_sass/bootstrap/helpers/_colored-links.scss

13 lines
450 B
SCSS
Raw Normal View History

2023-05-26 17:30:43 +02:00
@each $color, $value in $theme-colors {
.link-#{$color} {
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)) !important; // stylelint-disable-line declaration-no-important
}
}
}
}