style.css 8.34 KB
Newer Older
pythongosssss's avatar
pythongosssss committed
1
2
3
:root {
	--fg-color: #000;
	--bg-color: #fff;
EllangoK's avatar
EllangoK committed
4
5
6
7
8
9
10
	--comfy-menu-bg: #353535;
	--comfy-input-bg: #222;
	--input-text: #ddd;
	--descrip-text: #999;
	--drag-text: #ccc;
	--error-text: #ff4444;
	--border-color: #4e4e4e;
reaper47's avatar
reaper47 committed
11
12
	--tr-even-bg-color: #222;
	--tr-odd-bg-color: #353535;
pythongosssss's avatar
pythongosssss committed
13
14
15
16
17
18
19
20
21
}

@media (prefers-color-scheme: dark) {
	:root {
		--fg-color: #fff;
		--bg-color: #202020;
	}
}

pythongosssss's avatar
pythongosssss committed
22
23
24
25
26
body {
	width: 100vw;
	height: 100vh;
	margin: 0;
	overflow: hidden;
pythongosssss's avatar
pythongosssss committed
27
28
	background-color: var(--bg-color);
	color: var(--fg-color);
pythongosssss's avatar
pythongosssss committed
29
30
31
32
33
34
35
36
}

#graph-canvas {
	width: 100%;
	height: 100%;
}

.comfy-multiline-input {
37
38
	background-color: var(--comfy-input-bg);
	color: var(--input-text);
pythongosssss's avatar
pythongosssss committed
39
40
41
42
43
	overflow: hidden;
	overflow-y: auto;
	padding: 2px;
	resize: none;
	border: none;
44
45
	box-sizing: border-box;
	font-size: 10px;
pythongosssss's avatar
pythongosssss committed
46
47
48
49
50
51
52
}

.comfy-modal {
	display: none; /* Hidden by default */
	position: fixed; /* Stay in place */
	z-index: 100; /* Sit on top */
	padding: 30px 30px 10px 30px;
EllangoK's avatar
EllangoK committed
53
54
	background-color: var(--comfy-menu-bg); /* Modal background */
	color: var(--error-text);
reaper47's avatar
reaper47 committed
55
	box-shadow: 0 0 20px #888888;
pythongosssss's avatar
pythongosssss committed
56
57
58
59
60
61
62
	border-radius: 10px;
	top: 50%;
	left: 50%;
	max-width: 80vw;
	max-height: 80vh;
	transform: translate(-50%, -50%);
	overflow: hidden;
pythongosssss's avatar
pythongosssss committed
63
	justify-content: center;
64
65
	font-family: monospace;
	font-size: 15px;
pythongosssss's avatar
pythongosssss committed
66
67
68
69
70
71
72
73
74
75
76
77
78
}

.comfy-modal-content {
	display: flex;
	flex-direction: column;
}

.comfy-modal p {
	overflow: auto;
	white-space: pre-line; /* This will respect line breaks */
	margin-bottom: 20px; /* Add some margin between the text and the close button*/
}

Jairo Correa's avatar
Jairo Correa committed
79
80
81
82
83
84
.comfy-modal select,
.comfy-modal input[type=button],
.comfy-modal input[type=checkbox] {
	margin: 3px 3px 3px 4px;
}

pythongosssss's avatar
pythongosssss committed
85
86
87
88
.comfy-menu {
	font-size: 15px;
	position: absolute;
	top: 50%;
reaper47's avatar
reaper47 committed
89
	right: 0;
pythongosssss's avatar
pythongosssss committed
90
	text-align: center;
91
	z-index: 999;
pythongosssss's avatar
pythongosssss committed
92
93
94
95
	width: 170px;
	display: flex;
	flex-direction: column;
	align-items: center;
EllangoK's avatar
EllangoK committed
96
97
	color: var(--descrip-text);
	background-color: var(--comfy-menu-bg);
City's avatar
City committed
98
99
100
101
	font-family: sans-serif;
	padding: 10px;
	border-radius: 0 8px 8px 8px;
	box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.4);
pythongosssss's avatar
pythongosssss committed
102
103
}

104
105
.comfy-menu button,
.comfy-modal button {
pythongosssss's avatar
pythongosssss committed
106
107
108
	font-size: 20px;
}

