fixed stylelint errors as good as possible, disabled them when they didn't make sense

This commit is contained in:
Max von Webel 2022-11-03 21:42:47 +01:00
parent 970d795c0a
commit 30c08f9ca1
9 changed files with 24 additions and 16 deletions

View File

@ -1,22 +1,25 @@
{
"extends": [
"stylelint-config-html/vue",
"stylelint-config-standard",
"stylelint-config-prettier"
"extends": ["stylelint-config-html/vue", "stylelint-config-standard", "stylelint-config-prettier"],
"overrides": [
{
"customSyntax": "postcss-scss",
"files": ["**/*.scss"]
}
],
"rules": {
"alpha-value-notation": "number",
"color-function-notation": "legacy",
"color-hex-length": null,
"no-descending-specificity": null,
"no-empty-source": null,
"selector-class-pattern": "^(([a-z][a-zA-Z0-9_]+)|([a-z][a-z0-9]*)(-[a-zA-Z0-9_]+)*)$",
"selector-id-pattern": "^(([a-z][a-zA-Z0-9_]+)|([a-z][a-z0-9]*)(-[a-zA-Z0-9_]+)*)$",
"selector-pseudo-class-no-unknown": [
true,
{
"ignorePseudoClasses": ["deep"]
}
],
"selector-class-pattern": "^(([a-z][a-zA-Z0-9_]+)|([a-z][a-z0-9]*)(-[a-zA-Z0-9_]+)*)$"
},
"overrides": [
{
"files": ["**/*.scss"],
"customSyntax": "postcss-scss"
}
]
"shorthand-property-no-redundant-values": null
}
}

View File

@ -132,7 +132,7 @@ p {
margin: 8px 0;
}
.clearfix:after {
.clearfix::after {
content: ' ';
display: block;
clear: both;

View File

@ -173,6 +173,7 @@ export default defineComponent({
}
}
/* stylelint-disable-next-line selector-class-pattern */
.action :deep(.svg-inline--fa) {
padding-right: 4px;
}

View File

@ -119,6 +119,7 @@ export default defineComponent({
height: 100%;
user-select: none;
}
.setting-menu :deep(.icon) {
margin-right: 9px;
}

View File

@ -172,6 +172,7 @@ export default defineComponent({
#timeline_space {
height: 100%;
}
.page {
margin-left: 180px;
height: 100%;

View File

@ -114,6 +114,7 @@ export default defineComponent({
.image-viewer-leave-active {
transition: opacity 0.5s;
}
.image-viewer-enter,
.image-viewer-leave-to {
opacity: 0;

View File

@ -556,8 +556,7 @@ export default defineComponent({
.preview {
box-sizing: border-box;
display: flex;
flex-direction: row;
flex-wrap: wrap;
flex-flow: row wrap;
.image-wrapper {
position: relative;

View File

@ -493,6 +493,7 @@ export default defineComponent({
width: 18px;
}
}
.menu-item * {
vertical-align: middle;
}
@ -500,7 +501,7 @@ export default defineComponent({
.el-badge {
vertical-align: top;
line-height: 32px;
margin-left: 0px;
margin-left: 0;
}
}

View File

@ -71,6 +71,7 @@ export default defineComponent({
height: 20px;
}
}
.body {
margin-top: 4px;