WebUI: revise lint rules for css

Some rules are already covered by other tools, so remove them.
This commit is contained in:
Chocobo1 2025-01-21 14:56:13 +08:00
commit dc8ac38494
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
8 changed files with 33 additions and 36 deletions

View file

@ -99,7 +99,7 @@ div.mochaToolbarWrapper.bottom {
} }
.mocha .handle { .mocha .handle {
background: #0f0; background: #00ff00;
font-size: 1px; /* For IE6 */ font-size: 1px; /* For IE6 */
height: 3px; height: 3px;
opacity: 0; opacity: 0;
@ -111,7 +111,7 @@ div.mochaToolbarWrapper.bottom {
/* Corner resize handles */ /* Corner resize handles */
.mocha .corner { .mocha .corner {
background: #f00; background: #ff0000;
height: 10px; height: 10px;
width: 10px; width: 10px;
} }
@ -229,7 +229,7 @@ div.mochaToolbarWrapper.bottom {
/* Underlay */ /* Underlay */
#windowUnderlay { #windowUnderlay {
background: #fff; background: #ffffff;
left: 0; left: 0;
position: fixed; position: fixed;
top: 0; top: 0;
@ -276,18 +276,18 @@ div.mochaToolbarWrapper.bottom {
/* Modals */ /* Modals */
.modal2 { .modal2 {
border: 8px solid #fff; border: 8px solid #ffffff;
} }
.modal2 .mochaContentBorder { .modal2 .mochaContentBorder {
border-width: 0px; border-width: 0;
} }
/* Window Themes */ /* Window Themes */
.mocha.no-canvas { .mocha.no-canvas {
background: #e5e5e5; background: #e5e5e5;
border: 1px solid #555; border: 1px solid #555555;
} }
.mocha.no-canvas .mochaTitlebar { .mocha.no-canvas .mochaTitlebar {
@ -295,7 +295,7 @@ div.mochaToolbarWrapper.bottom {
} }
.mocha.transparent .mochaTitlebar h3 { .mocha.transparent .mochaTitlebar h3 {
color: #fff; color: #ffffff;
display: none; display: none;
} }
@ -312,7 +312,7 @@ div.mochaToolbarWrapper.bottom {
} }
.mocha.notification .mochaContentBorder { .mocha.notification .mochaContentBorder {
border-width: 0px; border-width: 0;
} }
.mocha.notification .mochaContentWrapper { .mocha.notification .mochaContentWrapper {
@ -345,12 +345,12 @@ div.mochaToolbarWrapper.bottom {
} }
.jsonExample .mochaTitlebar h3 { .jsonExample .mochaTitlebar h3 {
color: #ddd; color: #dddddd;
} }
/* This does not work in IE6. */ /* This does not work in IE6. */
.isFocused.jsonExample .mochaTitlebar h3 { .isFocused.jsonExample .mochaTitlebar h3 {
color: #fff; color: #ffffff;
} }
#fxmorpherExample .mochaContentWrapper { #fxmorpherExample .mochaContentWrapper {
@ -358,7 +358,7 @@ div.mochaToolbarWrapper.bottom {
} }
#clock { #clock {
background: #fff; background: #ffffff;
} }
/* Workaround to make invisible buttons clickable */ /* Workaround to make invisible buttons clickable */

View file

@ -105,10 +105,10 @@ div:has(> div.dynamicTableFixedHeaderDiv):not(.invisible) {
} }
.dynamicTableDiv thead th { .dynamicTableDiv thead th {
height: 0px !important; height: 0 !important;
line-height: 0px !important; line-height: 0 !important;
padding-bottom: 0px !important; padding-bottom: 0 !important;
padding-top: 0px !important; padding-top: 0 !important;
} }
/* Trackers table */ /* Trackers table */

View file

@ -3,6 +3,6 @@
} }
#noscript { #noscript {
color: #f00; color: #ff0000;
text-align: center; text-align: center;
} }

View file

