Skip to content

Commit a13a274

Browse files
christian-byrneDrJKL
authored andcommitted
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 61d0a12 commit a13a274

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) {
@@ -496,7 +496,7 @@ body {
496496

497497
/* Strong and emphasis */
498498
.comfy-markdown-content strong {
499-
font-weight: bold;
499+
font-weight: 700;
500500
}
501501

502502
.comfy-markdown-content em {
@@ -507,7 +507,7 @@ body {
507507
display: none; /* Hidden by default */
508508
position: fixed; /* Stay in place */
509509
z-index: 100; /* Sit on top */
510-
padding: 30px 30px 10px 30px;
510+
padding: 30px 30px 10px;
511511
background-color: var(--comfy-menu-bg); /* Modal background */
512512
color: var(--error-text);
513513
box-shadow: 0 0 20px #888888;
@@ -555,8 +555,8 @@ body {
555555
background-color: var(--comfy-menu-bg);
556556
font-family: sans-serif;
557557
padding: 10px;
558-
border-radius: 0 8px 8px 8px;
559-
box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.4);
558+
border-radius: 0 8px 8px;
559+
box-shadow: 3px 3px 8px rgb(0 0 0 / 0.4);
560560
}
561561

562562
.comfy-menu-header {
@@ -574,7 +574,7 @@ body {
574574
}
575575

576576
.comfy-menu .comfy-menu-actions button {
577-
background-color: rgba(0, 0, 0, 0);
577+
background-color: rgb(0 0 0 / 0);
578578
padding: 0;
579579
border: none;
580580
cursor: pointer;
@@ -689,7 +689,7 @@ span.drag-handle::after {
689689
min-width: 160px;
690690
margin: 0;
691691
padding: 3px;
692-
font-weight: normal;
692+
font-weight: 400;
693693
}
694694

695695
.comfy-list-items button {
@@ -744,10 +744,7 @@ button.comfy-queue-btn {
744744

745745
@media only screen and (max-height: 850px) {
746746
.comfy-menu {
747-
top: 0 !important;
748-
bottom: 0 !important;
749-
left: auto !important;
750-
right: 0 !important;
747+
inset: 0 0 0 auto !important;
751748
border-radius: 0;
752749
}
753750

@@ -806,14 +803,11 @@ dialog {
806803
}
807804

808805
dialog::backdrop {
809-
background: rgba(0, 0, 0, 0.5);
806+
background: rgb(0 0 0 / 0.5);
810807
}
811808

812809
.comfy-dialog.comfyui-dialog.comfy-modal {
813-
top: 0;
814-
left: 0;
815-
right: 0;
816-
bottom: 0;
810+
inset: 0;
817811
transform: none;
818812
}
819813

@@ -825,8 +819,7 @@ dialog::backdrop {
825819
}
826820

827821
.comfy-dialog .comfy-modal-content {
828-
flex-direction: row;
829-
flex-wrap: wrap;
822+
flex-flow: row wrap;
830823
gap: 10px;
831824
color: var(--fg-color);
832825
}
@@ -898,8 +891,7 @@ dialog::backdrop {
898891
overflow: hidden;
899892
display: flex;
900893
flex-wrap: wrap;
901-
align-content: flex-start;
902-
justify-content: center;
894+
place-content: flex-start center;
903895
}
904896

905897
.comfy-img-preview img {
@@ -1012,9 +1004,9 @@ audio.comfy-audio.empty-audio-widget {
10121004
.lg-node {
10131005
/* Disable text selection on all nodes */
10141006
user-select: none;
1015-
-webkit-user-select: none;
1016-
-moz-user-select: none;
1017-
-ms-user-select: none;
1007+
user-select: none;
1008+
user-select: none;
1009+
user-select: none;
10181010
}
10191011

10201012
.lg-node .lg-slot,
@@ -1041,7 +1033,7 @@ audio.comfy-audio.empty-audio-widget {
10411033
filter: none;
10421034
backdrop-filter: none;
10431035
text-shadow: none;
1044-
-webkit-mask-image: none;
1036+
mask-image: none;
10451037
mask-image: none;
10461038
clip-path: none;
10471039
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)