2021-02-18 21:44:01 +01:00
|
|
|
@mixin link($light, $dark) {
|
2021-02-18 22:21:36 +01:00
|
|
|
a,
|
|
|
|
a::before,
|
|
|
|
a::after {
|
2021-02-18 21:44:01 +01:00
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
color: if($light, $global-link-color, $single-link-color);
|
|
|
|
|
2021-02-18 22:21:36 +01:00
|
|
|
[theme="dark"] & {
|
2021-02-18 21:44:01 +01:00
|
|
|
color: if($dark, $global-link-color-dark, $single-link-color-dark);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
a:active,
|
|
|
|
a:hover {
|
|
|
|
color: if($light, $global-link-hover-color, $single-link-hover-color);
|
|
|
|
|
2021-02-18 22:21:36 +01:00
|
|
|
[theme="dark"] & {
|
|
|
|
color: if(
|
|
|
|
$dark,
|
|
|
|
$global-link-hover-color-dark,
|
|
|
|
$single-link-hover-color-dark
|
|
|
|
);
|
2021-02-18 21:44:01 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|