m2.nz/themes/LoveIt/assets/css/_mixin/_link.scss

37 lines
649 B
SCSS
Raw Permalink Normal View History

2022-05-08 06:47:31 +00:00
@mixin link($light, $dark) {
a, a::before, a::after {
text-decoration: none;
2024-04-07 02:32:03 +00:00
@if $light {
color: $global-link-color;
} @else {
color: $single-link-color;
}
2022-05-08 06:47:31 +00:00
[theme=dark] & {
2024-04-07 02:32:03 +00:00
@if $dark {
color: $global-link-color-dark;
} @else {
color: $single-link-color-dark;
}
2022-05-08 06:47:31 +00:00
}
}
a:active,
a:hover {
2024-04-07 02:32:03 +00:00
@if $light {
color: $global-link-hover-color;
} @else {
color: $single-link-hover-color;
}
2022-05-08 06:47:31 +00:00
[theme=dark] & {
2024-04-07 02:32:03 +00:00
@if $dark {
color: $global-link-hover-color-dark;
} @else {
color: $single-link-hover-color-dark;
}
2022-05-08 06:47:31 +00:00
}
}
}