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;
|
|
|
|
|
2020-03-17 14:16:04 +01:00
|
|
|
color: if($light, $global-link-color, $single-link-color);
|
|
|
|
|
2020-04-27 19:38:22 +02:00
|
|
|
[theme=dark] & {
|
2020-03-17 14:16:04 +01:00
|
|
|
color: if($dark, $global-link-color-dark, $single-link-color-dark);
|
|
|
|
}
|
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 {
|
|
|
|
color: if($light, $global-link-hover-color, $single-link-hover-color);
|
2020-03-17 14:16:04 +01:00
|
|
|
|
2020-04-29 16:26:52 +02:00
|
|
|
[theme=dark] & {
|
|
|
|
color: if($dark, $global-link-hover-color-dark, $single-link-hover-color-dark);
|
2020-03-17 14:16:04 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|