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

27 lines
487 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
2020-04-30 00:14:16 +08:00
magic-style(scaleX, scaleY) {
if (hexo-config('magic.enable') == true) {
box-shadow: 0 0 2px var(--border-color);
2020-04-25 11:16:58 +08:00
transition();
if (hexo-config('magic.transform')) {
&:hover {
transition();
box-shadow: 0 0 6px var(--border-color);
transform: scaleX(scaleX) scaleY(scaleY);
}
}
}
}
2020-04-30 00:14:16 +08:00
magic-container(scaleX, scaleY, padding) {
magic-style(scaleX, scaleY);
padding: padding;
border-radius: 2px;
}