pythongosssss's avatar
pythongosssss committed
109
110
.comfy-menu-btns {
	margin-bottom: 10px;
pythongosssss's avatar
pythongosssss committed
111
	width: 100%;
pythongosssss's avatar
pythongosssss committed
112
113
}

pythongosssss's avatar
pythongosssss committed
114
.comfy-menu-btns button {
pythongosssss's avatar
pythongosssss committed
115
116
	font-size: 10px;
	width: 50%;
EllangoK's avatar
EllangoK committed
117
	color: var(--descrip-text) !important;
City's avatar
City committed
118
119
120
121
122
123
}

.comfy-menu > button {
	width: 100%;
}

124
.comfy-btn,
City's avatar
City committed
125
126
.comfy-menu > button,
.comfy-menu-btns button,
127
.comfy-menu .comfy-list button,
pythongosssss's avatar
pythongosssss committed
128
.comfy-modal button {
EllangoK's avatar
EllangoK committed
129
130
	color: var(--input-text);
	background-color: var(--comfy-input-bg);
City's avatar
City committed
131
	border-radius: 8px;
EllangoK's avatar
EllangoK committed
132
	border-color: var(--border-color);
City's avatar
City committed
133
134
	border-style: solid;
	margin-top: 2px;
pythongosssss's avatar
pythongosssss committed
135
136
}

137
.comfy-btn:hover:not(:disabled),
pythongosssss's avatar
pythongosssss committed
138
139
140
141
142
143
144
145
146
.comfy-menu > button:hover,
.comfy-menu-btns button:hover,
.comfy-menu .comfy-list button:hover,
.comfy-modal button:hover,
.comfy-settings-btn:hover {
	filter: brightness(1.2);
	cursor: pointer;
}

Jairo Correa's avatar
Jairo Correa committed
147
.comfy-menu span.drag-handle {
pythongosssss's avatar
pythongosssss committed
148
149
150
151
152
153
	position: absolute;
	top: 0;
	left: 0;
}

span.drag-handle {
Jairo Correa's avatar
Jairo Correa committed
154
155
156
157
158
159
160
161
162
163
164
165
166
	width: 10px;
	height: 20px;
	display: inline-block;
	overflow: hidden;
	line-height: 5px;
	padding: 3px 4px;
	cursor: move;
	vertical-align: middle;
	margin-top: -.4em;
	margin-left: -.2em;
	font-size: 12px;
	font-family: sans-serif;
	letter-spacing: 2px;
EllangoK's avatar
EllangoK committed
167
	color: var(--drag-text);
Jairo Correa's avatar
Jairo Correa committed
168
169
170
	text-shadow: 1px 0 1px black;
}

pythongosssss's avatar
pythongosssss committed
171
span.drag-handle::after {
Jairo Correa's avatar
Jairo Correa committed
172
173
174
	content: '.. .. ..';
}

pythongosssss's avatar
pythongosssss committed
175
176
.comfy-queue-btn {
	width: 100%;
pythongosssss's avatar
pythongosssss committed
177
178
}

pythongosssss's avatar
pythongosssss committed
179
.comfy-list {
EllangoK's avatar
EllangoK committed
180
	color: var(--descrip-text);
181
	background-color: var(--comfy-menu-bg);
pythongosssss's avatar
pythongosssss committed
182
	margin-bottom: 10px;
183
	border-color: var(--border-color);
City's avatar
City committed
184
	border-style: solid;
pythongosssss's avatar
pythongosssss committed
185
186
187
188
189
}

.comfy-list-items {
	overflow-y: scroll;
	max-height: 100px;
City's avatar
City committed
190
	min-height: 25px;
EllangoK's avatar
EllangoK committed
191
	background-color: var(--comfy-input-bg);
pythongosssss's avatar
pythongosssss committed
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
	padding: 5px;
}

.comfy-list h4 {
	min-width: 160px;
	margin: 0;
	padding: 3px;
	font-weight: normal;
}

.comfy-list-items button {
	font-size: 10px;
}

.comfy-list-actions {
	margin: 5px;
	display: flex;
	gap: 5px;
	justify-content: center;
}

.comfy-list-actions button {
	font-size: 12px;
pythongosssss's avatar
pythongosssss committed
215
216
}

pythongosssss's avatar
pythongosssss committed
217
button.comfy-settings-btn {
City's avatar
City committed
218
	background-color: rgba(0, 0, 0, 0);
pythongosssss's avatar
pythongosssss committed
219
220
221
222
223
224
225
	font-size: 12px;
	padding: 0;
	position: absolute;
	right: 0;
	border: none;
}

