style.css 6.59 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;
pythongosssss's avatar
pythongosssss committed
11
12
13
14
15
16
17
18
19
}

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

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

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

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

.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
51
52
	background-color: var(--comfy-menu-bg); /* Modal background */
	color: var(--error-text);
pythongosssss's avatar
pythongosssss committed
53
54
55
56
57
58
59
60
	box-shadow: 0px 0px 20px #888888;
	border-radius: 10px;
	top: 50%;
	left: 50%;
	max-width: 80vw;
	max-height: 80vh;
	transform: translate(-50%, -50%);
	overflow: hidden;
pythongosssss's avatar
pythongosssss committed
61
	justify-content: center;
62
63
	font-family: monospace;
	font-size: 15px;
pythongosssss's avatar
pythongosssss committed
64
65
66
67
68
69
70
71
72
73
74
75
76
}

.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
77
78
79
80
81
82
.comfy-modal select,
.comfy-modal input[type=button],
.comfy-modal input[type=checkbox] {
	margin: 3px 3px 3px 4px;
}

pythongosssss's avatar
pythongosssss committed
83
84
85
86
87
88
89
90
91
92
93
.comfy-menu {
	font-size: 15px;
	position: absolute;
	top: 50%;
	right: 0%;
	text-align: center;
	z-index: 100;
	width: 170px;
	display: flex;
	flex-direction: column;
	align-items: center;
EllangoK's avatar
EllangoK committed
94
95
	color: var(--descrip-text);
	background-color: var(--comfy-menu-bg);
City's avatar
City committed
96
97
98
99
	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
100
101
}

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

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

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

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

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

pythongosssss's avatar
pythongosssss committed
134
135
136
137
138
139
140
141
142
.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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
.comfy-menu span.drag-handle {
	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
157
	color: var(--drag-text);
Jairo Correa's avatar
Jairo Correa committed
158
159
160
161
162
163
164
165
166
167
	text-shadow: 1px 0 1px black;
	position: absolute;
	top: 0;
	left: 0;
}

.comfy-menu span.drag-handle::after {
	content: '.. .. ..';
}

pythongosssss's avatar
pythongosssss committed
168
169
.comfy-queue-btn {
	width: 100%;
pythongosssss's avatar
pythongosssss committed
170
171
}

pythongosssss's avatar
pythongosssss committed
172
.comfy-list {
EllangoK's avatar
EllangoK committed
173
	color: var(--descrip-text);
174
	background-color: var(--comfy-menu-bg);
pythongosssss's avatar
pythongosssss committed
175
	margin-bottom: 10px;
176
	border-color: var(--border-color);
City's avatar
City committed
177
	border-style: solid;
pythongosssss's avatar
pythongosssss committed
178
179
180
181
182
}

.comfy-list-items {
	overflow-y: scroll;
	max-height: 100px;
City's avatar
City committed
183
	min-height: 25px;
EllangoK's avatar
EllangoK committed
184
	background-color: var(--comfy-input-bg);
pythongosssss's avatar
pythongosssss committed
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
	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
208
209
}

pythongosssss's avatar
pythongosssss committed
210
button.comfy-settings-btn {
City's avatar
City committed
211
	background-color: rgba(0, 0, 0, 0);
pythongosssss's avatar
pythongosssss committed
212
213
214
215
216
217
218
	font-size: 12px;
	padding: 0;
	position: absolute;
	right: 0;
	border: none;
}

City's avatar
City committed
219
220
221
222
button.comfy-queue-btn {
	margin: 6px 0 !important;
}

pythongosssss's avatar
pythongosssss committed
223
224
.comfy-modal.comfy-settings, 
.comfy-modal.comfy-manage-templates {
225
226
	text-align: center;
	font-family: sans-serif;
EllangoK's avatar
EllangoK committed
227
	color: var(--descrip-text);
pythongosssss's avatar
pythongosssss committed
228
	z-index: 99;
pythongosssss's avatar
pythongosssss committed
229
230
}

missionfloyd's avatar
missionfloyd committed
231
232
233
234
235
236
237
238
.comfy-modal.comfy-settings input[type="range"] {
	vertical-align: middle;
}

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

