From 68838af9d030de76d32cee1de10f1d709a2e192e Mon Sep 17 00:00:00 2001 From: XPoet Date: Tue, 26 Jan 2021 10:44:51 +0800 Subject: [PATCH] style: modified keep-style css --- source/css/common/keep-theme.styl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/css/common/keep-theme.styl b/source/css/common/keep-theme.styl index 021a41a..f99a546 100644 --- a/source/css/common/keep-theme.styl +++ b/source/css/common/keep-theme.styl @@ -2,7 +2,10 @@ $keep-container-border-radius = 5px; hover-style(isTransform, scaleX, scaleY) { box-shadow: 2px 2px 5px var(--shadow-color); - transition-t("transform", "0", "0.2", "linear"); + + if (isTransform) { + transition-t("transform", "0", "0.2", "linear"); + } &:hover { if (hexo-config('style.hover.scale') && isTransform) {