@xifu/shader-graph-glsl 0.1.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,987 @@
1
+ /* packages/editor/src/editor.css */
2
+ .rete-node-view:hover {
3
+ z-index: 1;
4
+ }
5
+ .rete-area-select {
6
+ border: 1.5px dashed #7b5622;
7
+ position: absolute;
8
+ top: 0;
9
+ left: 0;
10
+ will-change: width, height;
11
+ pointer-events: none;
12
+ opacity: 0;
13
+ }
14
+ .rete-area-select.rete-area-select-active {
15
+ opacity: 1;
16
+ }
17
+ .sg-block {
18
+ min-width: 180px;
19
+ }
20
+ .sg-node {
21
+ background-color: rgba(0, 0, 0, 0.5) !important;
22
+ user-select: none;
23
+ }
24
+ .sg-node::after {
25
+ content: " ";
26
+ display: block;
27
+ width: calc(100% + 3px);
28
+ height: calc(100% + 3px);
29
+ position: absolute;
30
+ top: -2.5px;
31
+ left: -2.5px;
32
+ border: 1px solid transparent;
33
+ border-radius: 5px;
34
+ z-index: -1;
35
+ }
36
+ .sg-node:hover::after {
37
+ border-color: #306782;
38
+ }
39
+ .sg-node.selected::after,
40
+ .sg-node.highlight::after {
41
+ border-color: #268bbd;
42
+ border-width: 2px;
43
+ top: -3.5px;
44
+ left: -3.5px;
45
+ }
46
+ .sg-node.highlight::after {
47
+ border-color: #17d3dd !important;
48
+ }
49
+ .sg-node-control-can {
50
+ background-color: rgba(255, 255, 255, 0.15);
51
+ }
52
+ .sg-context {
53
+ padding: 8px 14px 5px 14px;
54
+ background-color: rgba(0, 0, 0, 0.3);
55
+ border-radius: 10px;
56
+ user-select: none;
57
+ position: relative;
58
+ z-index: 0;
59
+ }
60
+ .sg-context::after {
61
+ content: " ";
62
+ display: block;
63
+ width: calc(100% + 0px);
64
+ height: calc(100% + 0px);
65
+ position: absolute;
66
+ top: -1px;
67
+ left: -1px;
68
+ border: 1px solid transparent;
69
+ border-radius: 10px;
70
+ z-index: -1;
71
+ }
72
+ .sg-context:hover::after {
73
+ border-color: #306782;
74
+ }
75
+ .sg-context[data-aria-selected=true]::after {
76
+ border-color: #268bbd;
77
+ border-width: 2px;
78
+ top: -2px;
79
+ left: -2px;
80
+ }
81
+ .sg-context-title {
82
+ text-align: left;
83
+ margin-bottom: 5px;
84
+ }
85
+ .sg-context-block {
86
+ margin-bottom: 10px;
87
+ position: relative;
88
+ z-index: 0;
89
+ }
90
+ .sg-context-block-can {
91
+ cursor: grab;
92
+ }
93
+ .sg-context-block[data-indicator-show=top]::before,
94
+ .sg-context-block[data-indicator-show=bottom]::before {
95
+ content: " ";
96
+ display: block;
97
+ position: absolute;
98
+ left: 0;
99
+ right: 0;
100
+ height: 5px;
101
+ background-color: #ca9934;
102
+ }
103
+ .sg-context-block[data-indicator-show=top]::before {
104
+ top: -5px;
105
+ }
106
+ .sg-context-block[data-indicator-show=bottom]::before {
107
+ bottom: -5px;
108
+ }
109
+ .sg-context-block-placeholder {
110
+ min-width: 150px;
111
+ padding: 3px;
112
+ border: 1px solid rgba(0, 0, 0, 0.3);
113
+ background-color: rgba(255, 255, 255, 0.3);
114
+ margin-bottom: 8px;
115
+ border-radius: 5px;
116
+ font-size: 14px;
117
+ }
118
+ .sg-parameter {
119
+ border-radius: 15px;
120
+ overflow: hidden;
121
+ display: flex;
122
+ align-items: center;
123
+ background-color: #545455;
124
+ padding: 3px 8px 3px 10px;
125
+ }
126
+ .sg-parameter:hover {
127
+ outline: 1px solid #67bff9;
128
+ }
129
+ .sg-parameter.selected {
130
+ outline: 2px solid #67bff9;
131
+ }
132
+ .sg-parameter-output {
133
+ padding: 0 !important;
134
+ }
135
+ .sg-parameter-output-can {
136
+ background: unset !important;
137
+ }
138
+ .sg-context-input {
139
+ margin: 0 10px;
140
+ }
141
+ .sg-context-input-can {
142
+ position: absolute;
143
+ top: -13px;
144
+ left: 0;
145
+ right: 0;
146
+ height: 0;
147
+ display: flex;
148
+ justify-content: center;
149
+ }
150
+ .sg-context-input-title {
151
+ position: absolute;
152
+ top: 0;
153
+ right: 0;
154
+ font-size: 13px;
155
+ transform: translate(calc(100% + 5px), -100%);
156
+ }
157
+ .sg-context-output {
158
+ margin: 0 10px;
159
+ }
160
+ .sg-context-output-can {
161
+ position: absolute;
162
+ left: 0;
163
+ right: 0;
164
+ bottom: 13px;
165
+ height: 0;
166
+ display: flex;
167
+ justify-content: center;
168
+ }
169
+ .sg-context-output-title {
170
+ position: absolute;
171
+ bottom: 0;
172
+ right: 0;
173
+ transform: translate(calc(100% + 5px), 100%);
174
+ font-size: 13px;
175
+ }
176
+ .sg-node-io-can {
177
+ display: flex;
178
+ width: 100%;
179
+ user-select: none;
180
+ }
181
+ .sg-node-io-can[data-gap-top=true] {
182
+ border-top: 1px solid rgba(0, 0, 0, 0.5);
183
+ }
184
+ .sg-node-io-can[data-gap-bottom=true] {
185
+ border-bottom: 1px solid rgba(0, 0, 0, 0.5);
186
+ }
187
+ .sg-node-io-gap {
188
+ width: 1px;
189
+ flex: none;
190
+ background-color: rgba(0, 0, 0, 0.5);
191
+ }
192
+ .sg-node-input {
193
+ position: relative;
194
+ z-index: 0;
195
+ display: flex;
196
+ justify-content: left;
197
+ align-items: center;
198
+ padding: 4px 10px 4px 0;
199
+ }
200
+ .sg-node-input-can {
201
+ flex: 1;
202
+ background-color: rgba(255, 255, 255, 0.15);
203
+ }
204
+ .sg-node-input-control {
205
+ position: absolute;
206
+ left: 0;
207
+ transform: translateX(-100%);
208
+ }
209
+ .sg-node-input-title {
210
+ white-space: nowrap;
211
+ }
212
+ .sg-node-output {
213
+ display: flex;
214
+ justify-content: right;
215
+ align-items: center;
216
+ padding: 4px 0px 4px 10px;
217
+ }
218
+ .sg-node-output-can {
219
+ flex: 1;
220
+ background-color: rgba(255, 255, 255, 0.05);
221
+ }
222
+ .sg-node-output-title {
223
+ white-space: nowrap;
224
+ }
225
+ .sg-input-asset {
226
+ border: 1px solid #202020;
227
+ border-radius: 5px;
228
+ overflow: hidden;
229
+ display: flex;
230
+ align-items: center;
231
+ max-width: 200px;
232
+ width: 100%;
233
+ }
234
+ .sg-input-asset:hover {
235
+ border-color: #656565;
236
+ }
237
+ .sg-input-asset-icon {
238
+ flex: none;
239
+ flex-shrink: 0;
240
+ width: 15px;
241
+ height: 15px;
242
+ border: 1px solid #2d6cc2;
243
+ margin: 0 5px;
244
+ border-radius: 2px;
245
+ }
246
+ .sg-input-asset-label {
247
+ flex: auto;
248
+ flex-shrink: 1;
249
+ white-space: nowrap;
250
+ text-overflow: ellipsis;
251
+ overflow: hidden;
252
+ color: white;
253
+ }
254
+ .sg-input-asset-btn {
255
+ flex: none;
256
+ flex-shrink: 0;
257
+ width: 28px;
258
+ height: 100%;
259
+ min-height: 25px;
260
+ position: relative;
261
+ z-index: 0;
262
+ cursor: pointer;
263
+ }
264
+ .sg-input-asset-btn:hover {
265
+ background-color: rgba(255, 255, 255, 0.15);
266
+ }
267
+ .sg-input-asset-btn::after,
268
+ .sg-input-asset-btn::before {
269
+ content: " ";
270
+ display: block;
271
+ position: absolute;
272
+ top: 0;
273
+ left: 0;
274
+ right: 0;
275
+ bottom: 0;
276
+ margin: auto;
277
+ border: 1px solid #c4c4c4;
278
+ border-radius: 100%;
279
+ }
280
+ .sg-input-asset-btn::after {
281
+ width: 12px;
282
+ height: 12px;
283
+ }
284
+ .sg-input-asset-btn::before {
285
+ width: 3px;
286
+ height: 3px;
287
+ background-color: #c4c4c4;
288
+ }
289
+ .sg-float-input {
290
+ min-width: 0;
291
+ width: 26px;
292
+ }
293
+ .sg-float-label {
294
+ padding: 0 8px;
295
+ cursor: ew-resize;
296
+ }
297
+ .sg-input-grid {
298
+ width: 100%;
299
+ }
300
+ .sg-input-grid-item {
301
+ width: 30px;
302
+ margin: 2px;
303
+ }
304
+ .sg-input-list {
305
+ border-top-left-radius: 3px;
306
+ border-top-right-radius: 3px;
307
+ overflow: hidden;
308
+ }
309
+ .sg-input-list-label {
310
+ background-color: #b6b6b6;
311
+ padding: 2px 5px;
312
+ color: #0c0c0c;
313
+ border-bottom: 1px solid #a4a4a4;
314
+ font-size: 14.5px;
315
+ }
316
+ .sg-input-list-body {
317
+ border-bottom-left-radius: 3px;
318
+ border-bottom-right-radius: 3px;
319
+ overflow: hidden;
320
+ background-color: #c8c8c8;
321
+ }
322
+ .sg-input-list-body-placeholder {
323
+ color: #0c0c0c;
324
+ padding: 2px 5px;
325
+ font-size: 14px;
326
+ }
327
+ .sg-input-list-btn {
328
+ width: 30px;
329
+ height: 20px;
330
+ text-align: center;
331
+ line-height: 16px;
332
+ background-color: #c8c8c8;
333
+ overflow: hidden;
334
+ color: #555555;
335
+ font-weight: bold;
336
+ cursor: pointer;
337
+ }
338
+ .sg-input-list-btn:hover {
339
+ background-color: #c1c1c1;
340
+ }
341
+ .sg-input-list-btn[data-aria-disabled=true] {
342
+ color: #8e8e8e;
343
+ cursor: default;
344
+ }
345
+ .sg-input-list-btn[data-aria-disabled=true]:hover {
346
+ background-color: #c8c8c8;
347
+ }
348
+ .sg-input-list-btn-add {
349
+ border-bottom-left-radius: 3px;
350
+ }
351
+ .sg-input-list-btn-del {
352
+ border-bottom-right-radius: 3px;
353
+ }
354
+ .sg-input-list-btn-can {
355
+ display: flex;
356
+ justify-content: right;
357
+ padding-right: 10px;
358
+ }
359
+ .sg-label {
360
+ flex: 1;
361
+ display: flex;
362
+ align-items: center;
363
+ padding-left: 10px;
364
+ }
365
+ .sg-label-can {
366
+ width: 100%;
367
+ display: flex;
368
+ }
369
+ .sg-label[data-aria-disabled=true] {
370
+ color: gray;
371
+ }
372
+ .sg-menu-list {
373
+ background-color: #ececec;
374
+ user-select: none;
375
+ padding: 5px;
376
+ border-radius: 5px;
377
+ position: absolute;
378
+ z-index: 1;
379
+ }
380
+ .sg-menu-list-can {
381
+ opacity: 0;
382
+ }
383
+ .sg-menu-item {
384
+ text-align: left;
385
+ display: flex;
386
+ color: black;
387
+ padding: 0 5px;
388
+ border-radius: 5px;
389
+ font-size: 14px;
390
+ min-width: 80px;
391
+ position: relative;
392
+ z-index: 0;
393
+ }
394
+ .sg-menu-item-name {
395
+ flex: 1;
396
+ }
397
+ .sg-menu-item[data-aria-disabled=true] {
398
+ color: #acacac;
399
+ }
400
+ .sg-menu-item[data-aria-disabled=true]:hover {
401
+ color: #acacac;
402
+ background-color: unset;
403
+ }
404
+ .sg-menu-item:hover {
405
+ color: white;
406
+ background-color: #2667d9;
407
+ }
408
+ .sg-menu-item:hover .sg-menu-submenu {
409
+ display: block;
410
+ }
411
+ .sg-menu-submenu {
412
+ position: absolute;
413
+ top: -5px;
414
+ display: none;
415
+ }
416
+ .sg-menu-submenu[data-position=right] {
417
+ right: 0;
418
+ transform: translateX(100%);
419
+ }
420
+ .sg-menu-submenu[data-position=left] {
421
+ left: 0;
422
+ transform: translateX(-100%);
423
+ }
424
+ .sg-menu-divider {
425
+ margin: 5px;
426
+ height: 1px;
427
+ background-color: #d2d2d2;
428
+ }
429
+ .sg-popup-movable {
430
+ position: absolute;
431
+ top: 0;
432
+ left: 0;
433
+ will-change: transform;
434
+ }
435
+ .sg-popup-mask {
436
+ position: fixed;
437
+ top: 0;
438
+ left: 0;
439
+ width: 100vw;
440
+ height: 100vh;
441
+ }
442
+ .sg-popup-title {
443
+ user-select: none;
444
+ padding: 3px 5px 0 5px;
445
+ }
446
+ .sg-preview {
447
+ background-color: rgba(255, 255, 255, 0.1);
448
+ display: flex;
449
+ justify-content: center;
450
+ position: relative;
451
+ }
452
+ .sg-preview-btn {
453
+ width: 50px;
454
+ height: 20px;
455
+ display: flex;
456
+ justify-content: center;
457
+ align-items: center;
458
+ cursor: pointer;
459
+ user-select: none;
460
+ }
461
+ .sg-preview-btn:hover {
462
+ background-color: rgba(0, 0, 0, 0.2);
463
+ }
464
+ .sg-preview-btn[data-aria-expanded=true] {
465
+ transform: rotate(180deg);
466
+ position: absolute;
467
+ top: 10px;
468
+ left: 0;
469
+ right: 0;
470
+ width: 20px;
471
+ height: 20px;
472
+ font-size: 18px;
473
+ margin: auto;
474
+ border: 1px solid white;
475
+ border-radius: 2px;
476
+ display: inline-flex;
477
+ align-items: center;
478
+ opacity: 0;
479
+ background-color: rgba(0, 0, 0, 0.5);
480
+ }
481
+ .sg-preview-btn[data-aria-expanded=true]:hover {
482
+ background-color: rgba(0, 0, 0, 0.7);
483
+ opacity: 1 !important;
484
+ }
485
+ .sg-preview-canvas {
486
+ width: 200px;
487
+ height: 200px;
488
+ }
489
+ .sg-preview-canvas-can {
490
+ background-color: #2b2b2b;
491
+ }
492
+ .sg-node:hover .sg-preview-btn[data-aria-expanded=true] {
493
+ opacity: 0.5;
494
+ }
495
+ .sg-select {
496
+ margin: 5px;
497
+ }
498
+ .sg-inspector-setting {
499
+ display: flex;
500
+ font-size: 16px;
501
+ align-items: center;
502
+ margin: 2px 10px;
503
+ }
504
+ .sg-inspector-setting-select {
505
+ margin: 0;
506
+ }
507
+ .sg-inspector-setting-label {
508
+ flex-grow: 0;
509
+ flex-shrink: 0;
510
+ width: 120px;
511
+ }
512
+ .sg-inspector-setting-body,
513
+ .sg-inspector-setting-select {
514
+ width: 100%;
515
+ }
516
+ .sg-slider-range {
517
+ -webkit-appearance: none;
518
+ width: 100%;
519
+ height: 2px;
520
+ background: #5e5e5e;
521
+ outline: none;
522
+ margin: 12px 10px;
523
+ }
524
+ .sg-slider-range:hover::-moz-range-thumb {
525
+ background: #eaeaea;
526
+ }
527
+ .sg-slider-range:hover::-webkit-slider-thumb {
528
+ background: #eaeaea;
529
+ }
530
+ .sg-slider-range::-webkit-slider-thumb {
531
+ -webkit-appearance: none;
532
+ appearance: none;
533
+ width: 13px;
534
+ height: 13px;
535
+ background: #999999;
536
+ cursor: pointer;
537
+ border-radius: 100%;
538
+ }
539
+ .sg-slider-range::-moz-range-thumb {
540
+ width: 13px;
541
+ height: 13px;
542
+ background: #999999;
543
+ cursor: pointer;
544
+ border-radius: 100%;
545
+ }
546
+ .sg-slider-number {
547
+ width: 40px;
548
+ }
549
+ .sg-socket {
550
+ border: 1px solid white;
551
+ border-radius: 100%;
552
+ width: 10px;
553
+ height: 10px;
554
+ z-index: 2;
555
+ box-sizing: border-box;
556
+ position: relative;
557
+ background-color: rgba(0, 0, 0, 0.7);
558
+ }
559
+ .sg-socket-can {
560
+ cursor: pointer;
561
+ padding: 8px 6px;
562
+ position: relative;
563
+ }
564
+ .sg-socket-can[data-type=default] {
565
+ pointer-events: none;
566
+ }
567
+ .sg-socket-can[data-type=output]::before,
568
+ .sg-socket-can[data-type=input]::before {
569
+ content: " ";
570
+ position: absolute;
571
+ width: 100%;
572
+ height: 100%;
573
+ top: 50%;
574
+ left: 50%;
575
+ z-index: 1;
576
+ }
577
+ .sg-socket-can[data-type=output]::before {
578
+ transform: translate(0%, -50%) scale(2, 1.3);
579
+ }
580
+ .sg-socket-can[data-type=input]::before {
581
+ transform: translate(-100%, -50%) scale(2, 1.3);
582
+ }
583
+ .sg-socket-can[data-vertical]::before {
584
+ transform: translate(-50%, -50%) scale(1.2);
585
+ }
586
+ .sg-socket-can:hover .sg-socket-inner,
587
+ .sg-socket[data-connected=true] .sg-socket-inner {
588
+ opacity: 1;
589
+ }
590
+ .sg-socket[data-type=default] {
591
+ cursor: unset;
592
+ border-color: rgba(0, 0, 0, 0.822) !important;
593
+ }
594
+ .sg-socket[data-type=default] .sg-socket-inner {
595
+ opacity: 1 !important;
596
+ }
597
+ .sg-socket-inner {
598
+ width: 5px;
599
+ height: 5px;
600
+ border-radius: 100%;
601
+ position: absolute;
602
+ top: 0;
603
+ left: 0;
604
+ right: 0;
605
+ bottom: 0;
606
+ margin: auto;
607
+ opacity: 0;
608
+ }
609
+ .sg-tab-head {
610
+ display: flex;
611
+ align-items: center;
612
+ flex-wrap: nowrap;
613
+ overflow: auto;
614
+ }
615
+ .sg-tab-title {
616
+ padding: 2px 6px;
617
+ position: relative;
618
+ z-index: 0;
619
+ background-color: rgba(0, 0, 0, 0.2);
620
+ }
621
+ .sg-tab-title:hover {
622
+ background-color: unset;
623
+ }
624
+ .sg-tab-title[data-aria-selected=true] {
625
+ background-color: unset;
626
+ }
627
+ .sg-tab-title[data-aria-selected=true]::before {
628
+ content: " ";
629
+ display: block;
630
+ position: absolute;
631
+ top: 0;
632
+ left: 0;
633
+ right: 0;
634
+ border-top: 2px solid #4979b6;
635
+ }
636
+ .sg-title {
637
+ flex: auto;
638
+ text-align: left;
639
+ padding: 8px 12px;
640
+ }
641
+ .sg-title-can {
642
+ display: flex;
643
+ position: relative;
644
+ align-items: center;
645
+ background-color: rgba(255, 255, 255, 0.2);
646
+ }
647
+ .sg-title-can .sg-btn-fold {
648
+ margin-right: 12px;
649
+ }
650
+ .sg-btn-fold {
651
+ width: 20px;
652
+ height: 20px;
653
+ display: inline-flex;
654
+ justify-content: center;
655
+ align-items: center;
656
+ opacity: 0;
657
+ cursor: pointer;
658
+ transform: rotate(90deg);
659
+ }
660
+ .sg-btn-fold:hover {
661
+ background-color: rgba(0, 0, 0, 0.2);
662
+ }
663
+ .sg-node:hover .sg-btn-fold {
664
+ opacity: 1 !important;
665
+ }
666
+ .sg-btn-fold[data-aria-disabled=true] {
667
+ background-color: transparent !important;
668
+ color: gray;
669
+ }
670
+ .sg-btn-fold[data-aria-expanded=true] {
671
+ transform: rotate(0deg);
672
+ }
673
+ .sg-tree-item {
674
+ display: flex;
675
+ user-select: none;
676
+ }
677
+ .sg-tree-item-name {
678
+ color: #bababa;
679
+ margin-right: 5px;
680
+ text-align: left;
681
+ }
682
+ .sg-tree-item-name span[data-highlighted=true] {
683
+ color: #eec670;
684
+ }
685
+ .sg-tree-item-name:nth-child(1):hover {
686
+ color: white;
687
+ }
688
+ .sg-tree-item-head {
689
+ flex: none;
690
+ }
691
+ .sg-tree-item-body {
692
+ flex: 1;
693
+ }
694
+ .sg-tree-item-btn-expand {
695
+ color: #686868;
696
+ margin-right: 5px;
697
+ opacity: 0;
698
+ display: inline-block;
699
+ }
700
+ .sg-tree-item-btn-expand[data-aria-expanded=true] {
701
+ transform: rotate(90deg);
702
+ }
703
+ .sg-tree-item-btn-expand[data-visible=true] {
704
+ cursor: pointer;
705
+ opacity: 1;
706
+ }
707
+ .sg-tree-item-btn-expand:hover {
708
+ color: white;
709
+ }
710
+ .sg-channelmixer-channels {
711
+ display: flex;
712
+ justify-content: space-between;
713
+ }
714
+ .sg-channelmixer-btn {
715
+ flex: 1;
716
+ margin: 10px 2px;
717
+ border-radius: 5px;
718
+ background-color: #676767;
719
+ position: relative;
720
+ text-align: center;
721
+ }
722
+ .sg-channelmixer-btn::after {
723
+ content: " ";
724
+ display: block;
725
+ border-radius: 5px;
726
+ width: 100%;
727
+ height: 10px;
728
+ background-color: #242424;
729
+ position: absolute;
730
+ z-index: -1;
731
+ left: 0;
732
+ bottom: -10px;
733
+ }
734
+ .sg-channelmixer-btn[data-aria-selected=true] {
735
+ background-color: #85aef4;
736
+ }
737
+ .sg-custom-fn {
738
+ position: absolute;
739
+ left: 100%;
740
+ }
741
+ .sg-custom-fn-can {
742
+ position: absolute;
743
+ top: 0;
744
+ left: 0;
745
+ z-index: 2;
746
+ transform-origin: top left;
747
+ background-color: #2b2b2b;
748
+ }
749
+ .sg-custom-fn-btn {
750
+ user-select: none;
751
+ cursor: pointer;
752
+ }
753
+ .sg-custom-fn-btn-toogle {
754
+ width: 35px;
755
+ height: 35px;
756
+ font-size: 25px;
757
+ text-align: center;
758
+ line-height: 35px;
759
+ position: absolute;
760
+ }
761
+ .sg-custom-fn-btn-help {
762
+ margin: 0 5px;
763
+ }
764
+ .sg-custom-fn-head {
765
+ height: 35px;
766
+ display: flex;
767
+ align-items: center;
768
+ padding-left: 35px;
769
+ }
770
+ .sg-custom-fn-name {
771
+ margin: 0 5px;
772
+ }
773
+ .sg-custom-fn-editor {
774
+ text-align: left;
775
+ min-height: 300px;
776
+ height: 300px;
777
+ width: 600px;
778
+ position: relative;
779
+ }
780
+ .sg-custom-fn-editor .cm-tooltip {
781
+ position: absolute !important;
782
+ top: unset !important;
783
+ left: 0 !important;
784
+ bottom: 0 !important;
785
+ transform: translateY(100%);
786
+ }
787
+ .sg-custom-fn-textarea-fallback {
788
+ width: 100%;
789
+ height: 300px !important;
790
+ background: #1e1e1e;
791
+ color: #ccc;
792
+ border: 1px solid #333;
793
+ padding: 8px;
794
+ font-family: monospace;
795
+ font-size: 13px;
796
+ resize: vertical;
797
+ }
798
+ .sg-default-value-can {
799
+ background-color: rgba(255, 255, 255, 0.1);
800
+ transform: translateX(-10px);
801
+ display: flex;
802
+ flex-wrap: nowrap;
803
+ border-radius: 2px;
804
+ align-items: center;
805
+ border: 1px solid #202020;
806
+ cursor: default;
807
+ }
808
+ .sg-default-value-line {
809
+ width: 24px;
810
+ height: 4px;
811
+ position: absolute;
812
+ top: 0;
813
+ bottom: 0;
814
+ right: 0;
815
+ margin: auto;
816
+ transform: translateX(calc(100% - 7px));
817
+ z-index: -1;
818
+ pointer-events: none;
819
+ }
820
+ .sg-blackboard {
821
+ background-color: #2b2b2b;
822
+ border: 1px solid #191919;
823
+ border-radius: 5px;
824
+ user-select: none;
825
+ overflow: hidden;
826
+ }
827
+ .sg-blackboard-head {
828
+ background-color: #393939;
829
+ padding: 5px 10px;
830
+ }
831
+ .sg-blackboard-body {
832
+ min-height: 250px;
833
+ max-height: 500px;
834
+ min-width: 220px;
835
+ overflow: auto;
836
+ }
837
+ .sg-blackboard-title {
838
+ font-size: 20px;
839
+ }
840
+ .sg-blackboard-h2 {
841
+ display: flex;
842
+ align-items: center;
843
+ }
844
+ .sg-blackboard-subtitle {
845
+ color: #5f5f5f;
846
+ flex: 1;
847
+ margin-right: 10px;
848
+ }
849
+ .sg-blackboard-btn-add {
850
+ width: 30px;
851
+ height: 30px;
852
+ border: 1px solid transparent;
853
+ text-align: center;
854
+ line-height: 27px;
855
+ border-radius: 5px;
856
+ font-size: 20px;
857
+ cursor: pointer;
858
+ }
859
+ .sg-blackboard-btn-add:hover {
860
+ border-color: #191919;
861
+ background-color: #676767;
862
+ }
863
+ .sg-parameter-item {
864
+ border-radius: 15px;
865
+ width: fit-content;
866
+ flex: none;
867
+ display: flex;
868
+ align-items: center;
869
+ padding: 0px 10px;
870
+ background-color: #3e3e3f;
871
+ cursor: grab;
872
+ }
873
+ .sg-parameter-item:hover {
874
+ outline: 1px solid #67bff9;
875
+ }
876
+ .sg-parameter-item-head {
877
+ display: flex;
878
+ align-items: center;
879
+ padding: 5px;
880
+ box-sizing: border-box;
881
+ }
882
+ .sg-parameter-item-exposed {
883
+ width: 5px;
884
+ height: 5px;
885
+ background-color: #acea78;
886
+ margin-right: 5px;
887
+ border-radius: 5px;
888
+ }
889
+ .sg-parameter-item-type {
890
+ flex: 1;
891
+ text-align: right;
892
+ color: #7c7c7c;
893
+ margin: 0 10px;
894
+ }
895
+ .sg-parameter-item-btn-expand {
896
+ flex: none;
897
+ font-size: 13px;
898
+ padding: 3px;
899
+ cursor: pointer;
900
+ color: #7c7c7c;
901
+ margin: 0 3px;
902
+ }
903
+ .sg-parameter-item-btn-expand:hover {
904
+ color: white;
905
+ }
906
+ .sg-parameter-item-btn-expand[data-aria-expanded=true] {
907
+ transform: rotate(90deg);
908
+ }
909
+ .sg-parameter-item-input {
910
+ min-width: 0px;
911
+ width: 150px;
912
+ }
913
+ .sg-parameter-item-body {
914
+ padding: 5px;
915
+ margin-left: 20px;
916
+ }
917
+ .sg-parameter-item-setting {
918
+ display: flex;
919
+ color: #7c7c7c;
920
+ }
921
+ .sg-parameter-item-setting-label {
922
+ width: 80px;
923
+ }
924
+ .sg-inspector-title {
925
+ padding: 5px 5px 10px 5px;
926
+ font-size: 17px;
927
+ }
928
+ .sg-inspector-body {
929
+ max-height: 300px !important;
930
+ }
931
+ .sg-main-preview {
932
+ background-color: #2b2b2b;
933
+ border: 1px solid #191919;
934
+ user-select: none;
935
+ border-radius: 5px;
936
+ overflow: hidden;
937
+ }
938
+ .sg-main-preview-title {
939
+ background-color: rgba(255, 255, 255, 0.12);
940
+ color: #b4b4b4;
941
+ padding: 5px 13px;
942
+ }
943
+ .sg-main-preview-canvas {
944
+ width: 200px;
945
+ height: 200px;
946
+ display: block;
947
+ }
948
+ .sg-main-preview-canvas-can {
949
+ background-color: #2b2b2b;
950
+ }
951
+ .sg-popup-node-add {
952
+ background-color: #272727;
953
+ border: 1px solid #060606;
954
+ border-radius: 2px;
955
+ }
956
+ .sg-popup-node-add-search {
957
+ display: flex;
958
+ align-items: center;
959
+ margin: 0 5px 5px 5px;
960
+ background-color: #454545;
961
+ border-radius: 5px;
962
+ }
963
+ .sg-popup-node-add-search::before {
964
+ content: "\1f50d";
965
+ margin: 0 3px 0 5px;
966
+ flex: none;
967
+ }
968
+ .sg-popup-node-add-search-input {
969
+ border: none;
970
+ display: block;
971
+ min-width: 0px;
972
+ flex: 1;
973
+ background-color: unset;
974
+ }
975
+ .sg-popup-node-add-search-input:focus {
976
+ outline: none;
977
+ }
978
+ .sg-popup-node-add-tree {
979
+ padding-left: 10px;
980
+ background-color: #383838;
981
+ overflow-y: auto;
982
+ height: 220px;
983
+ min-width: 210px;
984
+ }
985
+ .sg-popup-title {
986
+ color: white;
987
+ }