Skip to content

Commit 2d72b25

Browse files
fix: apply stylelint auto-fixes
Auto-fix 68 CSS issues found by stylelint: - Convert legacy color functions (rgba() → rgb()) - Normalize font weights (bold/normal → 700/400) - Use shorthand properties (top/right/bottom/left → inset) - Add url() wrapper to @import statements - Remove redundant shorthand values - Fix pseudo-element notation (: → ::) Remaining 45 issues require manual review: - 44 descending specificity warnings - 1 duplicate selector
1 parent 022cf6d commit 2d72b25

File tree

23 files changed

+66
-90
lines changed

23 files changed

+66
-90
lines changed

apps/desktop-ui/src/assets/css/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '@comfyorg/design-system/css/style.css';
1+
@import url('@comfyorg/design-system/css/style.css');
22

33
#desktop-app {
44
position: absolute;

apps/desktop-ui/src/views/DesktopUpdateView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ onUnmounted(() => electron.Validation.dispose())
7070
right: 2rem;
7171
speak: none;
7272
font-style: normal;
73-
font-weight: normal;
73+
font-weight: 400;
7474
font-variant: normal;
7575
text-transform: none;
7676
line-height: 1;

apps/desktop-ui/src/views/MaintenanceView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ onUnmounted(() => electron.Validation.dispose())
191191
right: -2rem;
192192
speak: none;
193193
font-style: normal;
194-
font-weight: normal;
194+
font-weight: 400;
195195
font-variant: normal;
196196
text-transform: none;
197197
line-height: 1;

apps/desktop-ui/src/views/ServerStartView.vue

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@
1818
style="
1919
background: radial-gradient(
2020
ellipse 800px 600px at center,
21-
rgba(23, 23, 23, 0.95) 0%,
22-
rgba(23, 23, 23, 0.93) 10%,
23-
rgba(23, 23, 23, 0.9) 20%,
24-
rgba(23, 23, 23, 0.85) 30%,
25-
rgba(23, 23, 23, 0.75) 40%,
26-
rgba(23, 23, 23, 0.6) 50%,
27-
rgba(23, 23, 23, 0.4) 60%,
28-
rgba(23, 23, 23, 0.2) 70%,
29-
rgba(23, 23, 23, 0.1) 80%,
30-
rgba(23, 23, 23, 0.05) 90%,
21+
rgb(23 23 23 / 0.95) 0%,
22+
rgb(23 23 23 / 0.93) 10%,
23+
rgb(23 23 23 / 0.9) 20%,
24+
rgb(23 23 23 / 0.85) 30%,
25+
rgb(23 23 23 / 0.75) 40%,
26+
rgb(23 23 23 / 0.6) 50%,
27+
rgb(23 23 23 / 0.4) 60%,
28+
rgb(23 23 23 / 0.2) 70%,
29+
rgb(23 23 23 / 0.1) 80%,
30+
rgb(23 23 23 / 0.05) 90%,
3131
transparent 100%
3232
);
3333
"

packages/design-system/src/css/style.css

Lines changed: 22 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
@layer theme, base, primevue, components, utilities;
22

3-
@import './fonts.css';
4-
@import 'tailwindcss/theme' layer(theme);
5-
@import 'tailwindcss/utilities' layer(utilities);
6-
@import 'tw-animate-css';
3+
@import url('./fonts.css');
4+
@import url('tailwindcss/theme') layer(theme);
5+
@import url('tailwindcss/utilities') layer(utilities);
6+
@import url('tw-animate-css');
77

88
@plugin 'tailwindcss-primeui';
99

@@ -33,9 +33,9 @@
3333
--content-hover-fg: #000;
3434

3535
/* Code styling colors for help menu*/
36-
--code-text-color: rgba(0, 122, 255, 1);
37-
--code-bg-color: rgba(96, 165, 250, 0.2);
38-
--code-block-bg-color: rgba(60, 60, 60, 0.12);
36+
--code-text-color: rgb(0 122 255 / 1);
37+
--code-bg-color: rgb(96 165 250 / 0.2);
38+
--code-block-bg-color: rgb(60 60 60 / 0.12);
3939
}
4040

