Skip to content

Commit

Permalink
WebUI: revise lint rules for css
Browse files Browse the repository at this point in the history
Some rules are already covered by other tools, so remove them.
  • Loading branch information
Chocobo1 committed Jan 24, 2025
1 parent e3eacf2 commit dc8ac38
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 36 deletions.
22 changes: 11 additions & 11 deletions src/webui/www/private/css/Window.css
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ div.mochaToolbarWrapper.bottom {
}

.mocha .handle {
background: #0f0;
background: #00ff00;
font-size: 1px; /* For IE6 */
height: 3px;
opacity: 0;
Expand All @@ -111,7 +111,7 @@ div.mochaToolbarWrapper.bottom {

/* Corner resize handles */
.mocha .corner {
background: #f00;
background: #ff0000;
height: 10px;
width: 10px;
}
Expand Down Expand Up @@ -229,7 +229,7 @@ div.mochaToolbarWrapper.bottom {
/* Underlay */

#windowUnderlay {
background: #fff;
background: #ffffff;
left: 0;
position: fixed;
top: 0;
Expand Down Expand Up @@ -276,26 +276,26 @@ div.mochaToolbarWrapper.bottom {
/* Modals */

.modal2 {
border: 8px solid #fff;
border: 8px solid #ffffff;
}

.modal2 .mochaContentBorder {
border-width: 0px;
border-width: 0;
}

/* Window Themes */

.mocha.no-canvas {
background: #e5e5e5;
border: 1px solid #555;
border: 1px solid #555555;
}

.mocha.no-canvas .mochaTitlebar {
background: #e5e5e5;
}

.mocha.transparent .mochaTitlebar h3 {
color: #fff;
color: #ffffff;
display: none;
}

Expand All @@ -312,7 +312,7 @@ div.mochaToolbarWrapper.bottom {
}

.mocha.notification .mochaContentBorder {
border-width: 0px;
border-width: 0;
}

.mocha.notification .mochaContentWrapper {
Expand Down Expand Up @@ -345,20 +345,20 @@ div.mochaToolbarWrapper.bottom {
}

.jsonExample .mochaTitlebar h3 {
color: #ddd;
color: #dddddd;
}

/* This does not work in IE6. */
.isFocused.jsonExample .mochaTitlebar h3 {
color: #fff;
color: #ffffff;
}

#fxmorpherExample .mochaContentWrapper {
background: #577a9e;
}

#clock {
background: #fff;
background: #ffffff;
}

/* Workaround to make invisible buttons clickable */
Expand Down
8 changes: 4 additions & 4 deletions src/webui/www/private/css/dynamicTable.css
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ div:has(> div.dynamicTableFixedHeaderDiv):not(.invisible) {
}

.dynamicTableDiv thead th {
height: 0px !important;
line-height: 0px !important;
padding-bottom: 0px !important;
padding-top: 0px !important;
height: 0 !important;
line-height: 0 !important;
padding-bottom: 0 !important;
padding-top: 0 !important;
}

/* Trackers table */
Expand Down
2 changes: 1 addition & 1 deletion src/webui/www/private/css/noscript.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
}

#noscript {
color: #f00;
color: #ff0000;
text-align: center;
}
18 changes: 9 additions & 9 deletions src/webui/www/private/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ pre {

hr {
background-color: var(--color-background-default);
border: 0px;
border: 0;
color: var(--color-text-default);
height: 1px;
margin-bottom: 6px;
Expand Down Expand Up @@ -435,8 +435,8 @@ a.propButton img {
.sliderarea {
background: #f2f2f2 url("../images/slider-area.gif") repeat-x;
border: 1px solid #a3a3a3;
border-bottom: 1px solid #ccc;
border-left: 1px solid #ccc;
border-bottom: 1px solid #cccccc;
border-left: 1px solid #cccccc;
font-size: 1px;
height: 7px;
left: 0;
Expand Down Expand Up @@ -573,7 +573,7 @@ label.tristate {
display: block;
float: left;
height: 13px;
margin: 0.15em 8px 5px 0px;
margin: 0.15em 8px 5px 0;
overflow: hidden;
text-indent: -999em;
width: 13px;
Expand Down Expand Up @@ -785,20 +785,20 @@ td.generalLabel {

.select-watched-folder-editable select {
border: none;
bottom: 0px;
left: 0px;
bottom: 0;
left: 0;
padding: 0;
position: absolute;
top: 0px;
top: 0;
width: 158px;
}

.select-watched-folder-editable input {
border: none;
left: 0px;
left: 0;
padding: 0;
position: absolute;
top: 0px;
top: 0;
width: 140px;
}

Expand Down
10 changes: 5 additions & 5 deletions src/webui/www/private/css/vanillaSelectBox.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ li[data-parent].open:not(.hidden-search) {
}

li.disabled {
background-color: #999;
background-color: #999999;
cursor: not-allowed;
opacity: 0.3;
}

li.overflow {
background-color: #999;
background-color: #999999;
cursor: not-allowed;
opacity: 0.3;
}
Expand Down Expand Up @@ -140,7 +140,7 @@ li.short {
height: 11px;
margin-left: 22px;
margin-right: 2px;
margin-top: 0px;
margin-top: 0;
padding: 1px 3px 2px;
width: 8px;
}
Expand All @@ -151,7 +151,7 @@ li.short {
float: left;
font-size: inherit;
height: 8px;
margin-left: 0px;
margin-left: 0;
transform: rotate(45deg);
width: 5px;
}
Expand Down Expand Up @@ -194,7 +194,7 @@ li.short {
font-weight: bold;
margin-left: -22px;
margin-right: 2px;
margin-top: 0px;
margin-top: 0;
padding: 7px;
}

Expand Down
2 changes: 1 addition & 1 deletion src/webui/www/public/css/login.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ body {
}

#error_msg {
color: #f00;
color: #ff0000;
white-space: pre;
}

Expand Down
2 changes: 1 addition & 1 deletion src/webui/www/public/css/noscript.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
}

#noscript {
color: #f00;
color: #ff0000;
text-align: center;
}
5 changes: 1 addition & 4 deletions src/webui/www/stylelint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,12 @@ export default {
],
ignoreFiles: ["private/css/lib/*.css"],
rules: {
"color-hex-length": null,
"color-hex-length": "long",
"comment-empty-line-before": null,
"comment-whitespace-inside": null,
"function-name-case": null,
"length-zero-no-unit": null,
"no-descending-specificity": null,
"order/properties-alphabetical-order": true,
"selector-class-pattern": null,
"selector-id-pattern": null,
"value-keyword-case": null
}
};

0 comments on commit dc8ac38

Please sign in to comment.