239
240
.comfy-modal input,
.comfy-modal select {
EllangoK's avatar
EllangoK committed
241
242
	color: var(--input-text);
	background-color: var(--comfy-input-bg);
243
	border-radius: 8px;
EllangoK's avatar
EllangoK committed
244
	border-color: var(--border-color);
245
246
247
248
	border-style: solid;
	font-size: inherit;
}

pythongosssss's avatar
pythongosssss committed
249
@media only screen and (max-height: 850px) {
pythongosssss's avatar
pythongosssss committed
250
	.comfy-menu {
251
252
253
254
255
256
257
258
		top: 0 !important;
		bottom: 0 !important;
		left: auto !important;
		right: 0 !important;
		border-radius: 0px;
	}
	.comfy-menu span.drag-handle {
		visibility:hidden
pythongosssss's avatar
pythongosssss committed
259
260
	}
}
missionfloyd's avatar
missionfloyd committed
261

EllangoK's avatar
EllangoK committed
262
263
/* Input popup */

missionfloyd's avatar
missionfloyd committed
264
.graphdialog {
265
	min-height: 1em;
EllangoK's avatar
EllangoK committed
266
	background-color: var(--comfy-menu-bg);
missionfloyd's avatar
missionfloyd committed
267
268
269
}

.graphdialog .name {
270
271
	font-size: 14px;
	font-family: sans-serif;
EllangoK's avatar
EllangoK committed
272
	color: var(--descrip-text);
missionfloyd's avatar
missionfloyd committed
273
274
275
}

.graphdialog button {
276
277
278
279
	margin-top: unset;
	vertical-align: unset;
	height: 1.6em;
	padding-right: 8px;
missionfloyd's avatar
missionfloyd committed
280
281
282
}

.graphdialog input, .graphdialog textarea, .graphdialog select {
EllangoK's avatar
EllangoK committed
283
	background-color: var(--comfy-input-bg);
284
	border: 2px solid;
EllangoK's avatar
EllangoK committed
285
286
	border-color: var(--border-color);
	color: var(--input-text);
287
	border-radius: 12px 0 0 12px;
missionfloyd's avatar
missionfloyd committed
288
}
289

EllangoK's avatar
EllangoK committed
290
291
/* Context menu */

space-nuko's avatar
space-nuko committed
292
293
294
295
296
.litegraph .dialog {
	 z-index: 1;
	 font-family: Arial;
}

297
298
299
.litegraph .litemenu-entry.has_submenu {
	position: relative;
	padding-right: 20px;
EllangoK's avatar
EllangoK committed
300
}
pythongosssss's avatar
style  
pythongosssss committed
301

EllangoK's avatar
EllangoK committed
302
.litemenu-entry.has_submenu::after {
303
304
305
306
	content: ">";
	position: absolute;
	top: 0;
	right: 2px;
EllangoK's avatar
EllangoK committed
307
308
}

EllangoK's avatar
EllangoK committed
309
310
.litegraph.litecontextmenu,
.litegraph.litecontextmenu.dark {
pythongosssss's avatar
pythongosssss committed
311
	z-index: 9999 !important;
EllangoK's avatar
EllangoK committed
312
313
314
315
316
317
318
	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
319
	color: var(--input-text);
EllangoK's avatar
EllangoK committed
320
321
}

EllangoK's avatar
EllangoK committed
322
323
.litegraph.litecontextmenu .litemenu-entry.submenu,
.litegraph.litecontextmenu.dark .litemenu-entry.submenu {
EllangoK's avatar
EllangoK committed
324
	background-color: var(--comfy-menu-bg) !important;
EllangoK's avatar
EllangoK committed
325
326
327
328
329
	color: var(--input-text);
}

.litegraph.litecontextmenu input {
	background-color: var(--comfy-input-bg) !important;
EllangoK's avatar
EllangoK committed
330
331
	color: var(--input-text) !important;
}
EllangoK's avatar
EllangoK committed
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

/* Search box */

.litegraph.litesearchbox {
	z-index: 9999 !important;
	background-color: var(--comfy-menu-bg) !important;
	overflow: hidden;
}

.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%);
}