From 6176d9508bb87da7f9e093ee909f29a7baa2416a Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Thu, 4 May 2023 13:51:24 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E9=80=82=E9=85=8D`@keyframes`?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E7=9A=84=E5=91=BD=E5=90=8D=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 4 ++-- src/layout/components/tag/index.scss | 8 ++++---- stylelint.config.js | 1 - 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/index.html b/index.html index aba69fddf..42e2d0661 100644 --- a/index.html +++ b/index.html @@ -36,7 +36,7 @@ width: 2.5em; height: 2.5em; border-radius: 50%; - animation: loadAnimation 1.8s infinite ease-in-out; + animation: load-animation 1.8s infinite ease-in-out; animation-fill-mode: both; } @@ -68,7 +68,7 @@ left: 3.5em; } - @keyframes loadAnimation { + @keyframes load-animation { 0%, 80%, 100% { diff --git a/src/layout/components/tag/index.scss b/src/layout/components/tag/index.scss index 121b5e704..e8d879579 100644 --- a/src/layout/components/tag/index.scss +++ b/src/layout/components/tag/index.scss @@ -1,4 +1,4 @@ -@keyframes scheduleInWidth { +@keyframes schedule-in-width { from { width: 0; } @@ -8,7 +8,7 @@ } } -@keyframes scheduleOutWidth { +@keyframes schedule-out-width { from { width: 100%; } @@ -280,7 +280,7 @@ width: 100%; height: 2px; background: var(--el-color-primary); - animation: scheduleInWidth 200ms ease-in; + animation: schedule-in-width 200ms ease-in; } /* 灵动模式下鼠标移出隐藏蓝色进度条 */ @@ -291,5 +291,5 @@ width: 0; height: 2px; background: var(--el-color-primary); - animation: scheduleOutWidth 200ms ease-in; + animation: schedule-out-width 200ms ease-in; } diff --git a/stylelint.config.js b/stylelint.config.js index 0deab379b..22c014318 100644 --- a/stylelint.config.js +++ b/stylelint.config.js @@ -22,7 +22,6 @@ module.exports = { ], rules: { "selector-class-pattern": null, - "keyframes-name-pattern": null, "no-descending-specificity": null, "scss/dollar-variable-pattern": null, "selector-pseudo-class-no-unknown": [