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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|