@ -257,7 +257,7 @@ pre {
hr { hr {
background-color: var(--color-background-default); background-color: var(--color-background-default);
border: 0px; border: 0;
color: var(--color-text-default); color: var(--color-text-default);
height: 1px; height: 1px;
margin-bottom: 6px; margin-bottom: 6px;
@ -435,8 +435,8 @@ a.propButton img {
.sliderarea { .sliderarea {
background: #f2f2f2 url("../images/slider-area.gif") repeat-x; background: #f2f2f2 url("../images/slider-area.gif") repeat-x;
border: 1px solid #a3a3a3; border: 1px solid #a3a3a3;
border-bottom: 1px solid #ccc; border-bottom: 1px solid #cccccc;
border-left: 1px solid #ccc; border-left: 1px solid #cccccc;
font-size: 1px; font-size: 1px;
height: 7px; height: 7px;
left: 0; left: 0;
@ -573,7 +573,7 @@ label.tristate {
display: block; display: block;
float: left; float: left;
height: 13px; height: 13px;
margin: 0.15em 8px 5px 0px; margin: 0.15em 8px 5px 0;
overflow: hidden; overflow: hidden;
text-indent: -999em; text-indent: -999em;
width: 13px; width: 13px;
@ -785,20 +785,20 @@ td.generalLabel {
.select-watched-folder-editable select { .select-watched-folder-editable select {
border: none; border: none;
bottom: 0px; bottom: 0;
left: 0px; left: 0;
padding: 0; padding: 0;
position: absolute; position: absolute;
top: 0px; top: 0;
width: 158px; width: 158px;
} }
.select-watched-folder-editable input { .select-watched-folder-editable input {
border: none; border: none;
left: 0px; left: 0;
padding: 0; padding: 0;
position: absolute; position: absolute;
top: 0px; top: 0;
width: 140px; width: 140px;
} }

View file

@ -55,13 +55,13 @@ li[data-parent].open:not(.hidden-search) {
} }
li.disabled { li.disabled {
background-color: #999; background-color: #999999;
cursor: not-allowed; cursor: not-allowed;
opacity: 0.3; opacity: 0.3;
} }
li.overflow { li.overflow {
background-color: #999; background-color: #999999;
cursor: not-allowed; cursor: not-allowed;
opacity: 0.3; opacity: 0.3;
} }
@ -140,7 +140,7 @@ li.short {
height: 11px; height: 11px;
margin-left: 22px; margin-left: 22px;
margin-right: 2px; margin-right: 2px;
margin-top: 0px; margin-top: 0;
padding: 1px 3px 2px; padding: 1px 3px 2px;
width: 8px; width: 8px;
} }
@ -151,7 +151,7 @@ li.short {
float: left; float: left;
font-size: inherit; font-size: inherit;
height: 8px; height: 8px;
margin-left: 0px; margin-left: 0;
transform: rotate(45deg); transform: rotate(45deg);
width: 5px; width: 5px;
} }
@ -194,7 +194,7 @@ li.short {
font-weight: bold; font-weight: bold;
margin-left: -22px; margin-left: -22px;
margin-right: 2px; margin-right: 2px;
margin-top: 0px; margin-top: 0;
padding: 7px; padding: 7px;
} }

View file

@ -28,7 +28,7 @@ body {
} }
#error_msg { #error_msg {
color: #f00; color: #ff0000;
white-space: pre; white-space: pre;
} }

View file

@ -3,6 +3,6 @@
} }
#noscript { #noscript {
color: #f00; color: #ff0000;
text-align: center; text-align: center;
} }

View file

@ -5,15 +5,12 @@ export default {
], ],
ignoreFiles: ["private/css/lib/*.css"], ignoreFiles: ["private/css/lib/*.css"],
rules: { rules: {
"color-hex-length": null, "color-hex-length": "long",
"comment-empty-line-before": null, "comment-empty-line-before": null,
"comment-whitespace-inside": null, "comment-whitespace-inside": null,
"function-name-case": null,
"length-zero-no-unit": null,
"no-descending-specificity": null, "no-descending-specificity": null,
"order/properties-alphabetical-order": true, "order/properties-alphabetical-order": true,
"selector-class-pattern": null, "selector-class-pattern": null,
"selector-id-pattern": null, "selector-id-pattern": null,
"value-keyword-case": null
} }
}; };