From eaa1abda8283116112a580ce8145b00f11d8d286 Mon Sep 17 00:00:00 2001 From: sudoooooo Date: Wed, 10 Jul 2024 16:07:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20sass1.77.7=E8=A7=84=E5=88=99=E5=8D=87?= =?UTF-8?q?=E7=BA=A7warning?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../questions/QuestionRuleContainer/ErrorTip/index.vue | 4 ++-- .../materials/questions/QuestionRuleContainer/style.scss | 6 +++--- web/src/materials/questions/widgets/BaseChoice/style.scss | 7 +++---- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/web/src/materials/questions/QuestionRuleContainer/ErrorTip/index.vue b/web/src/materials/questions/QuestionRuleContainer/ErrorTip/index.vue index b4aec8be..52c4f270 100644 --- a/web/src/materials/questions/QuestionRuleContainer/ErrorTip/index.vue +++ b/web/src/materials/questions/QuestionRuleContainer/ErrorTip/index.vue @@ -39,6 +39,8 @@ export default { } &:not(.show) { + transition: all 0.3s ease-in-out; + display: block; opacity: 0; height: 0; @@ -48,8 +50,6 @@ export default { color: transparent; padding-right: 0.1rem; } - - transition: all 0.3s ease-in-out; } &.show { diff --git a/web/src/materials/questions/QuestionRuleContainer/style.scss b/web/src/materials/questions/QuestionRuleContainer/style.scss index 10fca671..5a3a0efc 100644 --- a/web/src/materials/questions/QuestionRuleContainer/style.scss +++ b/web/src/materials/questions/QuestionRuleContainer/style.scss @@ -81,12 +81,12 @@ } &.hasError { + /*由于错误提示可能多行,因此有错误时取消margin,让错误提示撑开边距*/ + margin-bottom: 0; + .item-border { border-color: $error-color; } - - /*由于错误提示可能多行,因此有错误时取消margin,让错误提示撑开边距*/ - margin-bottom: 0; } &.special .module-err-tip { diff --git a/web/src/materials/questions/widgets/BaseChoice/style.scss b/web/src/materials/questions/widgets/BaseChoice/style.scss index 291fb67a..6991bfed 100644 --- a/web/src/materials/questions/widgets/BaseChoice/style.scss +++ b/web/src/materials/questions/widgets/BaseChoice/style.scss @@ -89,6 +89,8 @@ } &.is-checked { + transition: all 0.3s ease-in-out; + .item-title { color: $primary-color; } @@ -102,18 +104,15 @@ color: #fff; border: none; } - - transition: all 0.3s ease-in-out; } &:not(.is-checked) { + transition: all 0.3s ease-in-out; background-color: transparent; .item-title { color: $font-color; } - - transition: all 0.3s ease-in-out; } &.lastchild,