City's avatar
City committed
226
227
228
229
button.comfy-queue-btn {
	margin: 6px 0 !important;
}

reaper47's avatar
reaper47 committed
230
.comfy-modal.comfy-settings,
pythongosssss's avatar
pythongosssss committed
231
.comfy-modal.comfy-manage-templates {
232
233
	text-align: center;
	font-family: sans-serif;
EllangoK's avatar
EllangoK committed
234
	color: var(--descrip-text);
pythongosssss's avatar
pythongosssss committed
235
	z-index: 99;
pythongosssss's avatar
pythongosssss committed
236
237
}

missionfloyd's avatar
missionfloyd committed
238
239
240
241
242
243
244
245
.comfy-modal.comfy-settings input[type="range"] {
	vertical-align: middle;
}

.comfy-modal.comfy-settings input[type="range"] + input[type="number"] {
	width: 3.5em;
}

246
247
.comfy-modal input,
.comfy-modal select {
EllangoK's avatar
EllangoK committed
248
249
	color: var(--input-text);
	background-color: var(--comfy-input-bg);
250
	border-radius: 8px;
EllangoK's avatar
EllangoK committed
251
	border-color: var(--border-color);
252
253
254
255
	border-style: solid;
	font-size: inherit;
}

reaper47's avatar
reaper47 committed
256
257
258
259
260
.comfy-tooltip-indicator {
	text-decoration: underline;
	text-decoration-style: dashed;
}

pythongosssss's avatar
pythongosssss committed
261
@media only screen and (max-height: 850px) {
pythongosssss's avatar
pythongosssss committed
262
	.comfy-menu {
263
264
265
266
		top: 0 !important;
		bottom: 0 !important;
		left: auto !important;
		right: 0 !important;
reaper47's avatar
reaper47 committed
267
		border-radius: 0;
268
	}
reaper47's avatar
reaper47 committed
269

270
	.comfy-menu span.drag-handle {
reaper47's avatar
reaper47 committed
271
		visibility: hidden
pythongosssss's avatar
pythongosssss committed
272
273
	}
}
missionfloyd's avatar
missionfloyd committed
274

EllangoK's avatar
EllangoK committed
275
276
/* Input popup */

missionfloyd's avatar
missionfloyd committed
277
.graphdialog {
278
	min-height: 1em;
EllangoK's avatar
EllangoK committed
279
	background-color: var(--comfy-menu-bg);
missionfloyd's avatar
missionfloyd committed
280
281
282
}

.graphdialog .name {
283
284
	font-size: 14px;
	font-family: sans-serif;
EllangoK's avatar
EllangoK committed
285
	color: var(--descrip-text);
missionfloyd's avatar
missionfloyd committed
286
287
288
}

.graphdialog button {
289
290
291
292
	margin-top: unset;
	vertical-align: unset;
	height: 1.6em;
	padding-right: 8px;
missionfloyd's avatar
missionfloyd committed
293
294
295
}

.graphdialog input, .graphdialog textarea, .graphdialog select {
EllangoK's avatar
EllangoK committed
296
	background-color: var(--comfy-input-bg);
297
	border: 2px solid;
EllangoK's avatar
EllangoK committed
298
299
	border-color: var(--border-color);
	color: var(--input-text);
300
	border-radius: 12px 0 0 12px;
missionfloyd's avatar
missionfloyd committed
301
}
302

reaper47's avatar
reaper47 committed
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
/* Dialogs */

dialog {
	box-shadow: 0 0 20px #888888;
}

dialog::backdrop {
	background: rgba(0, 0, 0, 0.5);
}

#comfy-settings-dialog {
	padding: 0;
	width: 41rem;
}

#comfy-settings-dialog tr > td:first-child {
	text-align: right;
}

#comfy-settings-dialog button {
	background-color: var(--bg-color);
	border: 1px var(--border-color) solid;
	border-radius: 0;
	color: var(--input-text);
	font-size: 1rem;
	padding: 0.5rem;
}

#comfy-settings-dialog button:hover {
	background-color: var(--tr-odd-bg-color);
}

/* General CSS for tables */

.comfy-table {
	border-collapse: collapse;
	color: var(--input-text);
	font-family: Arial, sans-serif;
	width: 100%;
}

