LoveIt/assets/css/_mixin/_link.scss
Dillon 3040ffa107
feat: improve browser compatibility for TypeIt and object-fit (#293)
* object-fit polyfill
* TypeIt 7.0.3 -> 6.5.1
2020-04-30 23:21:52 +08:00

20 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);
}
}
}