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

_colored-links.scss « helpers « bootstrap « sass « assets - github.com/spech66/bootstrap-bp-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8c167dedf54873890f514809e2fa56bc5bf52aba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
@each $color, $value in $theme-colors {
  .link-#{$color} {
    color: $value;

    @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));
      }
    }
  }
}