mirror of
https://github.com/idanoo/m2.nz.git
synced 2024-11-27 02:35:12 +00:00
21 lines
473 B
SCSS
21 lines
473 B
SCSS
|
@mixin link($light, $dark) {
|
||
|
a, a::before, a::after {
|
||
|
text-decoration: none;
|
||
|
|
||
|
color: if($light, $global-link-color, $single-link-color);
|
||
|
|
||
|
[theme=dark] & {
|
||
|
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);
|
||
|
|
||
|
[theme=dark] & {
|
||
|
color: if($dark, $global-link-hover-color-dark, $single-link-hover-color-dark);
|
||
|
}
|
||
|
}
|
||
|
}
|