2020-04-25 11:16:58 +08:00
|
|
|
@require "animated.styl"
|
2020-04-28 23:20:17 +08:00
|
|
|
|
2020-04-24 22:49:10 +08:00
|
|
|
magic-style(scale) {
|
|
|
|
if (hexo-config('magic.enable') == true) {
|
|
|
|
|
|
|
|
box-shadow: 0 0 3px var(--border-color);
|
2020-04-25 11:16:58 +08:00
|
|
|
transition();
|
2020-04-24 22:49:10 +08:00
|
|
|
|
|
|
|
&:hover {
|
2020-04-25 11:16:58 +08:00
|
|
|
transition();
|
2020-04-24 22:49:10 +08:00
|
|
|
box-shadow: 0 0 8px var(--border-color);
|
|
|
|
transform: scale(scale);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2020-04-28 23:20:17 +08:00
|
|
|
magic-container(scale, padding) {
|
2020-04-24 22:49:10 +08:00
|
|
|
if (hexo-config('magic.enable') == true) {
|
|
|
|
magic-style(scale);
|
2020-04-28 23:20:17 +08:00
|
|
|
padding: padding;
|
2020-04-24 22:49:10 +08:00
|
|
|
border-radius: 2px;
|
|
|
|
}
|
|
|
|
}
|