4141
@media (prefers-color-scheme: dark) {
@@ -418,7 +418,7 @@ body {
418418

419419
/* Strong and emphasis */
420420
.comfy-markdown-content strong {
421-
font-weight: bold;
421+
font-weight: 700;
422422
}
423423

424424
.comfy-markdown-content em {
@@ -429,7 +429,7 @@ body {
429429
display: none; /* Hidden by default */
430430
position: fixed; /* Stay in place */
431431
z-index: 100; /* Sit on top */
432-
padding: 30px 30px 10px 30px;
432+
padding: 30px 30px 10px;
433433
background-color: var(--comfy-menu-bg); /* Modal background */
434434
color: var(--error-text);
435435
box-shadow: 0 0 20px #888888;
@@ -477,8 +477,8 @@ body {
477477
background-color: var(--comfy-menu-bg);
478478
font-family: sans-serif;
479479
padding: 10px;
480-
border-radius: 0 8px 8px 8px;
481-
box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.4);
480+
border-radius: 0 8px 8px;
481+
box-shadow: 3px 3px 8px rgb(0 0 0 / 0.4);
482482
}
483483

484484
.comfy-menu-header {
@@ -496,7 +496,7 @@ body {
496496
}
497497

498498
.comfy-menu .comfy-menu-actions button {
499-
background-color: rgba(0, 0, 0, 0);
499+
background-color: rgb(0 0 0 / 0);
500500
padding: 0;
501501
border: none;
502502
cursor: pointer;
@@ -611,7 +611,7 @@ span.drag-handle::after {
611611
min-width: 160px;
612612
margin: 0;
613613
padding: 3px;
614-
font-weight: normal;
614+
font-weight: 400;
615615
}
616616

617617
.comfy-list-items button {
@@ -666,10 +666,7 @@ button.comfy-queue-btn {
666666

667667
@media only screen and (max-height: 850px) {
668668
.comfy-menu {
669-
top: 0 !important;
670-
bottom: 0 !important;
671-
left: auto !important;
672-
right: 0 !important;
669+
inset: 0 0 0 auto !important;
673670
border-radius: 0;
674671
}
675672

@@ -728,14 +725,11 @@ dialog {
728725
}
729726

730727
dialog::backdrop {
731-
background: rgba(0, 0, 0, 0.5);
728+
background: rgb(0 0 0 / 0.5);
732729
}
733730

734731
.comfy-dialog.comfyui-dialog.comfy-modal {
735-
top: 0;
736-
left: 0;
737-
right: 0;
738-
bottom: 0;
732+
inset: 0;
739733
transform: none;
740734
}
741735

@@ -747,8 +741,7 @@ dialog::backdrop {
747741
}
748742

749743
.comfy-dialog .comfy-modal-content {
750-
flex-direction: row;
751-
flex-wrap: wrap;
744+
flex-flow: row wrap;
752745
gap: 10px;
753746
color: var(--fg-color);
754747
}
@@ -820,8 +813,7 @@ dialog::backdrop {
820813
overflow: hidden;
821814
display: flex;
822815
flex-wrap: wrap;
823-
align-content: flex-start;
824-
justify-content: center;
816+
place-content: flex-start center;
825817
}
826818

827819
.comfy-img-preview img {
@@ -934,9 +926,9 @@ audio.comfy-audio.empty-audio-widget {
934926
.lg-node {
935927
/* Disable text selection on all nodes */
936928
user-select: none;
937-
-webkit-user-select: none;
938-
-moz-user-select: none;
939-
-ms-user-select: none;
929+
user-select: none;
930+
user-select: none;
931+
user-select: none;
940932
}
941933

942934
.lg-node .lg-slot,
@@ -963,7 +955,7 @@ audio.comfy-audio.empty-audio-widget {
963955
filter: none;
964956
backdrop-filter: none;
965957
text-shadow: none;
966-
-webkit-mask-image: none;
958+
mask-image: none;
967959
mask-image: none;
968960
clip-path: none;
969961
background-image: none;

src/assets/css/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
@import '@comfyorg/design-system/css/style.css';
1+
@import url('@comfyorg/design-system/css/style.css');

src/components/common/TreeExplorer.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,7 @@ defineExpose({
263263
:deep(.p-tree-node-content:has(.tree-folder.can-drop))::after {
264264
content: '';
265265
position: absolute;
266-
top: 0;
267-
left: 0;
268-
right: 0;
269-
bottom: 0;
266+
inset: 0;
270267
border: 1px solid var(--p-content-color);
271268
pointer-events: none;
272269
}

src/components/graph/NodeTooltip.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ useEventListener(window, 'click', hideTooltip)
136136
pointer-events: none;
137137
background: var(--comfy-input-bg);
138138
border-radius: 5px;
139-
box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
139+
box-shadow: 0 0 5px rgb(0 0 0 / 0.4);
140140
color: var(--input-text);
141141
font-family: sans-serif;
142142
left: 0;

src/components/graph/modals/ZoomControlsModal.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,10 @@ watch(
229229
</script>
230230
<style>
231231
.zoomInputContainer:focus-within {
232-
border: 1px solid rgb(204, 204, 204);
232+
border: 1px solid rgb(204 204 204);
233233
}
234234
235235
.dark-theme .zoomInputContainer:focus-within {
236-
border: 1px solid rgb(204, 204, 204);
236+
border: 1px solid rgb(204 204 204);
237237
}
238238
</style>

src/components/helpcenter/HelpCenterMenuContent.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ onMounted(async () => {
526526
overflow-y: auto;
527527
background: var(--p-content-background);
528528
border-radius: 12px;
529-
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
529+
box-shadow: 0 8px 32px rgb(0 0 0 / 0.15);
530530
border: 1px solid var(--p-content-border-color);
531531
backdrop-filter: blur(8px);
532532
position: relative;
@@ -611,7 +611,7 @@ onMounted(async () => {
611611
font-size: 0.8rem;
612612
font-weight: 600;
613613
color: var(--p-text-muted-color);
614-
margin: 0 0 0.5rem 0;
614+
margin: 0 0 0.5rem;
615615
padding: 0 1rem;
616616
text-transform: uppercase;
617617
letter-spacing: 0.5px;
@@ -669,7 +669,7 @@ onMounted(async () => {
669669
background: var(--p-content-background);
670670
border-radius: 12px;
671671
border: 1px solid var(--p-content-border-color);
672-
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
672+
box-shadow: 0 8px 32px rgb(0 0 0 / 0.15);
673673
overflow: hidden;
674674
transition: opacity 0.15s ease-out;
675675
}

0 commit comments

Comments
 (0)