hexo-theme-keep/source/css/layout/common/magic-theme.styl

25 lines
438 B
Stylus
Raw Normal View History

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