2020-03-17 14:16:04 +01:00
|
|
|
@mixin link($light, $dark) {
|
2020-04-29 10:36:23 +02:00
|
|
|
a, a::before, a::after {
|
2020-04-30 17:21:52 +02:00
|
|
|
text-decoration: none;
|
|
|
|
|
2022-05-15 09:15:38 +02:00
|
|
|
@if $light {
|
|
|
|
color: $global-link-color;
|
|
|
|
} @else {
|
|
|
|
color: $single-link-color;
|
|
|
|
}
|
2020-03-17 14:16:04 +01:00
|
|
|
|
2020-04-27 19:38:22 +02:00
|
|
|
[theme=dark] & {
|
2022-05-15 09:15:38 +02:00
|
|
|
@if $dark {
|
|
|
|
color: $global-link-color-dark;
|
|
|
|
} @else {
|
|
|
|
color: $single-link-color-dark;
|
|
|
|
}
|
2020-03-17 14:16:04 +01:00
|
|
|
}
|
2020-04-29 16:26:52 +02:00
|
|
|
}
|
2020-03-17 14:16:04 +01:00
|
|
|
|
2020-04-29 16:26:52 +02:00
|
|
|
a:active,
|
|
|
|
a:hover {
|
2022-05-15 09:15:38 +02:00
|
|
|
@if $light {
|
|
|
|
color: $global-link-hover-color;
|
|
|
|
} @else {
|
|
|
|
color: $single-link-hover-color;
|
|
|
|
}
|
2020-03-17 14:16:04 +01:00
|
|
|
|
2020-04-29 16:26:52 +02:00
|
|
|
[theme=dark] & {
|
2022-05-15 09:15:38 +02:00
|
|
|
@if $dark {
|
|
|
|
color: $global-link-hover-color-dark;
|
|
|
|
} @else {
|
|
|
|
color: $single-link-hover-color-dark;
|
|
|
|
}
|
2020-03-17 14:16:04 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|