修改stylelint配置,优化代码

This commit is contained in:
hooray 2022-03-12 09:51:33 +08:00
parent 3685b70c2f
commit 2ffc8c18d9
3 changed files with 10 additions and 3 deletions

View File

@ -35,6 +35,14 @@
] ]
} }
], ],
"property-no-vendor-prefix": [
true,
{
"ignoreProperties": [
"mask-image"
]
}
],
"max-line-length": null "max-line-length": null
} }
} }

View File

@ -92,8 +92,8 @@ function pathCompile(path) {
align-items: center; align-items: center;
padding-right: 50px; padding-right: 50px;
overflow: hidden; overflow: hidden;
/* stylelint-disable-next-line property-no-vendor-prefix */
-webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 50px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 50px), transparent);
mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 50px), transparent);
.sidebar-collapse { .sidebar-collapse {
display: flex; display: flex;
align-items: center; align-items: center;

View File

@ -150,8 +150,7 @@ const oneStepAdminInfo = ref({
<style lang="scss" scoped> <style lang="scss" scoped>
.text-emphasis { .text-emphasis {
/* stylelint-disable-next-line property-no-vendor-prefix */ text-emphasis-style: "❤";
-webkit-text-emphasis-style: "❤";
} }
.ecology { .ecology {
padding: 10px 0 0; padding: 10px 0 0;