style: modified keep-style css

This commit is contained in:
XPoet 2021-01-26 10:44:51 +08:00
parent 0b99f48e7d
commit 68838af9d0
1 changed files with 4 additions and 1 deletions

View File

@ -2,7 +2,10 @@ $keep-container-border-radius = 5px;
hover-style(isTransform, scaleX, scaleY) {
box-shadow: 2px 2px 5px var(--shadow-color);
if (isTransform) {
transition-t("transform", "0", "0.2", "linear");
}
&:hover {
if (hexo-config('style.hover.scale') && isTransform) {