.comfy-table caption {
	background-color: var(--bg-color);
	color: var(--input-text);
	font-size: 1rem;
	font-weight: bold;
	padding: 8px;
	text-align: center;
}

.comfy-table tr:nth-child(even) {
	background-color: var(--tr-even-bg-color);
}

.comfy-table tr:nth-child(odd) {
	background-color: var(--tr-odd-bg-color);
}

reaper47's avatar
reaper47 committed
361
362
.comfy-table td,
.comfy-table th {
reaper47's avatar
reaper47 committed
363
364
365
366
	border: 1px solid var(--border-color);
	padding: 8px;
}

EllangoK's avatar
EllangoK committed
367
368
/* Context menu */

space-nuko's avatar
space-nuko committed
369
.litegraph .dialog {
reaper47's avatar
reaper47 committed
370
371
	z-index: 1;
	font-family: Arial, sans-serif;
space-nuko's avatar
space-nuko committed
372
373
}

374
375
376
.litegraph .litemenu-entry.has_submenu {
	position: relative;
	padding-right: 20px;
EllangoK's avatar
EllangoK committed
377
}
pythongosssss's avatar
style  
pythongosssss committed
378

EllangoK's avatar
EllangoK committed
379
.litemenu-entry.has_submenu::after {
380
381
382
383
	content: ">";
	position: absolute;
	top: 0;
	right: 2px;
EllangoK's avatar
EllangoK committed
384
385
}

EllangoK's avatar
EllangoK committed
386
387
.litegraph.litecontextmenu,
.litegraph.litecontextmenu.dark {
pythongosssss's avatar
pythongosssss committed
388
	z-index: 9999 !important;
EllangoK's avatar
EllangoK committed
389
390
391
392
393
394
395
	background-color: var(--comfy-menu-bg) !important;
	filter: brightness(95%);
}

.litegraph.litecontextmenu .litemenu-entry:hover:not(.disabled):not(.separator) {
	background-color: var(--comfy-menu-bg) !important;
	filter: brightness(155%);
EllangoK's avatar
EllangoK committed
396
	color: var(--input-text);
EllangoK's avatar
EllangoK committed
397
398
}

EllangoK's avatar
EllangoK committed
399
400
.litegraph.litecontextmenu .litemenu-entry.submenu,
.litegraph.litecontextmenu.dark .litemenu-entry.submenu {
EllangoK's avatar
EllangoK committed
401
	background-color: var(--comfy-menu-bg) !important;
EllangoK's avatar
EllangoK committed
402
403
404
405
406
	color: var(--input-text);
}

.litegraph.litecontextmenu input {
	background-color: var(--comfy-input-bg) !important;
EllangoK's avatar
EllangoK committed
407
408
	color: var(--input-text) !important;
}
EllangoK's avatar
EllangoK committed
409

reaper47's avatar
reaper47 committed
410
411
412
413
414
415
416
.comfy-context-menu-filter {
	box-sizing: border-box;
	border: 1px solid #999;
	margin: 0 0 5px 5px;
	width: calc(100% - 10px);
}

417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
.comfy-img-preview {
	pointer-events: none;
	overflow: hidden;
	display: flex;
	flex-wrap: wrap;
 	align-content: flex-start;
	justify-content: center;
}

.comfy-img-preview img {
	object-fit: contain;
	width: var(--comfy-img-preview-width);
	height: var(--comfy-img-preview-height);
}

432
433
434
435
436
.comfy-missing-nodes li button {
	font-size: 12px;
	margin-left: 5px;
}

EllangoK's avatar
EllangoK committed
437
438
439
440
441
442
/* Search box */

.litegraph.litesearchbox {
	z-index: 9999 !important;
	background-color: var(--comfy-menu-bg) !important;
	overflow: hidden;
comfyanonymous's avatar
comfyanonymous committed
443
	display: block;
EllangoK's avatar
EllangoK committed
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
}

.litegraph.litesearchbox input,
.litegraph.litesearchbox select {
	background-color: var(--comfy-input-bg) !important;
	color: var(--input-text);
}

.litegraph.lite-search-item {
	color: var(--input-text);
	background-color: var(--comfy-input-bg);
	filter: brightness(80%);
	padding-left: 0.2em;
}

.litegraph.lite-search-item.generic_type {
	color: var(--input-text);
	filter: brightness(50%);
}