@vitessce/neuroglancer 3.5.8

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,2624 @@
1
+ import { makeStyles } from '@material-ui/core';
2
+ // Reference: https://github.com/vitessce/vitessce/blob/tkakar/cat-1107-create-neuroglancer-view/sites/demo/neuro-styles.css
3
+ function prependGlobalPrefix(jssObject) {
4
+ return Object.entries(jssObject).reduce((accumulator, [key, value]) => {
5
+ accumulator[`@global ${key}`] = value;
6
+ return accumulator;
7
+ }, {});
8
+ }
9
+ // We define a subset of styles as a string,
10
+ // and render with <style></style>
11
+ // since Neuroglancer renders them outside of the
12
+ // .neuroglancer-container DOM element.
13
+ // Instead, these elements are prepended/appended
14
+ // directly to the `document` by neuroglancer,
15
+ // so we cannot scope them as children of the
16
+ // .neuroglancer-container class.
17
+ export const globalNeuroglancerCss = `
18
+
19
+ .neuroglancer-position-widget,
20
+ .neuroglancer-viewer-top-row,
21
+ .neuroglancer-layer-panel,
22
+ .neuroglancer-side-panel-column,
23
+ .neuroglancer-data-panel-layout-controls button{
24
+ display: none !important;
25
+ }
26
+
27
+ .neuroglancer-segment-list-header-label {
28
+ display: none !important;
29
+ }
30
+ .overlay {
31
+ height:100%;
32
+ width:100%;
33
+ position:fixed;
34
+ z-index:99;
35
+ top:0;
36
+ left:0;
37
+ background-color:#000c;
38
+ }
39
+ .overlay-content {
40
+ position:absolute;
41
+ top:50%;
42
+ left:50%;
43
+ transform:translate(-50%,-50%);
44
+ background-color:#fff;
45
+ z-index:100;
46
+ color:#000;
47
+ padding:1em;
48
+ }
49
+ .neuroglancer-state-editor {
50
+ width: 80%
51
+ }
52
+ .close-button {
53
+ position: absolute;
54
+ right: 15px
55
+ }
56
+
57
+ .CodeMirror {
58
+ font-family: monospace;
59
+ height: 300px;
60
+ color: #000;
61
+ direction: ltr
62
+ }
63
+
64
+ .CodeMirror-lines {
65
+ padding: 4px 0
66
+ }
67
+
68
+ .CodeMirror pre.CodeMirror-line,
69
+ .CodeMirror pre.CodeMirror-line-like {
70
+ padding: 0 4px
71
+ }
72
+
73
+ .CodeMirror-scrollbar-filler,
74
+ .CodeMirror-gutter-filler {
75
+ background-color: #fff
76
+ }
77
+
78
+ .CodeMirror-gutters {
79
+ border-right: 1px solid #ddd;
80
+ background-color: #f7f7f7;
81
+ white-space: nowrap
82
+ }
83
+
84
+ .CodeMirror-linenumber {
85
+ padding: 0 3px 0 5px;
86
+ min-width: 20px;
87
+ text-align: right;
88
+ color: #999;
89
+ white-space: nowrap
90
+ }
91
+
92
+ .CodeMirror-guttermarker {
93
+ color: #000
94
+ }
95
+
96
+ .CodeMirror-guttermarker-subtle {
97
+ color: #999
98
+ }
99
+
100
+ .CodeMirror-cursor {
101
+ border-left: 1px solid black;
102
+ border-right: none;
103
+ width: 0
104
+ }
105
+
106
+ .CodeMirror div.CodeMirror-secondarycursor {
107
+ border-left: 1px solid silver
108
+ }
109
+
110
+ .cm-fat-cursor .CodeMirror-cursor {
111
+ width: auto;
112
+ border: 0 !important;
113
+ background: #7e7
114
+ }
115
+
116
+ .cm-fat-cursor div.CodeMirror-cursors {
117
+ z-index: 1
118
+ }
119
+
120
+ .cm-fat-cursor-mark {
121
+ background-color: #14ff1480;
122
+ -webkit-animation: blink 1.06s steps(1) infinite;
123
+ -moz-animation: blink 1.06s steps(1) infinite;
124
+ animation: blink 1.06s steps(1) infinite
125
+ }
126
+
127
+ .cm-animate-fat-cursor {
128
+ width: auto;
129
+ border: 0;
130
+ -webkit-animation: blink 1.06s steps(1) infinite;
131
+ -moz-animation: blink 1.06s steps(1) infinite;
132
+ animation: blink 1.06s steps(1) infinite;
133
+ background-color: #7e7
134
+ }
135
+
136
+ @-moz-keyframes blink {
137
+ 50% {
138
+ background-color: transparent
139
+ }
140
+ }
141
+
142
+ @-webkit-keyframes blink {
143
+ 50% {
144
+ background-color: transparent
145
+ }
146
+ }
147
+
148
+ @keyframes blink {
149
+ 50% {
150
+ background-color: transparent
151
+ }
152
+ }
153
+
154
+ .cm-tab {
155
+ display: inline-block;
156
+ text-decoration: inherit
157
+ }
158
+
159
+ .CodeMirror-rulers {
160
+ position: absolute;
161
+ left: 0;
162
+ right: 0;
163
+ top: -50px;
164
+ bottom: 0;
165
+ overflow: hidden
166
+ }
167
+
168
+ .CodeMirror-ruler {
169
+ border-left: 1px solid #ccc;
170
+ top: 0;
171
+ bottom: 0;
172
+ position: absolute
173
+ }
174
+
175
+ .cm-s-default .cm-header {
176
+ color: #00f
177
+ }
178
+
179
+ .cm-s-default .cm-quote {
180
+ color: #090
181
+ }
182
+
183
+ .cm-negative {
184
+ color: #d44
185
+ }
186
+
187
+ .cm-positive {
188
+ color: #292
189
+ }
190
+
191
+ .cm-header,
192
+ .cm-strong {
193
+ font-weight: bold
194
+ }
195
+
196
+ .cm-em {
197
+ font-style: italic
198
+ }
199
+
200
+ .cm-link {
201
+ text-decoration: underline
202
+ }
203
+
204
+ .cm-strikethrough {
205
+ text-decoration: line-through
206
+ }
207
+
208
+ .cm-s-default .cm-keyword {
209
+ color: #708
210
+ }
211
+
212
+ .cm-s-default .cm-atom {
213
+ color: #219
214
+ }
215
+
216
+ .cm-s-default .cm-number {
217
+ color: #164
218
+ }
219
+
220
+ .cm-s-default .cm-def {
221
+ color: #00f
222
+ }
223
+
224
+ .cm-s-default .cm-variable-2 {
225
+ color: #05a
226
+ }
227
+
228
+ .cm-s-default .cm-variable-3,
229
+ .cm-s-default .cm-type {
230
+ color: #085
231
+ }
232
+
233
+ .cm-s-default .cm-comment {
234
+ color: #a50
235
+ }
236
+
237
+ .cm-s-default .cm-string {
238
+ color: #a11
239
+ }
240
+
241
+ .cm-s-default .cm-string-2 {
242
+ color: #f50
243
+ }
244
+
245
+ .cm-s-default .cm-meta {
246
+ color: #555
247
+ }
248
+
249
+ .cm-s-default .cm-qualifier {
250
+ color: #555
251
+ }
252
+
253
+ .cm-s-default .cm-builtin {
254
+ color: #30a
255
+ }
256
+
257
+ .cm-s-default .cm-bracket {
258
+ color: #997
259
+ }
260
+
261
+ .cm-s-default .cm-tag {
262
+ color: #170
263
+ }
264
+
265
+ .cm-s-default .cm-attribute {
266
+ color: #00c
267
+ }
268
+
269
+ .cm-s-default .cm-hr {
270
+ color: #999
271
+ }
272
+
273
+ .cm-s-default .cm-link {
274
+ color: #00c
275
+ }
276
+
277
+ .cm-s-default .cm-error {
278
+ color: red
279
+ }
280
+
281
+ .cm-invalidchar {
282
+ color: red
283
+ }
284
+
285
+ .CodeMirror-composing {
286
+ border-bottom: 2px solid
287
+ }
288
+
289
+ div.CodeMirror span.CodeMirror-matchingbracket {
290
+ color: #0b0
291
+ }
292
+
293
+ div.CodeMirror span.CodeMirror-nonmatchingbracket {
294
+ color: #a22
295
+ }
296
+
297
+ .CodeMirror-matchingtag {
298
+ background: rgba(255, 150, 0, .3)
299
+ }
300
+
301
+ .CodeMirror-activeline-background {
302
+ background: #e8f2ff
303
+ }
304
+
305
+ .CodeMirror {
306
+ position: relative;
307
+ overflow: hidden;
308
+ background: white
309
+ }
310
+
311
+ .CodeMirror-scroll {
312
+ overflow: scroll !important;
313
+ margin-bottom: -50px;
314
+ margin-right: -50px;
315
+ padding-bottom: 50px;
316
+ height: 100%;
317
+ outline: none;
318
+ position: relative
319
+ }
320
+
321
+ .CodeMirror-sizer {
322
+ position: relative;
323
+ border-right: 50px solid transparent
324
+ }
325
+
326
+ .CodeMirror-vscrollbar,
327
+ .CodeMirror-hscrollbar,
328
+ .CodeMirror-scrollbar-filler,
329
+ .CodeMirror-gutter-filler {
330
+ position: absolute;
331
+ z-index: 6;
332
+ display: none;
333
+ outline: none
334
+ }
335
+
336
+ .CodeMirror-vscrollbar {
337
+ right: 0;
338
+ top: 0;
339
+ overflow-x: hidden;
340
+ overflow-y: scroll
341
+ }
342
+
343
+ .CodeMirror-hscrollbar {
344
+ bottom: 0;
345
+ left: 0;
346
+ overflow-y: hidden;
347
+ overflow-x: scroll
348
+ }
349
+
350
+ .CodeMirror-scrollbar-filler {
351
+ right: 0;
352
+ bottom: 0
353
+ }
354
+
355
+ .CodeMirror-gutter-filler {
356
+ left: 0;
357
+ bottom: 0
358
+ }
359
+
360
+ .CodeMirror-gutters {
361
+ position: absolute;
362
+ left: 0;
363
+ top: 0;
364
+ min-height: 100%;
365
+ z-index: 3
366
+ }
367
+
368
+ .CodeMirror-gutter {
369
+ white-space: normal;
370
+ height: 100%;
371
+ display: inline-block;
372
+ vertical-align: top;
373
+ margin-bottom: -50px
374
+ }
375
+
376
+ .CodeMirror-gutter-wrapper {
377
+ position: absolute;
378
+ z-index: 4;
379
+ background: none !important;
380
+ border: none !important
381
+ }
382
+
383
+ .CodeMirror-gutter-background {
384
+ position: absolute;
385
+ top: 0;
386
+ bottom: 0;
387
+ z-index: 4
388
+ }
389
+
390
+ .CodeMirror-gutter-elt {
391
+ position: absolute;
392
+ cursor: default;
393
+ z-index: 4
394
+ }
395
+
396
+ .CodeMirror-gutter-wrapper ::selection {
397
+ background-color: transparent
398
+ }
399
+
400
+ .CodeMirror-gutter-wrapper ::-moz-selection {
401
+ background-color: transparent
402
+ }
403
+
404
+ .CodeMirror-lines {
405
+ cursor: text;
406
+ min-height: 1px
407
+ }
408
+
409
+ .CodeMirror pre.CodeMirror-line,
410
+ .CodeMirror pre.CodeMirror-line-like {
411
+ -moz-border-radius: 0;
412
+ -webkit-border-radius: 0;
413
+ border-radius: 0;
414
+ border-width: 0;
415
+ background: transparent;
416
+ font-family: inherit;
417
+ font-size: inherit;
418
+ margin: 0;
419
+ white-space: pre;
420
+ word-wrap: normal;
421
+ line-height: inherit;
422
+ color: inherit;
423
+ z-index: 2;
424
+ position: relative;
425
+ overflow: visible;
426
+ -webkit-tap-highlight-color: transparent;
427
+ -webkit-font-variant-ligatures: contextual;
428
+ font-variant-ligatures: contextual
429
+ }
430
+
431
+ .CodeMirror-wrap pre.CodeMirror-line,
432
+ .CodeMirror-wrap pre.CodeMirror-line-like {
433
+ word-wrap: break-word;
434
+ white-space: pre-wrap;
435
+ word-break: normal
436
+ }
437
+
438
+ .CodeMirror-linebackground {
439
+ position: absolute;
440
+ left: 0;
441
+ right: 0;
442
+ top: 0;
443
+ bottom: 0;
444
+ z-index: 0
445
+ }
446
+
447
+ .CodeMirror-linewidget {
448
+ position: relative;
449
+ z-index: 2;
450
+ padding: .1px
451
+ }
452
+
453
+ .CodeMirror-rtl pre {
454
+ direction: rtl
455
+ }
456
+
457
+ .CodeMirror-code {
458
+ outline: none
459
+ }
460
+
461
+ .CodeMirror-scroll,
462
+ .CodeMirror-sizer,
463
+ .CodeMirror-gutter,
464
+ .CodeMirror-gutters,
465
+ .CodeMirror-linenumber {
466
+ -moz-box-sizing: content-box;
467
+ box-sizing: content-box
468
+ }
469
+
470
+ .CodeMirror-measure {
471
+ position: absolute;
472
+ width: 100%;
473
+ height: 0;
474
+ overflow: hidden;
475
+ visibility: hidden
476
+ }
477
+
478
+ .CodeMirror-cursor {
479
+ position: absolute;
480
+ pointer-events: none
481
+ }
482
+
483
+ .CodeMirror-measure pre {
484
+ position: static
485
+ }
486
+
487
+ div.CodeMirror-cursors {
488
+ visibility: hidden;
489
+ position: relative;
490
+ z-index: 3
491
+ }
492
+
493
+ div.CodeMirror-dragcursors {
494
+ visibility: visible
495
+ }
496
+
497
+ .CodeMirror-focused div.CodeMirror-cursors {
498
+ visibility: visible
499
+ }
500
+
501
+ .CodeMirror-selected {
502
+ background: #d9d9d9
503
+ }
504
+
505
+ .CodeMirror-focused .CodeMirror-selected {
506
+ background: #d7d4f0
507
+ }
508
+
509
+ .CodeMirror-crosshair {
510
+ cursor: crosshair
511
+ }
512
+
513
+ .CodeMirror-line::selection,
514
+ .CodeMirror-line>span::selection,
515
+ .CodeMirror-line>span>span::selection {
516
+ background: #d7d4f0
517
+ }
518
+
519
+ .CodeMirror-line::-moz-selection,
520
+ .CodeMirror-line>span::-moz-selection,
521
+ .CodeMirror-line>span>span::-moz-selection {
522
+ background: #d7d4f0
523
+ }
524
+
525
+ .cm-searching {
526
+ background-color: #ffa;
527
+ background-color: #ff06
528
+ }
529
+
530
+ .cm-force-border {
531
+ padding-right: .1px
532
+ }
533
+
534
+ @media print {
535
+ .CodeMirror div.CodeMirror-cursors {
536
+ visibility: hidden
537
+ }
538
+ }
539
+
540
+ .cm-tab-wrap-hack:after {
541
+ content: ""
542
+ }
543
+
544
+ span.CodeMirror-selectedtext {
545
+ background: none
546
+ }
547
+
548
+ .CodeMirror-foldmarker {
549
+ color: #00f;
550
+ text-shadow: #b9f 1px 1px 2px, #b9f -1px -1px 2px, #b9f 1px -1px 2px, #b9f -1px 1px 2px;
551
+ font-family: arial;
552
+ line-height: .3;
553
+ cursor: pointer
554
+ }
555
+
556
+ .CodeMirror-foldgutter {
557
+ width: .7em
558
+ }
559
+
560
+ .CodeMirror-foldgutter-open,
561
+ .CodeMirror-foldgutter-folded {
562
+ cursor: pointer
563
+ }
564
+
565
+ .CodeMirror-foldgutter-open:after {
566
+ content: "\\25be"
567
+ }
568
+
569
+ .CodeMirror-foldgutter-folded:after {
570
+ content: "\\25b8"
571
+ }
572
+
573
+ .CodeMirror-lint-markers {
574
+ width: 16px
575
+ }
576
+
577
+ .CodeMirror-lint-tooltip {
578
+ background-color: #ffd;
579
+ border: 1px solid black;
580
+ border-radius: 4px;
581
+ color: #000;
582
+ font-family: monospace;
583
+ font-size: 10pt;
584
+ overflow: hidden;
585
+ padding: 2px 5px;
586
+ position: fixed;
587
+ white-space: pre;
588
+ white-space: pre-wrap;
589
+ z-index: 100;
590
+ max-width: 600px;
591
+ opacity: 0;
592
+ transition: opacity .4s;
593
+ -moz-transition: opacity .4s;
594
+ -webkit-transition: opacity .4s;
595
+ -o-transition: opacity .4s;
596
+ -ms-transition: opacity .4s
597
+ }
598
+
599
+ .CodeMirror-lint-mark {
600
+ background-position: left bottom;
601
+ background-repeat: repeat-x
602
+ }
603
+
604
+ .CodeMirror-lint-mark-warning {
605
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII=)
606
+ }
607
+
608
+ .CodeMirror-lint-mark-error {
609
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg==)
610
+ }
611
+
612
+ .CodeMirror-lint-marker {
613
+ background-position: center center;
614
+ background-repeat: no-repeat;
615
+ cursor: pointer;
616
+ display: inline-block;
617
+ height: 16px;
618
+ width: 16px;
619
+ vertical-align: middle;
620
+ position: relative
621
+ }
622
+
623
+ .CodeMirror-lint-message {
624
+ padding-left: 18px;
625
+ background-position: top left;
626
+ background-repeat: no-repeat
627
+ }
628
+
629
+ .CodeMirror-lint-marker-warning,
630
+ .CodeMirror-lint-message-warning {
631
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII=)
632
+ }
633
+
634
+ .CodeMirror-lint-marker-error,
635
+ .CodeMirror-lint-message-error {
636
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII=)
637
+ }
638
+
639
+ .CodeMirror-lint-marker-multiple {
640
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC);
641
+ background-repeat: no-repeat;
642
+ background-position: right bottom;
643
+ width: 100%;
644
+ height: 100%
645
+ }
646
+ `;
647
+ export const useStyles = makeStyles(() => ({
648
+ neuroglancerWrapper: {
649
+ position: 'relative',
650
+ height: '100%',
651
+ ...prependGlobalPrefix({
652
+ '.neuroglancer-container': {
653
+ position: 'relative',
654
+ height: '100%',
655
+ },
656
+ // Converted neuro-styles.css using transform.tools
657
+ '#statusContainer': {
658
+ position: 'absolute',
659
+ bottom: '0px',
660
+ zIndex: 100,
661
+ backgroundColor: 'gray',
662
+ color: '#fff',
663
+ margin: '0',
664
+ padding: '0',
665
+ font: '10pt sans-serif',
666
+ },
667
+ '#statusContainer li': {
668
+ width: '100vw',
669
+ maxHeight: '25vh',
670
+ overflowY: 'auto',
671
+ },
672
+ '.neuroglancer-status-header': {
673
+ display: 'inline-block',
674
+ font: '10pt sans-serif',
675
+ fontWeight: 'bold',
676
+ backgroundColor: '#333',
677
+ padding: '2px',
678
+ },
679
+ '.neuroglancer-selection-details-body': {
680
+ height: '0px',
681
+ flex: 1,
682
+ overflowY: 'auto',
683
+ flexBasis: '0px',
684
+ minHeight: '0px',
685
+ },
686
+ '.neuroglancer-selection-details-position': {
687
+ display: 'flex',
688
+ flexDirection: 'row',
689
+ alignItems: 'center',
690
+ justifyItems: 'left',
691
+ fontFamily: 'monospace',
692
+ fontSize: 'medium',
693
+ },
694
+ '.neuroglancer-selection-details-position-dimension+.neuroglancer-selection-details-position-dimension': {
695
+ marginLeft: '8px',
696
+ },
697
+ '.neuroglancer-selection-details-position-dimension-name': { color: '#ff6' },
698
+ '.neuroglancer-selection-details-position-dimension-coordinate': {
699
+ marginLeft: '5px',
700
+ userSelect: 'text',
701
+ },
702
+ '.neuroglancer-selection-details-layer': {
703
+ marginTop: '4px',
704
+ marginBottom: '4px',
705
+ border: '1px solid #222',
706
+ },
707
+ '.neuroglancer-selection-details-layer-title': {
708
+ cursor: 'pointer',
709
+ backgroundColor: '#222',
710
+ fontFamily: 'sans-serif',
711
+ fontSize: '10pt',
712
+ },
713
+ '.neuroglancer-selection-details-layer-title:hover': {
714
+ backgroundColor: '#333',
715
+ },
716
+ '.neuroglancer-selection-details-layer-body': {
717
+ padding: '2px',
718
+ display: 'flex',
719
+ flexDirection: 'column',
720
+ },
721
+ '.neuroglancer-side-panel-column': {
722
+ display: 'flex',
723
+ flexDirection: 'column',
724
+ minWidth: '0px',
725
+ },
726
+ '.neuroglancer-side-panel-row': {
727
+ display: 'flex',
728
+ flexDirection: 'row',
729
+ minHeight: '0px',
730
+ },
731
+ '.neuroglancer-side-panel': {
732
+ display: 'flex',
733
+ flexDirection: 'column',
734
+ minWidth: '0px',
735
+ overflow: 'hidden',
736
+ },
737
+ '.neuroglancer-side-panel-titlebar': {
738
+ display: 'flex',
739
+ flexDirection: 'row',
740
+ alignItems: 'center',
741
+ fontFamily: 'sans-serif',
742
+ fontSize: '10pt',
743
+ backgroundColor: '#03c',
744
+ padding: '2px',
745
+ color: '#fff',
746
+ },
747
+ '.neuroglancer-side-panel-title': {
748
+ flex: 1,
749
+ textOverflow: 'ellipsis',
750
+ overflow: 'hidden',
751
+ whiteSpace: 'nowrap',
752
+ },
753
+ '.neuroglancer-side-panel-drop-zone': { zIndex: 1000, display: 'none' },
754
+ '[data-neuroglancer-side-panel-drag] .neuroglancer-side-panel-drop-zone': {
755
+ display: 'block',
756
+ },
757
+ '.neuroglancer-resize-gutter-vertical': {
758
+ height: '1px',
759
+ backgroundColor: '#333',
760
+ backgroundClip: 'content-box',
761
+ paddingTop: '2px',
762
+ paddingBottom: '2px',
763
+ cursor: 'row-resize',
764
+ },
765
+ '.neuroglancer-resize-gutter-horizontal': {
766
+ width: '1px',
767
+ backgroundColor: '#333',
768
+ backgroundClip: 'content-box',
769
+ paddingRight: '2px',
770
+ paddingLeft: '2px',
771
+ cursor: 'col-resize',
772
+ },
773
+ '.neuroglancer-drag-status': {
774
+ position: 'absolute',
775
+ top: '0px',
776
+ zIndex: 1000,
777
+ backgroundColor: '#ff0',
778
+ color: '#000',
779
+ font: '10pt sans-serif',
780
+ padding: '2px',
781
+ },
782
+ '.neuroglancer-icon': {
783
+ display: 'inline-flex',
784
+ textDecoration: 'none',
785
+ alignSelf: 'center',
786
+ whiteSpace: 'nowrap',
787
+ paddingLeft: '2px',
788
+ paddingRight: '2px',
789
+ minWidth: '18px',
790
+ minHeight: '18px',
791
+ borderRadius: '20%',
792
+ alignItems: 'center',
793
+ justifyContent: 'center',
794
+ color: '#fff',
795
+ font: '12px sans-serif',
796
+ cursor: 'pointer',
797
+ fontWeight: 900,
798
+ marginLeft: '1px',
799
+ marginRight: '1px',
800
+ },
801
+ '.neuroglancer-icon svg': {
802
+ width: '16px',
803
+ height: '16px',
804
+ fill: 'transparent',
805
+ stroke: '#fff',
806
+ strokeWidth: 2,
807
+ strokeLinecap: 'round',
808
+ strokeLinejoin: 'round',
809
+ },
810
+ '.neuroglancer-icon:hover': { backgroundColor: '#db4437' },
811
+ '.neuroglancer-checkbox-icon.light-background[data-checked=true]': {
812
+ backgroundColor: '#00000080',
813
+ },
814
+ '.neuroglancer-checkbox-icon.dark-background[data-checked=true]': {
815
+ backgroundColor: '#fff3',
816
+ },
817
+ '.neuroglancer-image-dropdown': {
818
+ overflowY: 'auto',
819
+ display: 'flex',
820
+ flexDirection: 'column',
821
+ height: '0px',
822
+ },
823
+ '.neuroglancer-image-dropdown .neuroglancer-shader-code-widget': {
824
+ flexShrink: 0,
825
+ height: '8em',
826
+ border: '1px solid transparent',
827
+ },
828
+ '.neuroglancer-image-dropdown-top-row': {
829
+ display: 'flex',
830
+ flexDirection: 'row',
831
+ alignItems: 'center',
832
+ },
833
+ '.neuroglancer-image-layer-shader-overlay .neuroglancer-shader-code-widget': {
834
+ width: '80vw',
835
+ height: '80vh',
836
+ },
837
+ '.neuroglancer-selection-details-value-grid': {
838
+ display: 'grid',
839
+ gridAutoRows: 'auto',
840
+ fontFamily: 'monospace',
841
+ fontSize: 'medium',
842
+ alignItems: 'center',
843
+ },
844
+ '.neuroglancer-selection-details-value-grid-dim': {
845
+ gridColumn: 'dim',
846
+ color: '#ff6',
847
+ },
848
+ '.neuroglancer-selection-details-value-grid-dim:after': {
849
+ content: '"="',
850
+ color: '#aaa',
851
+ },
852
+ '.neuroglancer-selection-details-value-grid-coord': {
853
+ gridColumn: 'coord',
854
+ color: '#aaa',
855
+ marginRight: '1ch',
856
+ },
857
+ '.neuroglancer-selection-details-value-grid-value': {
858
+ gridColumn: 'value',
859
+ userSelect: 'text',
860
+ },
861
+ '.neuroglancer-layer-data-sources-tab': {
862
+ display: 'flex',
863
+ flexDirection: 'column',
864
+ },
865
+ '.neuroglancer-layer-data-sources-container': {
866
+ overflowY: 'auto',
867
+ display: 'flex',
868
+ flexDirection: 'column',
869
+ flex: 1,
870
+ height: '0px',
871
+ },
872
+ '.neuroglancer-layer-data-source-url-input input.autocomplete-input': {
873
+ color: '#fff',
874
+ },
875
+ '.neuroglancer-layer-data-source-url-input input.autocomplete-hint': {
876
+ color: '#aaa',
877
+ },
878
+ '.neuroglancer-layer-data-source-url-input .autocomplete-dropdown': {
879
+ backgroundColor: '#333',
880
+ },
881
+ '.neuroglancer-layer-data-sources-source-id': { fontWeight: 'bold' },
882
+ '.neuroglancer-layer-data-sources-source-id:not(:empty):before': {
883
+ content: '"["',
884
+ },
885
+ '.neuroglancer-layer-data-sources-source-id:not(:empty):after': {
886
+ content: '"]"',
887
+ },
888
+ '.neuroglancer-layer-data-sources-source-id:not(:empty)': {
889
+ marginRight: '4px',
890
+ color: '#0ff',
891
+ },
892
+ '.neuroglancer-layer-data-sources-source-messages:empty': { display: 'none' },
893
+ '.neuroglancer-layer-data-sources-source-messages': {
894
+ marginTop: '0',
895
+ listStyle: 'none',
896
+ paddingLeft: '0',
897
+ },
898
+ 'li.neuroglancer-message': { wordWrap: 'break-word', userSelect: 'text' },
899
+ 'li.neuroglancer-message-error': { color: 'red' },
900
+ 'li.neuroglancer-message-warning': { color: '#ff0' },
901
+ 'li.neuroglancer-message-info': { color: '#ccc' },
902
+ '.neuroglancer-layer-data-sources-source-default': {
903
+ display: 'block',
904
+ marginBottom: '4px',
905
+ },
906
+ '.neuroglancer-layer-data-sources-info-line[data-is-active=false]': {
907
+ textDecoration: 'solid line-through #caa',
908
+ },
909
+ '.neuroglancer-layer-data-sources-tab-type-detection': {
910
+ position: 'sticky',
911
+ bottom: '0px',
912
+ backgroundColor: '#ff9',
913
+ color: '#000',
914
+ textAlign: 'center',
915
+ cursor: 'pointer',
916
+ },
917
+ '.neuroglancer-layer-data-sources-tab-type-detection:hover': {
918
+ backgroundColor: '#ffc',
919
+ },
920
+ '.neuroglancer-layer-data-sources-tab-type-detection-type': {
921
+ fontWeight: 'bold',
922
+ },
923
+ '.neuroglancer-coordinate-space-transform-widget': {
924
+ display: 'grid',
925
+ justifyItems: 'stretch',
926
+ },
927
+ '.neuroglancer-coordinate-space-transform-widget input': {
928
+ fontFamily: 'monospace',
929
+ justifySelf: 'stretch',
930
+ backgroundColor: '#000',
931
+ color: '#fff',
932
+ padding: '2px',
933
+ },
934
+ '.neuroglancer-coordinate-space-transform-widget *[data-will-be-deleted=true]': {
935
+ color: '#666',
936
+ },
937
+ '.neuroglancer-coordinate-space-transform-label': {
938
+ fontStyle: 'italic',
939
+ color: '#fcc',
940
+ alignSelf: 'center',
941
+ },
942
+ '.neuroglancer-coordinate-space-transform-input-lower-label': {
943
+ gridRow: 'sourceLower',
944
+ gridColumn: 'outputLabel / sourceDim 1',
945
+ },
946
+ '.neuroglancer-coordinate-space-transform-translation-label': {
947
+ gridRow: 'sourceLabel / outputDim 1',
948
+ gridColumn: 'sourceDim -1',
949
+ writingMode: 'vertical-lr',
950
+ textOrientation: 'mixed',
951
+ alignSelf: 'end',
952
+ justifySelf: 'center',
953
+ marginBottom: '2px',
954
+ },
955
+ '.neuroglancer-coordinate-space-transform-input-lower-label, .neuroglancer-coordinate-space-transform-input-upper-label, .neuroglancer-coordinate-space-transform-input-scale-label': {
956
+ textAlign: 'right',
957
+ marginRight: '4px',
958
+ },
959
+ '.neuroglancer-coordinate-space-transform-input-upper-label': {
960
+ gridRow: 'sourceUpper',
961
+ gridColumn: 'headerStart / headerEnd',
962
+ },
963
+ '.neuroglancer-coordinate-space-transform-input-scale-label': {
964
+ gridRow: '5',
965
+ gridColumn: 'headerStart / headerEnd',
966
+ },
967
+ '.neuroglancer-coordinate-space-transform-source-label': {
968
+ gridRow: 'sourceLabel',
969
+ gridColumn: 'sourceDim 1 / sourceDim -1',
970
+ textAlign: 'center',
971
+ },
972
+ '.neuroglancer-coordinate-space-transform-output-label': {
973
+ gridRow: 'outputDim 1 / outputDim -1',
974
+ gridColumn: 'outputLabel',
975
+ writingMode: 'vertical-lr',
976
+ textOrientation: 'mixed',
977
+ alignSelf: 'center',
978
+ justifySelf: 'end',
979
+ marginRight: '2px',
980
+ },
981
+ '.neuroglancer-coordinate-space-transform-input-name': {
982
+ textAlign: 'center',
983
+ },
984
+ '.neuroglancer-coordinate-space-transform-input-name, input.neuroglancer-coordinate-space-transform-output-name': {
985
+ fontFamily: 'monospace',
986
+ color: '#ff6',
987
+ },
988
+ '.neuroglancer-coordinate-space-transform-scale': { textAlign: 'right' },
989
+ '.neuroglancer-coordinate-space-transform-input-bounds, .neuroglancer-coordinate-space-transform-output-bounds': {
990
+ whiteSpace: 'nowrap',
991
+ fontFamily: 'monospace',
992
+ fontSize: 'small',
993
+ textAlign: 'right',
994
+ paddingLeft: '2px',
995
+ paddingRight: '2px',
996
+ color: '#aff',
997
+ },
998
+ '.neuroglancer-coordinate-space-transform-input-bounds.neuroglancer-coordinate-space-transform-singleton:not(*[data-will-be-deleted="true"])': {
999
+ color: '#fa6',
1000
+ },
1001
+ '.neuroglancer-coordinate-space-transform-widget input[data-is-valid=false], .neuroglancer-coordinate-space-transform-widget input[data-is-valid=false]::placeholder': {
1002
+ textDecoration: 'solid underline red',
1003
+ },
1004
+ '.neuroglancer-coordinate-space-transform-output-extend': {
1005
+ gridRow: 'outputDim -1',
1006
+ gridColumn: 'outputNames',
1007
+ display: 'flex',
1008
+ flexDirection: 'column',
1009
+ },
1010
+ '.neuroglancer-coordinate-space-transform-output-extend input': {
1011
+ alignSelf: 'stretch',
1012
+ },
1013
+ '.neuroglancer-coordinate-space-transform-output-extend[data-is-active=false] input': {
1014
+ display: 'none',
1015
+ },
1016
+ '.neuroglancer-coordinate-space-transform-output-extend[data-is-active=true] .neuroglancer-icon': {
1017
+ display: 'none',
1018
+ },
1019
+ '.neuroglancer-coordinate-space-transform-output-extend .neuroglancer-icon': {
1020
+ alignSelf: 'start',
1021
+ },
1022
+ '.neuroglancer-coordinate-space-transform-translation-coeff': {
1023
+ marginLeft: '3px',
1024
+ },
1025
+ '.neuroglancer-coordinate-space-transform-output-scale-container': {
1026
+ marginRight: '3px',
1027
+ },
1028
+ '.neuroglancer-coordinate-space-transform-input-scale-container, .neuroglancer-coordinate-space-transform-input-scale-label': {
1029
+ marginBottom: '3px',
1030
+ },
1031
+ '.neuroglancer-coordinate-space-transform-widget input, .neuroglancer-coordinate-space-transform-output-name-container, .neuroglancer-coordinate-space-transform-scale-container': {
1032
+ border: '1px solid #333',
1033
+ },
1034
+ '.neuroglancer-coordinate-space-transform-widget .neuroglancer-coordinate-space-transform-output-name, .neuroglancer-coordinate-space-transform-widget .neuroglancer-coordinate-space-transform-scale': {
1035
+ border: '0px',
1036
+ },
1037
+ '.neuroglancer-coordinate-space-transform-output-name-container': {
1038
+ display: 'flex',
1039
+ flexDirection: 'column',
1040
+ alignItems: 'stretch',
1041
+ marginRight: '3px',
1042
+ },
1043
+ '.neuroglancer-coordinate-space-transform-scale-container': {
1044
+ display: 'flex',
1045
+ flexDirection: 'column',
1046
+ alignItems: 'stretch',
1047
+ },
1048
+ '.neuroglancer-coordinate-space-transform-scale-suggestion': {
1049
+ fontFamily: 'monospace',
1050
+ cursor: 'pointer',
1051
+ borderRadius: '20%',
1052
+ border: '1px solid #333',
1053
+ alignSelf: 'flex-end',
1054
+ margin: '2px',
1055
+ color: '#aaa',
1056
+ },
1057
+ '.neuroglancer-coordinate-space-transform-scale-suggestion svg': {
1058
+ width: '16px',
1059
+ height: '16px',
1060
+ fill: 'transparent',
1061
+ stroke: '#aaa',
1062
+ strokeWidth: 2,
1063
+ strokeLinecap: 'round',
1064
+ strokeLinejoin: 'round',
1065
+ },
1066
+ '.neuroglancer-coordinate-space-transform-scale-suggestion:hover': {
1067
+ backgroundColor: '#db4437',
1068
+ border: '1px solid transparent',
1069
+ color: '#fff',
1070
+ },
1071
+ '.neuroglancer-coordinate-space-transform-scale-suggestion:hover svg': {
1072
+ stroke: '#fff',
1073
+ },
1074
+ '.neuroglancer-coordinate-space-transform-widget-reset-buttons': {
1075
+ gridRow: 'outputDim -1',
1076
+ gridColumn: 'headerEnd / -1',
1077
+ justifySelf: 'start',
1078
+ },
1079
+ '.neuroglancer-multiline-autocomplete': {
1080
+ marginTop: '2px',
1081
+ padding: '2px',
1082
+ position: 'relative',
1083
+ backgroundColor: '#222',
1084
+ },
1085
+ '.neuroglancer-multiline-autocomplete-hint, .neuroglancer-multiline-autocomplete-input': {
1086
+ fontFamily: 'monospace',
1087
+ color: '#fff',
1088
+ wordWrap: 'break-word',
1089
+ },
1090
+ '.neuroglancer-multiline-autocomplete-input:focus': { outline: '0px' },
1091
+ '.neuroglancer-multiline-autocomplete-input:not(:focus):empty:before': {
1092
+ content: 'attr(data-placeholder)',
1093
+ color: '#aaa',
1094
+ },
1095
+ '.neuroglancer-multiline-autocomplete-hint': { color: '#aaa' },
1096
+ '.neuroglancer-multiline-autocomplete-hint, .neuroglancer-multiline-autocomplete-input, .neuroglancer-multiline-autocomplete-completion': {
1097
+ fontFamily: 'monospace',
1098
+ fontSize: 'medium',
1099
+ },
1100
+ '.neuroglancer-multiline-autocomplete-dropdown': {
1101
+ color: '#fff',
1102
+ backgroundColor: '#181818',
1103
+ position: 'fixed',
1104
+ display: 'block',
1105
+ outline: '0',
1106
+ margin: '0',
1107
+ padding: '0',
1108
+ left: '0px',
1109
+ right: '0px',
1110
+ textAlign: 'left',
1111
+ cursor: 'default',
1112
+ borderStyle: 'solid',
1113
+ borderWidth: '1px',
1114
+ borderColor: '#aaa',
1115
+ overflowY: 'scroll',
1116
+ wordWrap: 'break-word',
1117
+ },
1118
+ '.neuroglancer-multiline-autocomplete-completion:nth-child(even):not(.neuroglancer-multiline-autocomplete-completion-active)': {
1119
+ backgroundColor: '#2b2b2b',
1120
+ },
1121
+ '.neuroglancer-multiline-autocomplete-completion:hover': {
1122
+ outline: '1px solid #ddd',
1123
+ },
1124
+ '.neuroglancer-multiline-autocomplete-completion-active': {
1125
+ backgroundColor: '#666',
1126
+ },
1127
+ '.neuroglancer-multiline-autocomplete-completion-description': {
1128
+ fontStyle: 'italic',
1129
+ color: '#f9f',
1130
+ },
1131
+ '.neuroglancer-tab-view': { display: 'flex', flexDirection: 'column' },
1132
+ '.neuroglancer-tab-view-bar': {
1133
+ display: 'block',
1134
+ backgroundColor: '#333',
1135
+ borderBottom: '1px solid white',
1136
+ },
1137
+ '.neuroglancer-tab-label': {
1138
+ display: 'inline-block',
1139
+ borderTop: '1px solid transparent',
1140
+ borderLeft: '1px solid transparent',
1141
+ borderRight: '1px solid transparent',
1142
+ borderBottom: 'none',
1143
+ marginRight: '4px',
1144
+ paddingTop: '1px',
1145
+ paddingLeft: '2px',
1146
+ paddingRight: '2px',
1147
+ font: '10pt sans-serif',
1148
+ fontWeight: 'bold',
1149
+ cursor: 'pointer',
1150
+ },
1151
+ '.neuroglancer-tab-label:hover': { color: '#daa520' },
1152
+ '.neuroglancer-tab-label.neuroglancer-selected-tab-label': {
1153
+ backgroundColor: '#000',
1154
+ borderTop: '1px solid white',
1155
+ borderLeft: '1px solid white',
1156
+ borderRight: '1px solid white',
1157
+ borderBottom: '1px solid black',
1158
+ paddingBottom: '1px',
1159
+ marginBottom: '-1px',
1160
+ },
1161
+ '.neuroglancer-stack-view': { display: 'contents' },
1162
+ '.neuroglancer-tab-view>.neuroglancer-stack-view>.neuroglancer-tab-content': {
1163
+ flex: 1,
1164
+ flexBasis: '0px',
1165
+ height: '0px',
1166
+ minHeight: '0px',
1167
+ padding: '2px',
1168
+ },
1169
+ '.neuroglancer-tool-key-binding': {
1170
+ display: 'inline-block',
1171
+ color: '#0ff',
1172
+ font: '9pt monospace',
1173
+ whiteSpace: 'pre',
1174
+ },
1175
+ '.neuroglancer-tool-key-binding:hover': { outline: '1px solid #fff' },
1176
+ '.neuroglancer-tool-key-binding:before': { content: '"["' },
1177
+ '.neuroglancer-tool-key-binding:after': { content: '"]"' },
1178
+ '.neuroglancer-tool-key-binding:before, .neuroglancer-tool-key-binding:after': {
1179
+ color: '#999',
1180
+ },
1181
+ '.neuroglancer-tool-button': { display: 'inline-flex', flexDirection: 'row' },
1182
+ '#statusContainer li.neuroglancer-tool-status': { maxHeight: '50vh' },
1183
+ '.neuroglancer-tool-status-bindings': { backgroundColor: '#333' },
1184
+ '.neuroglancer-tool-status-content': {
1185
+ display: 'flex',
1186
+ flexDirection: 'row',
1187
+ },
1188
+ '.neuroglancer-tool-status-header-container': {
1189
+ backgroundColor: '#555',
1190
+ width: 'min-content',
1191
+ padding: '3px',
1192
+ display: 'flex',
1193
+ flexDirection: 'row',
1194
+ alignItems: 'center',
1195
+ },
1196
+ '.neuroglancer-tool-status-header': { alignSelf: 'center' },
1197
+ '.neuroglancer-tool-status-body': { flex: 1, padding: '2px' },
1198
+ '.neuroglancer-viewer': { outline: '0px' },
1199
+ '.neuroglancer-viewer-top-row': {
1200
+ display: 'flex',
1201
+ flexDirection: 'row',
1202
+ alignItems: 'center',
1203
+ backgroundColor: '#222',
1204
+ marginBottom: '3px',
1205
+ paddingRight: '2px',
1206
+ },
1207
+ '.neuroglancer-viewer-side-panel': {
1208
+ display: 'flex',
1209
+ flexDirection: 'column',
1210
+ alignItems: 'stretch',
1211
+ maxWidth: '80%',
1212
+ color: '#fff',
1213
+ },
1214
+ '.neuroglancer-noselect': {
1215
+ WebkitTouchCallout: 'none',
1216
+ WebkitUserSelect: 'none',
1217
+ KhtmlUserSelect: 'none',
1218
+ MozUserSelect: 'none',
1219
+ msUserSelect: 'none',
1220
+ userSelect: 'none',
1221
+ },
1222
+ '.neuroglancer-select-text': {
1223
+ WebkitTouchCallout: 'default',
1224
+ WebkitUserSelect: 'text',
1225
+ KhtmlUserSelect: 'text',
1226
+ MozUserSelect: 'text',
1227
+ msUserSelect: 'text',
1228
+ userSelect: 'text',
1229
+ },
1230
+ '.neuroglancer-data-panel-layout-controls': {
1231
+ position: 'absolute',
1232
+ top: '2px',
1233
+ right: '2px',
1234
+ display: 'flex',
1235
+ alignItems: 'start',
1236
+ },
1237
+ '.neuroglancer-data-panel-layout-controls>button': {
1238
+ display: 'flex',
1239
+ margin: '2px',
1240
+ border: ['0px', '1px solid white'],
1241
+ backgroundColor: '#00000080',
1242
+ flexDirection: 'row',
1243
+ alignSelf: 'top',
1244
+ alignItems: 'center',
1245
+ justifyContent: 'center',
1246
+ fontSize: '15px',
1247
+ width: '18px',
1248
+ height: '18px',
1249
+ color: '#fff',
1250
+ },
1251
+ '.neuroglancer-data-panel-layout-controls>button>div': {
1252
+ display: 'inline-block',
1253
+ textAlign: 'center',
1254
+ lineHeight: '12px',
1255
+ width: '15px',
1256
+ height: '15px',
1257
+ },
1258
+ '.neuroglancer-data-panel-layout-controls>button:hover': { color: '#6ff' },
1259
+ 'label.perspective-panel-show-slice-views': {
1260
+ pointerEvents: 'none',
1261
+ position: 'absolute',
1262
+ right: '2px',
1263
+ bottom: '2px',
1264
+ fontFamily: 'sans-serif',
1265
+ fontSize: 'small',
1266
+ },
1267
+ 'input.perspective-panel-show-slice-views': { pointerEvents: 'all' },
1268
+ '.neuroglancer-rendered-data-panel': {
1269
+ cursor: 'crosshair',
1270
+ position: 'relative',
1271
+ outline: '0',
1272
+ touchAction: 'none',
1273
+ color: '#fff',
1274
+ textAlign: 'left',
1275
+ },
1276
+ '.neuroglancer-display-dimensions-widget': {
1277
+ position: 'absolute',
1278
+ cursor: 'default',
1279
+ top: '2px',
1280
+ left: '2px',
1281
+ backgroundColor: '#0000004d',
1282
+ },
1283
+ '.neuroglancer-display-dimensions-widget-dimension-grid': {
1284
+ display: 'grid',
1285
+ gridTemplateRows: '0fr 0fr 0fr 0fr',
1286
+ gridTemplateColumns: '0fr 0fr 0fr',
1287
+ },
1288
+ '.neuroglancer-display-dimensions-widget input': {
1289
+ outline: '0px',
1290
+ backgroundColor: 'transparent',
1291
+ borderColor: 'transparent',
1292
+ boxShadow: 'none',
1293
+ margin: '0',
1294
+ border: '0',
1295
+ padding: '2px',
1296
+ },
1297
+ '.neuroglancer-display-dimensions-widget input, .neuroglancer-display-dimensions-widget': {
1298
+ fontFamily: 'monospace',
1299
+ color: '#fff',
1300
+ },
1301
+ '.neuroglancer-display-dimensions-widget-dimension:hover': {
1302
+ outline: '1px solid black',
1303
+ },
1304
+ '.neuroglancer-display-dimensions-widget-name[data-is-valid=false]': {
1305
+ textDecoration: 'solid underline red',
1306
+ },
1307
+ '.neuroglancer-display-dimensions-widget-scale-factor': {
1308
+ textAlign: 'right',
1309
+ alignItems: 'end',
1310
+ display: 'inline-block',
1311
+ whiteSpace: 'nowrap',
1312
+ marginLeft: '2px',
1313
+ },
1314
+ '.neuroglancer-display-dimensions-widget-scale': {
1315
+ display: 'inline-block',
1316
+ whiteSpace: 'nowrap',
1317
+ paddingLeft: '10px',
1318
+ textAlign: 'right',
1319
+ marginLeft: '5px',
1320
+ },
1321
+ '.neuroglancer-display-dimensions-widget-scale:not(:empty):before': {
1322
+ content: '"("',
1323
+ },
1324
+ '.neuroglancer-display-dimensions-widget-scale:not(:empty):after': {
1325
+ content: '")"',
1326
+ },
1327
+ '.neuroglancer-display-dimensions-widget-scale-factor:after': {
1328
+ content: '"\\d7"',
1329
+ },
1330
+ '.neuroglancer-display-dimensions-widget:not(:hover):not([data-active="true"]) .neuroglancer-display-dimensions-widget-scale-factor, .neuroglancer-display-dimensions-widget:not(:hover):not([data-active="true"]) .neuroglancer-display-dimensions-widget-scale, .neuroglancer-display-dimensions-widget:not(:hover):not([data-active="true"]) .neuroglancer-display-dimensions-widget-default, .neuroglancer-display-dimensions-widget:not(:hover):not([data-active="true"]) .neuroglancer-depth-range-widget-grid, .neuroglancer-display-dimensions-widget:not(:hover):not([data-active="true"]) .neuroglancer-depth-range-relative-checkbox-label': {
1331
+ display: 'none',
1332
+ },
1333
+ '.neuroglancer-display-dimensions-widget-dimension[data-is-modified=true] .neuroglancer-display-dimensions-widget-scale-factor, .neuroglancer-display-dimensions-widget-dimension[data-is-modified=true] .neuroglancer-display-dimensions-widget-scale': {
1334
+ visibility: 'hidden',
1335
+ },
1336
+ '.neuroglancer-display-dimensions-widget *:focus': { outline: '0px' },
1337
+ '.neuroglancer-display-dimensions-widget-default': {
1338
+ gridRow: '4',
1339
+ gridColumnStart: '1',
1340
+ gridColumnEnd: '3',
1341
+ display: 'inline-block',
1342
+ whiteSpace: 'nowrap',
1343
+ },
1344
+ '.neuroglancer-display-dimensions-widget-default input': {
1345
+ marginRight: '3px',
1346
+ },
1347
+ '.neuroglancer-depth-range-widget-grid': {
1348
+ marginTop: '1em',
1349
+ display: 'grid',
1350
+ gridTemplateColumns: '0fr 0fr 0fr',
1351
+ gridAutoRows: '0fr',
1352
+ },
1353
+ '.neuroglancer-depth-range-widget-dimension-names:not(:empty):before': {
1354
+ content: '"("',
1355
+ },
1356
+ '.neuroglancer-depth-range-widget-dimension-names:not(:empty):after': {
1357
+ content: '")"',
1358
+ },
1359
+ '.neuroglancer-depth-range-widget-dimension-names': {
1360
+ marginLeft: '1ch',
1361
+ whiteSpace: 'nowrap',
1362
+ },
1363
+ '.neuroglancer-help-body': {
1364
+ flexBasis: '0px',
1365
+ flex: 1,
1366
+ height: '0px',
1367
+ minHeight: '0px',
1368
+ fontFamily: 'sans-serif',
1369
+ display: 'flex',
1370
+ flexDirection: 'column',
1371
+ },
1372
+ '.neuroglancer-help-scroll-container': {
1373
+ flex: 1,
1374
+ flexBasis: '0px',
1375
+ position: 'relative',
1376
+ overflow: 'auto',
1377
+ },
1378
+ '.neuroglancer-help-scroll-container div+h2': { marginTop: '1em' },
1379
+ '.neuroglancer-help-scroll-container h2': {
1380
+ fontSize: '10pt',
1381
+ padding: '4px',
1382
+ position: 'sticky',
1383
+ top: '0',
1384
+ backgroundColor: '#333',
1385
+ marginTop: '0',
1386
+ },
1387
+ '.neuroglancer-help-scroll-container .dt': {
1388
+ fontFamily: 'monospace',
1389
+ fontWeight: 'bold',
1390
+ color: '#ff0',
1391
+ },
1392
+ '.neuroglancer-help-scroll-container .dd': {
1393
+ fontSize: '10pt',
1394
+ marginLeft: '4ex',
1395
+ },
1396
+ '.neuroglancer-layout-split-drop-zone': {
1397
+ position: 'absolute',
1398
+ zIndex: 1000,
1399
+ },
1400
+ '.neuroglancer-drag-over': { backgroundColor: '#0000ff80' },
1401
+ '.neuroglancer-stack-layout-row>.neuroglancer-stack-layout-drop-placeholder': {
1402
+ paddingLeft: '4px',
1403
+ paddingRight: '4px',
1404
+ width: '1px',
1405
+ },
1406
+ '.neuroglancer-stack-layout-column>.neuroglancer-stack-layout-drop-placeholder': {
1407
+ paddingTop: '4px',
1408
+ paddingBottom: '4px',
1409
+ height: '1px',
1410
+ },
1411
+ '.neuroglancer-stack-layout-drop-placeholder': {
1412
+ backgroundClip: 'content-box',
1413
+ backgroundColor: '#666',
1414
+ zIndex: 1,
1415
+ },
1416
+ '.neuroglancer-stack-layout-drop-placeholder.neuroglancer-drag-over': {
1417
+ backgroundClip: 'border-box',
1418
+ backgroundColor: '#8080ff80',
1419
+ },
1420
+ '.neuroglancer-stack-layout-drop-placeholder:first-child, .neuroglancer-stack-layout-drop-placeholder:last-child': {
1421
+ display: 'none',
1422
+ },
1423
+ '.neuroglancer-panel': { flex: 1 },
1424
+ '.neuroglancer-show-panel-borders .neuroglancer-panel': {
1425
+ borderStyle: 'solid',
1426
+ borderColor: '#000',
1427
+ borderWidth: '2px',
1428
+ },
1429
+ '.neuroglancer-panel:focus-within': { borderColor: '#fff' },
1430
+ '.neuroglancer-layer-group-viewer': { outline: '0px' },
1431
+ '.neuroglancer-layer-group-viewer-context-menu': {
1432
+ flexDirection: 'column',
1433
+ alignItems: 'stretch',
1434
+ },
1435
+ '.neuroglancer-layer-group-viewer-context-menu label': {
1436
+ display: 'flex',
1437
+ flexDirection: 'row',
1438
+ justifyContent: 'space-between',
1439
+ },
1440
+ '.neuroglancer-layer-group-viewer-context-menu select:before': {
1441
+ flex: 1,
1442
+ content: '" "',
1443
+ },
1444
+ '.neuroglancer-layer-group-viewer-context-menu select': { marginLeft: '5px' },
1445
+ '.neuroglancer-context-menu': {
1446
+ position: 'absolute',
1447
+ zIndex: 100,
1448
+ border: '1px solid white',
1449
+ backgroundColor: '#000',
1450
+ boxShadow: '5px 5px 2px 1px #00000080',
1451
+ fontFamily: 'sans-serif',
1452
+ fontSize: '11pt',
1453
+ padding: '5px',
1454
+ color: '#fff',
1455
+ outline: '0px',
1456
+ },
1457
+ ':root': {
1458
+ '--layer-number-color': '#9a7518',
1459
+ '--neuroglancer-segment-list-width': 'auto',
1460
+ },
1461
+ '.neuroglancer-layer-panel': {
1462
+ width: '100%',
1463
+ display: 'flex',
1464
+ flexDirection: 'row',
1465
+ flexWrap: 'wrap',
1466
+ alignItems: 'stretch',
1467
+ marginLeft: '-5px',
1468
+ marginTop: '-1px',
1469
+ zIndex: -0.1,
1470
+ overflow: 'hidden',
1471
+ },
1472
+ '.neuroglancer-layer-item': {
1473
+ position: 'relative',
1474
+ display: 'flex',
1475
+ alignItems: 'center',
1476
+ color: '#fff',
1477
+ cursor: 'pointer',
1478
+ borderWidth: '1px',
1479
+ borderStyle: 'solid',
1480
+ borderColor: '#ccc',
1481
+ fontFamily: 'sans-serif',
1482
+ fontSize: '10pt',
1483
+ backgroundColor: '#000',
1484
+ padding: '1px',
1485
+ },
1486
+ '.neuroglancer-layer-item, .neuroglancer-layer-add-button': {
1487
+ margin: '1px 1px 1px 5px',
1488
+ },
1489
+ '.neuroglancer-layer-item[data-selected=true]': { borderColor: '#8c8' },
1490
+ '.neuroglancer-layer-item[data-selected=true]:hover': { borderColor: '#3c3' },
1491
+ '.neuroglancer-layer-item:hover': { borderColor: '#daa520' },
1492
+ '.neuroglancer-layer-item[data-pick=true] .neuroglancer-layer-item-label': {
1493
+ backgroundColor: '#939',
1494
+ },
1495
+ '.neuroglancer-layer-item-label': {
1496
+ display: 'inline-block',
1497
+ position: 'relative',
1498
+ backgroundColor: '#222',
1499
+ paddingRight: '3px',
1500
+ },
1501
+ '.neuroglancer-layer-item-number': {
1502
+ display: 'inline-block',
1503
+ backgroundColor: 'var(--layer-number-color)',
1504
+ fontWeight: 'bold',
1505
+ paddingLeft: '1px',
1506
+ paddingRight: '1px',
1507
+ },
1508
+ '.neuroglancer-layer-panel[data-show-hover-values=true] .neuroglancer-layer-item-value': {
1509
+ display: 'inline-block',
1510
+ fontFamily: 'monospace',
1511
+ fontSize: 'medium',
1512
+ maxWidth: '50ch',
1513
+ marginLeft: '1ch',
1514
+ whiteSpace: 'nowrap',
1515
+ overflow: 'hidden',
1516
+ textOverflow: 'ellipses',
1517
+ textAlign: 'center',
1518
+ },
1519
+ '.neuroglancer-layer-panel[data-show-hover-values=false] .neuroglancer-layer-item-value': {
1520
+ display: 'none',
1521
+ },
1522
+ '.neuroglancer-layer-item[data-visible=false] .neuroglancer-layer-item-label': {
1523
+ textDecoration: 'line-through',
1524
+ },
1525
+ '.neuroglancer-layer-item[data-visible=false]': { color: '#bbb' },
1526
+ '.neuroglancer-layer-panel-drop-zone': { display: 'inline-block', flex: 1 },
1527
+ '.neuroglancer-layer-item-visible-progress, .neuroglancer-layer-item-prefetch-progress': {
1528
+ position: 'absolute',
1529
+ left: '0px',
1530
+ height: '2px',
1531
+ backgroundColor: '#666',
1532
+ },
1533
+ '.neuroglancer-layer-item-visible-progress': { top: '0px' },
1534
+ '.neuroglancer-layer-item-prefetch-progress': { bottom: '0px' },
1535
+ '.neuroglancer-layer-item-value-container': {
1536
+ display: 'grid',
1537
+ gridTemplateColumns: 'min-content',
1538
+ alignItems: 'center',
1539
+ },
1540
+ '.neuroglancer-layer-item-value': {
1541
+ gridRow: '1',
1542
+ gridColumn: '1',
1543
+ visibility: 'visible',
1544
+ },
1545
+ '.neuroglancer-layer-item-button-container': {
1546
+ gridRow: '1',
1547
+ gridColumn: '1',
1548
+ whiteSpace: 'nowrap',
1549
+ display: 'flex',
1550
+ flexDirection: 'row',
1551
+ alignItems: 'center',
1552
+ visibility: 'hidden',
1553
+ justifySelf: 'right',
1554
+ },
1555
+ '.neuroglancer-layer-panel:hover .neuroglancer-layer-item-value': {
1556
+ visibility: 'hidden',
1557
+ },
1558
+ '.neuroglancer-layer-panel:hover .neuroglancer-layer-item-button-container': {
1559
+ visibility: 'visible',
1560
+ },
1561
+ '.neuroglancer-position-widget': {
1562
+ display: 'inline-flex',
1563
+ alignItems: 'center',
1564
+ },
1565
+ '.neuroglancer-position-widget input:disabled': { pointerEvents: 'none' },
1566
+ '.neuroglancer-position-widget .neuroglancer-copy-button:first-child': {
1567
+ display: 'none',
1568
+ },
1569
+ '.neuroglancer-position-dimension-coordinate, .neuroglancer-position-dimension-name, .neuroglancer-position-dimension-scale': {
1570
+ backgroundColor: 'transparent',
1571
+ borderColor: 'transparent',
1572
+ boxShadow: 'none',
1573
+ border: '0',
1574
+ margin: '0',
1575
+ fontFamily: 'monospace',
1576
+ fontSize: 'medium',
1577
+ },
1578
+ '.neuroglancer-position-dimension[data-coordinate-array=valid] .neuroglancer-position-dimension-scale': {
1579
+ display: 'none',
1580
+ },
1581
+ '.neuroglancer-position-dimension[data-coordinate-array=invalid] .neuroglancer-position-dimension-scale': {
1582
+ textDecorationLine: 'underline',
1583
+ textDecorationStyle: 'wavy',
1584
+ textDecorationColor: 'red',
1585
+ },
1586
+ '.neuroglancer-position-dimension-coordinate': { color: '#fff' },
1587
+ '.neuroglancer-position-widget input:invalid, .neuroglancer-position-widget input::placeholder, .neuroglancer-position-widget input[data-is-valid=false]': {
1588
+ textDecoration: 'solid underline red',
1589
+ },
1590
+ '.neuroglancer-position-widget *:focus': { outline: '0px' },
1591
+ '.neuroglancer-position-dimension[data-dropdown-visible=true]:after': {
1592
+ content: '""',
1593
+ display: 'block',
1594
+ left: '0px',
1595
+ right: '0px',
1596
+ bottom: '-1px',
1597
+ position: 'absolute',
1598
+ borderBottom: '1px solid black',
1599
+ zIndex: 100,
1600
+ height: '0px',
1601
+ },
1602
+ '.neuroglancer-position-dimension-dropdown, .neuroglancer-position-dimension-coordinate-dropdown': {
1603
+ position: 'absolute',
1604
+ minWidth: 'calc(100% + 2px)',
1605
+ border: '1px solid #aaa',
1606
+ boxSizing: 'border-box',
1607
+ padding: '2px',
1608
+ left: '-1px',
1609
+ zIndex: 100,
1610
+ backgroundColor: '#000',
1611
+ },
1612
+ '.neuroglancer-position-dimension-dropdown': {
1613
+ display: 'grid',
1614
+ gridTemplateAreas: '"labels . graph"',
1615
+ gridTemplateRows: '1fr',
1616
+ gridTemplateColumns: '0fr 3px 0fr',
1617
+ },
1618
+ '.neuroglancer-position-dimension-coordinate-dropdown': {
1619
+ display: 'flex',
1620
+ flexDirection: 'column',
1621
+ overflowY: 'auto',
1622
+ },
1623
+ '.neuroglancer-dimension-dropdown-coordinate-entry': {
1624
+ display: 'flex',
1625
+ flexDirection: 'row',
1626
+ justifyContent: 'space-between',
1627
+ },
1628
+ '.neuroglancer-dimension-dropdown-coordinate-entry:hover': {
1629
+ backgroundColor: '#333',
1630
+ },
1631
+ '.neuroglancer-dimension-dropdown-coordinate-label': {
1632
+ width: 'var(--neuroglancer-coordinate-label-width)',
1633
+ color: '#0ff',
1634
+ },
1635
+ '.neuroglancer-position-dimension-dropdown:focus, .neuroglancer-position-dimension-coordinate-dropdown:focus': {
1636
+ outline: '0px',
1637
+ },
1638
+ '.neuroglancer-position-dimension-dropdown-lowerbound, .neuroglancer-position-dimension-dropdown-upperbound, .neuroglancer-position-dimension-dropdown-hoverposition': {
1639
+ gridArea: 'labels',
1640
+ textAlign: 'right',
1641
+ },
1642
+ '.neuroglancer-position-dimension-dropdown canvas': {
1643
+ marginTop: '.5em',
1644
+ marginBottom: '.5em',
1645
+ gridArea: 'graph',
1646
+ },
1647
+ '.neuroglancer-position-dimension:focus-within, .neuroglancer-position-dimension[data-dropdown-visible=true]': {
1648
+ border: '1px solid #aaa',
1649
+ backgroundColor: '#000',
1650
+ },
1651
+ '.neuroglancer-position-dimension': {
1652
+ border: '1px solid transparent',
1653
+ position: 'relative',
1654
+ display: 'inline-block',
1655
+ fontFamily: 'monospace',
1656
+ fontSize: 'medium',
1657
+ whiteSpace: 'nowrap',
1658
+ },
1659
+ '.neuroglancer-position-dimension-name': {
1660
+ color: '#ff6',
1661
+ paddingLeft: '2px',
1662
+ },
1663
+ '.neuroglancer-position-dimension-scale-container[data-is-empty=false]:before': {
1664
+ content: '"("',
1665
+ color: '#aaa',
1666
+ },
1667
+ '.neuroglancer-position-dimension-scale-container[data-is-empty=false]:after': {
1668
+ content: '")"',
1669
+ color: '#aaa',
1670
+ },
1671
+ '.neuroglancer-position-dimension-scale-container[data-is-empty=false]': {
1672
+ marginRight: '5px',
1673
+ },
1674
+ '.neuroglancer-position-dimension-scale': { color: '#bbb' },
1675
+ '.neuroglancer-position-dimension-scale-container': {
1676
+ marginRight: '2px',
1677
+ marginLeft: '4px',
1678
+ },
1679
+ '.neuroglancer-mouse-position-widget': {
1680
+ marginLeft: '1ch',
1681
+ verticalAlign: 'center',
1682
+ fontFamily: 'monospace',
1683
+ fontSize: 'medium',
1684
+ color: 'orange',
1685
+ whiteSpace: 'pre',
1686
+ },
1687
+ '.neuroglancer-position-dimension-coordinate-label': {
1688
+ display: 'inline-block',
1689
+ color: '#0ff',
1690
+ },
1691
+ '.neuroglancer-position-dimension-coordinate-label:not(:empty):before': {
1692
+ content: '"["',
1693
+ color: '#aaa',
1694
+ },
1695
+ '.neuroglancer-position-dimension-coordinate-label:not(:empty):after': {
1696
+ content: '"]"',
1697
+ color: '#aaa',
1698
+ },
1699
+ '.neuroglancer-layer-list-panel-items': {
1700
+ display: 'flex',
1701
+ flexDirection: 'column',
1702
+ flex: 1,
1703
+ overflow: 'auto',
1704
+ height: '0px',
1705
+ minHeight: '0px',
1706
+ flexBasis: '0px',
1707
+ },
1708
+ '.neuroglancer-layer-list-panel-item': {
1709
+ display: 'flex',
1710
+ flexDirection: 'row',
1711
+ padding: '2px',
1712
+ border: '1px solid #aaa',
1713
+ margin: '2px',
1714
+ },
1715
+ '.neuroglancer-layer-list-panel-item[data-selected=true]': {
1716
+ borderColor: '#3c3',
1717
+ },
1718
+ '.neuroglancer-layer-list-panel-item[data-archived=true]': {
1719
+ borderColor: '#666',
1720
+ },
1721
+ '.neuroglancer-layer-list-panel-item[data-archived=true] .neuroglancer-layer-side-panel-name, .neuroglancer-layer-list-panel-item[data-archived=true] .neuroglancer-icon svg': {
1722
+ color: '#999',
1723
+ stroke: '#999',
1724
+ },
1725
+ '.neuroglancer-layer-list-panel-item:hover': { backgroundColor: '#333' },
1726
+ '.neuroglancer-layer-list-panel-item-number': {
1727
+ fontFamily: 'sans-serif',
1728
+ backgroundColor: 'var(--layer-number-color)',
1729
+ color: '#fff',
1730
+ fontWeight: 'bold',
1731
+ display: 'inline-block',
1732
+ },
1733
+ '.neuroglancer-layer-list-panel-item:not(:hover)>.neuroglancer-layer-list-panel-item-delete': {
1734
+ display: 'none',
1735
+ },
1736
+ '.neuroglancer-layer-list-panel-item:not(:hover)>.neuroglancer-layer-list-panel-item-controls': {
1737
+ display: 'none',
1738
+ },
1739
+ '[data-neuroglancer-layer-panel-pinned=false] .neuroglancer-side-panel-titlebar.neuroglancer-layer-side-panel-title': {
1740
+ backgroundColor: '#393',
1741
+ },
1742
+ '[data-neuroglancer-layer-visible=false] .neuroglancer-side-panel-titlebar.neuroglancer-layer-side-panel-title input': {
1743
+ textDecoration: 'line-through',
1744
+ },
1745
+ '.neuroglancer-layer-side-panel-name': {
1746
+ flex: 1,
1747
+ backgroundColor: 'transparent',
1748
+ border: '0px',
1749
+ color: '#fff',
1750
+ outline: '0px',
1751
+ width: '0px',
1752
+ minWidth: '0px',
1753
+ },
1754
+ '.neuroglancer-layer-side-panel-tab-view': {
1755
+ flex: 1,
1756
+ display: 'flex',
1757
+ flexDirection: 'column',
1758
+ font: '10pt sans-serif',
1759
+ },
1760
+ '.neuroglancer-layer-side-panel-type-measure': {
1761
+ position: 'absolute',
1762
+ visibility: 'hidden',
1763
+ top: '0px',
1764
+ height: 'auto',
1765
+ width: 'auto',
1766
+ whiteSpace: 'nowrap',
1767
+ },
1768
+ '.neuroglancer-layer-side-panel-type, .neuroglancer-layer-side-panel-type-measure': {
1769
+ paddingLeft: '3px',
1770
+ paddingRight: '3px',
1771
+ fontWeight: 'bold',
1772
+ fontFamily: 'sans-serif',
1773
+ fontSize: '10pt',
1774
+ boxSizing: 'border-box',
1775
+ },
1776
+ '.neuroglancer-layer-side-panel-type': {
1777
+ WebkitAppearance: 'none',
1778
+ color: '#fff',
1779
+ cursor: 'pointer',
1780
+ backgroundColor: '#00000080',
1781
+ marginRight: '5px',
1782
+ border: '0px',
1783
+ outline: '0px',
1784
+ },
1785
+ '.neuroglancer-layer-side-panel-type option': { backgroundColor: '#000' },
1786
+ '.neuroglancer-statistics-panel-body': {
1787
+ flex: 1,
1788
+ flexBasis: '0px',
1789
+ minWidth: '0px',
1790
+ display: 'flex',
1791
+ flexDirection: 'column',
1792
+ overflowY: 'auto',
1793
+ font: '10pt sans-serif',
1794
+ },
1795
+ '.neuroglancer-statistics-panel-body>table': {
1796
+ position: 'relative',
1797
+ flex: 1,
1798
+ width: '100%',
1799
+ },
1800
+ '.neuroglancer-statistics-panel-body>table>thead td': {
1801
+ position: 'sticky',
1802
+ top: '0px',
1803
+ zIndex: 2,
1804
+ backgroundColor: '#333',
1805
+ fontWeight: 'bold',
1806
+ },
1807
+ '.neuroglancer-statistics-panel-body>table>tbody tr:hover': {
1808
+ backgroundColor: '#336',
1809
+ },
1810
+ '.neuroglancer-settings-body': {
1811
+ flexBasis: '0px',
1812
+ flex: 1,
1813
+ height: '0px',
1814
+ minHeight: '0px',
1815
+ fontFamily: 'sans-serif',
1816
+ display: 'flex',
1817
+ flexDirection: 'column',
1818
+ fontSize: '10pt',
1819
+ },
1820
+ '.neuroglancer-settings-body input[type=text], .neuroglancer-settings-body input[type=number]': {
1821
+ backgroundColor: '#333',
1822
+ color: '#fff',
1823
+ border: '0px',
1824
+ },
1825
+ '.neuroglancer-settings-scroll-container': {
1826
+ flex: 1,
1827
+ flexBasis: '0px',
1828
+ position: 'relative',
1829
+ overflow: 'auto',
1830
+ display: 'flex',
1831
+ flexDirection: 'column',
1832
+ },
1833
+ '.neuroglancer-settings-scroll-container>*': { marginTop: '3px' },
1834
+ '.neuroglancer-settings-title': { alignSelf: 'stretch' },
1835
+ '.neuroglancer-settings-scroll-container>label': {
1836
+ display: 'flex',
1837
+ flexDirection: 'row',
1838
+ justifyContent: 'space-between',
1839
+ },
1840
+ '.neuroglancer-settings-scroll-container>label>input:before': {
1841
+ flex: 1,
1842
+ content: '" "',
1843
+ },
1844
+ '.neuroglancer-settings-scroll-container>label>input': {
1845
+ marginLeft: '5px',
1846
+ width: '11ch',
1847
+ },
1848
+ '.neuroglancer-settings-limit-widget>input': { width: '11ch' },
1849
+ '.neuroglancer-annotation-tool-status': {
1850
+ display: 'flex',
1851
+ flexDirection: 'row',
1852
+ alignItems: 'center',
1853
+ overflowX: 'scroll',
1854
+ scrollbarWidth: 'none',
1855
+ },
1856
+ '.neuroglancer-annotation-tool-status::-webkit-scrollbar': {
1857
+ display: 'none',
1858
+ },
1859
+ '.neuroglancer-annotation-tool-status-widget+.neuroglancer-annotation-tool-status-widget': {
1860
+ marginLeft: '3px',
1861
+ },
1862
+ '.neuroglancer-annotation-tool-status-widget:hover': {
1863
+ outline: '1px solid #fff',
1864
+ },
1865
+ '.neuroglancer-annotation-tool-status-widget': {
1866
+ display: 'flex',
1867
+ flexDirection: 'row',
1868
+ alignItems: 'center',
1869
+ },
1870
+ '.neuroglancer-annotation-tool-status-widget-layer-number': {
1871
+ display: 'inline-block',
1872
+ font: '10pt sans-serif',
1873
+ fontWeight: 'bold',
1874
+ backgroundColor: '#9a7518',
1875
+ },
1876
+ '.neuroglancer-annotation-tool-status-widget-key': {
1877
+ display: 'inline-block',
1878
+ font: '9pt monospace',
1879
+ color: '#0ff',
1880
+ },
1881
+ '.neuroglancer-annotation-tool-status-widget-key:before': { content: '"["' },
1882
+ '.neuroglancer-annotation-tool-status-widget-key:after': { content: '"]"' },
1883
+ '.neuroglancer-annotation-tool-status-widget-key:before, .neuroglancer-annotation-tool-status-widget-key:after': {
1884
+ color: '#999',
1885
+ },
1886
+ '.neuroglancer-annotation-tool-status-widget-description': {
1887
+ display: 'inline-block',
1888
+ color: '#3c3',
1889
+ font: '10pt sans-serif',
1890
+ whiteSpace: 'nowrap',
1891
+ },
1892
+ '.neuroglancer-annotation-tool-status-widget-delete': {
1893
+ visibility: 'hidden',
1894
+ },
1895
+ '.neuroglancer-annotation-tool-status-widget:hover>.neuroglancer-annotation-tool-status-widget-delete': {
1896
+ visibility: 'inherit',
1897
+ },
1898
+ '.neuroglancer-annotations-tab': {
1899
+ display: 'flex',
1900
+ alignItems: 'stretch',
1901
+ flex: 1,
1902
+ flexDirection: 'column',
1903
+ },
1904
+ '.neuroglancer-annotation-list': {
1905
+ position: 'relative',
1906
+ margin: '2px 0 0',
1907
+ padding: '0',
1908
+ overflowY: 'auto',
1909
+ height: '0px',
1910
+ flex: 1,
1911
+ flexBasis: '0px',
1912
+ minHeight: '0px',
1913
+ },
1914
+ '.neuroglancer-annotation-list-entry': {
1915
+ display: 'grid',
1916
+ gridAutoRows: 'min-content',
1917
+ cursor: 'pointer',
1918
+ justifyContent: 'start',
1919
+ },
1920
+ '.neuroglancer-annotation-position': { display: 'contents' },
1921
+ '.neuroglancer-annotation-layer-view': {
1922
+ display: 'flex',
1923
+ flexDirection: 'column',
1924
+ flex: 1,
1925
+ alignItems: 'stretch',
1926
+ },
1927
+ '.neuroglancer-annotation-list-header': {
1928
+ gridAutoRows: 'min-content',
1929
+ display: 'grid',
1930
+ paddingBottom: '2px',
1931
+ justifyContent: 'start',
1932
+ },
1933
+ '.neuroglancer-annotation-coordinate': {
1934
+ fontFamily: 'monospace',
1935
+ textAlign: 'right',
1936
+ },
1937
+ '.neuroglancer-annotation-icon': {
1938
+ gridColumn: 'symbol',
1939
+ paddingRight: '5px',
1940
+ },
1941
+ '.neuroglancer-annotation-description': {
1942
+ gridColumn: 'dim / -1',
1943
+ textOverflow: 'ellipsis',
1944
+ overflow: 'hidden',
1945
+ whiteSpace: 'nowrap',
1946
+ },
1947
+ '.neuroglancer-annotation-list-entry-delete': {
1948
+ gridColumn: 'delete',
1949
+ marginLeft: '1ch',
1950
+ alignSelf: 'start',
1951
+ visibility: 'hidden',
1952
+ },
1953
+ '.neuroglancer-annotation-list-entry:hover>.neuroglancer-annotation-list-entry-delete': {
1954
+ visibility: 'visible',
1955
+ },
1956
+ '.neuroglancer-annotation-hover': { backgroundColor: '#333' },
1957
+ '.neuroglancer-annotation-selected': { backgroundColor: '#939' },
1958
+ '.neuroglancer-annotation-hover.neuroglancer-annotation-selected': {
1959
+ backgroundColor: '#969',
1960
+ },
1961
+ '.neuroglancer-tab-content.neuroglancer-annotation-details': {
1962
+ flex: '0 0 auto',
1963
+ alignSelf: 'stretch',
1964
+ display: 'flex',
1965
+ flexDirection: 'column',
1966
+ WebkitTouchCallout: 'default',
1967
+ WebkitUserSelect: 'text',
1968
+ KhtmlUserSelect: 'text',
1969
+ MozUserSelect: 'text',
1970
+ msUserSelect: 'text',
1971
+ userSelect: 'text',
1972
+ },
1973
+ '.neuroglancer-annotation-details-title': {
1974
+ display: 'flex',
1975
+ flexDirection: 'row',
1976
+ backgroundColor: '#03c',
1977
+ alignSelf: 'stretch',
1978
+ padding: '2px',
1979
+ },
1980
+ '.neuroglancer-voxel-coordinates-link': { cursor: 'pointer' },
1981
+ '.neuroglancer-voxel-coordinates-link:hover': { backgroundColor: '#db4437' },
1982
+ '.neuroglancer-annotation-details-icon': {
1983
+ display: 'inline-block',
1984
+ marginRight: '5px',
1985
+ },
1986
+ '.neuroglancer-annotation-details-title-text': {
1987
+ display: 'inline-block',
1988
+ flex: 1,
1989
+ },
1990
+ 'textarea.neuroglancer-annotation-details-description': {
1991
+ alignSelf: 'stretch',
1992
+ backgroundColor: '#222',
1993
+ color: '#fff',
1994
+ font: '10pt sans-serif',
1995
+ border: '0px',
1996
+ outline: '0px',
1997
+ resize: 'none',
1998
+ overflowY: 'scroll',
1999
+ },
2000
+ 'div.neuroglancer-annotation-details-description': {
2001
+ alignSelf: 'stretch',
2002
+ color: '#fff',
2003
+ font: '10pt sans-serif',
2004
+ },
2005
+ '.neuroglancer-annotation-toolbox': {
2006
+ display: 'flex',
2007
+ alignItems: 'stretch',
2008
+ },
2009
+ '.neuroglancer-annotation-segment-item': {
2010
+ color: '#000',
2011
+ backgroundColor: '#fff',
2012
+ },
2013
+ '.neuroglancer-annotations-view-dimension': {
2014
+ fontFamily: 'monospace',
2015
+ textAlign: 'right',
2016
+ },
2017
+ '.neuroglancer-annotations-view-dimension-name': { color: '#ff6' },
2018
+ '.neuroglancer-annotations-view-dimension-scale': { color: '#bbb' },
2019
+ '.neuroglancer-annotations-view-dimension-scale:not(:empty):before': {
2020
+ content: '"("',
2021
+ marginLeft: '1ch',
2022
+ },
2023
+ '.neuroglancer-annotations-view-dimension-scale:not(:empty):after': {
2024
+ content: '")"',
2025
+ },
2026
+ '.neuroglancer-annotation-relationship-label, .neuroglancer-annotation-property-label': {
2027
+ marginRight: '5px',
2028
+ },
2029
+ '.neuroglancer-selected-annotation-details-position-grid': {
2030
+ display: 'grid',
2031
+ gridAutoRows: 'auto',
2032
+ fontFamily: 'monospace',
2033
+ fontSize: 'medium',
2034
+ gridAutoFlow: 'dense',
2035
+ },
2036
+ '.neuroglancer-selected-annotation-details-icon': {
2037
+ gridRows: '1 / -1',
2038
+ gridColumn: 'icon',
2039
+ alignSelf: 'start',
2040
+ },
2041
+ '.neuroglancer-selected-annotation-details-delete': {
2042
+ gridRows: '1 / -1',
2043
+ gridColumn: 'delete',
2044
+ alignSelf: 'start',
2045
+ },
2046
+ '.neuroglancer-selected-annotation-details-position-dim': {
2047
+ color: '#ff6',
2048
+ marginLeft: '1ch',
2049
+ },
2050
+ '.neuroglancer-selected-annotation-details-position-coord': {
2051
+ textAlign: 'right',
2052
+ marginLeft: '.5ch',
2053
+ },
2054
+ '.neuroglancer-related-segment-list-title': {
2055
+ fontFamily: 'sans-serif',
2056
+ fontSize: 'small',
2057
+ backgroundColor: '#333',
2058
+ },
2059
+ '.neuroglancer-related-segment-list-header': {
2060
+ display: 'flex',
2061
+ flexDirection: 'row',
2062
+ },
2063
+ '.neuroglancer-annotation-property': {
2064
+ display: 'flex',
2065
+ flexDirection: 'row',
2066
+ fontFamily: 'sans-serif',
2067
+ fontSize: 'small',
2068
+ },
2069
+ '.neuroglancer-annotation-property-label': { color: '#999' },
2070
+ '.neuroglancer-annotation-property-value': {
2071
+ textAlign: 'right',
2072
+ fontFamily: 'monospace',
2073
+ fontSize: 'medium',
2074
+ flex: 1,
2075
+ },
2076
+ 'input.neuroglancer-segment-list-entry-id': {
2077
+ outline: '0px',
2078
+ border: '0px',
2079
+ textAlign: 'left',
2080
+ },
2081
+ '.neuroglancer-segment-list-entry-new>.neuroglancer-segment-list-entry-copy': {
2082
+ visibility: 'hidden',
2083
+ },
2084
+ '.neuroglancer-segment-list-entry-new>input[type=checkbox]': {
2085
+ visibility: 'hidden',
2086
+ },
2087
+ '.neuroglancer-segment-list-entry-delete': { order: 0 },
2088
+ '.neuroglancer-selection-annotation-status': {
2089
+ fontFamily: 'sans-serif',
2090
+ fontSize: 'small',
2091
+ },
2092
+ '.neuroglancer-channel-dimensions-widget-dim': { display: 'contents' },
2093
+ '.neuroglancer-channel-dimensions-widget': {
2094
+ display: 'grid',
2095
+ gridTemplateColumns: '[name] min-content [lower] min-content [upper] min-content',
2096
+ },
2097
+ '.neuroglancer-channel-dimensions-widget-name-container': {
2098
+ gridColumn: 'name',
2099
+ },
2100
+ '.neuroglancer-channel-dimensions-widget-name[data-is-valid=false], .neuroglancer-channel-dimensions-widget-name::placeholder': {
2101
+ textDecoration: 'solid underline red',
2102
+ },
2103
+ '.neuroglancer-channel-dimensions-widget-name': {
2104
+ backgroundColor: 'transparent',
2105
+ borderColor: 'transparent',
2106
+ boxShadow: 'none',
2107
+ border: '0',
2108
+ margin: '0',
2109
+ fontFamily: 'monospace',
2110
+ fontSize: 'medium',
2111
+ color: '#ff6',
2112
+ },
2113
+ '.neuroglancer-channel-dimensions-widget-name, .neuroglancer-channel-dimensions-widget-lower, .neuroglancer-channel-dimensions-widget-upper': {
2114
+ fontFamily: 'monospace',
2115
+ },
2116
+ '.neuroglancer-channel-dimensions-widget-lower': {
2117
+ gridColumn: 'lower',
2118
+ textAlign: 'right',
2119
+ },
2120
+ '.neuroglancer-channel-dimensions-widget-upper': {
2121
+ gridColumn: 'upper',
2122
+ textAlign: 'right',
2123
+ },
2124
+ '.neuroglancer-channel-dimensions-widget-lower, .neuroglancer-channel-dimensions-widget-upper': {
2125
+ textAlign: 'right',
2126
+ marginLeft: '1ch',
2127
+ userSelect: 'text',
2128
+ },
2129
+ '.neuroglancer-channel-dimensions-widget-upper:after': { content: '")"' },
2130
+ '.neuroglancer-channel-dimensions-widget-lower:after': { content: '","' },
2131
+ '.neuroglancer-channel-dimensions-widget-lower:before': { content: '"["' },
2132
+ '.neuroglancer-channel-dimensions-widget-upper:after, .neuroglancer-channel-dimensions-widget-lower:before, .neuroglancer-channel-dimensions-widget-lower:after': {
2133
+ color: '#999',
2134
+ },
2135
+ '.neuroglancer-layer-options-control-container .neuroglancer-layer-control-label-container': {
2136
+ marginRight: 'auto',
2137
+ },
2138
+ '.neuroglancer-layer-control-label-container': { whiteSpace: 'nowrap' },
2139
+ '.neuroglancer-layer-control-label': {
2140
+ display: 'flex',
2141
+ flexDirection: 'row',
2142
+ alignItems: 'center',
2143
+ },
2144
+ '.neuroglancer-layer-control-label-text-container': {
2145
+ display: 'flex',
2146
+ flexDirection: 'row',
2147
+ alignItems: 'start',
2148
+ },
2149
+ '.neuroglancer-layer-control-container': {
2150
+ marginTop: '1.5px',
2151
+ marginBottom: '1.5px',
2152
+ display: 'flex',
2153
+ flexDirection: 'row',
2154
+ alignItems: 'center',
2155
+ },
2156
+ '.neuroglancer-layer-control-control': {
2157
+ flex: 1,
2158
+ marginLeft: '5px',
2159
+ maxWidth: '500px',
2160
+ },
2161
+ 'select.neuroglancer-layer-control-control, input[type=checkbox].neuroglancer-layer-control-control, input[type=color].neuroglancer-layer-control-control': {
2162
+ flex: 'initial',
2163
+ },
2164
+ '.range-slider': {
2165
+ display: 'flex',
2166
+ flexDirection: 'row',
2167
+ whiteSpace: 'nowrap',
2168
+ justifyContent: 'flex-end',
2169
+ },
2170
+ '.range-slider input[type=range]': {
2171
+ background: 'transparent',
2172
+ flexBasis: '0px',
2173
+ },
2174
+ '.range-slider input[type=number]': {
2175
+ backgroundColor: '#ffffff4d',
2176
+ color: '#fff',
2177
+ border: '0px',
2178
+ },
2179
+ '.range-slider input[type=range]::-moz-range-track': {
2180
+ backgroundColor: '#fff',
2181
+ },
2182
+ '.neuroglancer-render-scale-widget': {
2183
+ marginTop: '2px',
2184
+ marginBottom: '2px',
2185
+ display: 'flex',
2186
+ flexDirection: 'row',
2187
+ alignItems: 'center',
2188
+ },
2189
+ '.neuroglancer-render-scale-widget-prompt': { whiteSpace: 'nowrap' },
2190
+ '.neuroglancer-render-scale-widget>canvas': {
2191
+ height: '36px',
2192
+ flex: 1,
2193
+ flexBasis: '0px',
2194
+ width: '0px',
2195
+ },
2196
+ '.neuroglancer-render-scale-widget-legend': {
2197
+ width: '10ch',
2198
+ fontSize: '11px',
2199
+ textAlign: 'right',
2200
+ },
2201
+ '.neuroglancer-render-scale-widget-legend>div': { height: '12px' },
2202
+ '.neuroglancer-shader-code-widget.invalid-input': { border: '1px solid red' },
2203
+ '.neuroglancer-shader-code-widget.valid-input': { border: '1px solid green' },
2204
+ '.neuroglancer-shader-code-widget': { border: '1px solid transparent' },
2205
+ '.neuroglancer-invlerp-cdfpanel': { height: '50px', cursor: 'ew-resize' },
2206
+ '.neuroglancer-invlerp-cdfpanel, .neuroglancer-invlerp-legend-panel': {
2207
+ border: '1px solid #666',
2208
+ },
2209
+ '.neuroglancer-invlerp-legend-panel': { height: '15px' },
2210
+ '.neuroglancer-invlerp-widget-bound': {
2211
+ backgroundColor: 'transparent',
2212
+ borderColor: 'transparent',
2213
+ boxShadow: 'none',
2214
+ border: '0',
2215
+ margin: '0',
2216
+ fontFamily: 'monospace',
2217
+ fontSize: 'medium',
2218
+ },
2219
+ '.neuroglancer-invlerp-widget-window-bound': { color: '#0ff' },
2220
+ '.neuroglancer-invlerp-widget-range-bound': { color: '#fff' },
2221
+ '.neuroglancer-invlerp-widget-bounds': { display: 'flex' },
2222
+ '.neuroglancer-invlerp-widget-range-spacer': { flex: 1, textAlign: 'center' },
2223
+ '.neuroglancer-invlerp-widget-window-bounds': {
2224
+ justifyContent: 'space-between',
2225
+ },
2226
+ '.neuroglancer-segmentation-rendering-tab': {
2227
+ display: 'flex',
2228
+ flexDirection: 'column',
2229
+ overflowY: 'auto',
2230
+ },
2231
+ '.neuroglancer-segmentation-rendering-tab .neuroglancer-shader-code-widget': {
2232
+ height: '6em',
2233
+ },
2234
+ '.neuroglancer-segmentation-dropdown-skeleton-shader-header': {
2235
+ display: 'flex',
2236
+ flexDirection: 'row',
2237
+ alignItems: 'center',
2238
+ },
2239
+ '.neuroglancer-segmentation-layer-skeleton-shader-overlay .neuroglancer-shader-code-widget': {
2240
+ width: '80vw',
2241
+ height: '80vh',
2242
+ },
2243
+ '.neuroglancer-segment-list-entry': {
2244
+ display: 'flex',
2245
+ flexDirection: 'row',
2246
+ width: 'min-content',
2247
+ minWidth: '100%',
2248
+ backgroundColor: '#000',
2249
+ alignItems: 'start',
2250
+ },
2251
+ '.neuroglancer-segment-list-entry.neuroglancer-segment-list-entry-double-line': {
2252
+ display: 'inline-flex',
2253
+ minWidth: 'initial',
2254
+ backgroundColor: 'initial',
2255
+ },
2256
+ '.neuroglancer-segment-list-entry[data-selected=true], .neuroglancer-selection-details-segment[data-selected=true]': {
2257
+ backgroundColor: '#222',
2258
+ },
2259
+ '.neuroglancer-segment-list-entry-copy-container': {
2260
+ display: 'flex',
2261
+ flexDirection: 'column',
2262
+ },
2263
+ '.neuroglancer-segment-list-entry-id-container': {
2264
+ order: 1,
2265
+ alignSelf: 'center',
2266
+ },
2267
+ '.neuroglancer-segment-list-entry-id, .neuroglancer-selection-details-segment-id': {
2268
+ display: 'block',
2269
+ fontFamily: 'monospace',
2270
+ fontSize: 'medium',
2271
+ flexShrink: 0,
2272
+ textAlign: 'right',
2273
+ color: '#000',
2274
+ backgroundColor: '#fff',
2275
+ userSelect: 'text',
2276
+ width: 'var(--neuroglancer-segment-list-width)',
2277
+ },
2278
+ '.neuroglancer-segment-list .neuroglancer-segment-list-entry-sticky': {
2279
+ position: 'sticky',
2280
+ left: '0',
2281
+ },
2282
+ '.neuroglancer-segment-list-entry-sticky': {
2283
+ whiteSpace: 'nowrap',
2284
+ flexDirection: 'row',
2285
+ alignItems: 'start',
2286
+ backgroundColor: 'inherit',
2287
+ display: 'flex',
2288
+ },
2289
+ '.neuroglancer-segment-list-entry-extra-property': {
2290
+ paddingLeft: '8px',
2291
+ flexShrink: 0,
2292
+ textAlign: 'right',
2293
+ userSelect: 'text',
2294
+ },
2295
+ '.neuroglancer-selection-details-segment-description, .neuroglancer-selection-details-segment-property': {
2296
+ fontFamily: 'sans-serif',
2297
+ fontSize: 'small',
2298
+ },
2299
+ '.neuroglancer-selection-details-segment-property': {
2300
+ display: 'flex',
2301
+ flexDirection: 'row',
2302
+ },
2303
+ '.neuroglancer-selection-details-segment-property-name': {
2304
+ userSelect: 'text',
2305
+ fontStyle: 'italic',
2306
+ },
2307
+ '.neuroglancer-selection-details-segment-property-value': {
2308
+ textAlign: 'right',
2309
+ flex: 1,
2310
+ },
2311
+ '.neuroglancer-segmentation-toolbox': { display: 'inline-block' },
2312
+ '.neuroglancer-segmentation-toolbox .neuroglancer-tool-button+.neuroglancer-tool-button': {
2313
+ marginLeft: '1em',
2314
+ },
2315
+ '.neuroglancer-segment-list': {
2316
+ position: 'relative',
2317
+ overflowY: 'auto',
2318
+ overflowX: 'scroll',
2319
+ flex: 1,
2320
+ },
2321
+ '.neuroglancer-segment-display-tab': {
2322
+ display: 'flex',
2323
+ flexDirection: 'column',
2324
+ },
2325
+ '.neuroglancer-segment-query-errors': {
2326
+ margin: '0',
2327
+ listStyleType: 'none',
2328
+ padding: '0 0 0 3px',
2329
+ backgroundColor: '#333',
2330
+ },
2331
+ '.neuroglancer-segment-query-errors>li': { display: 'block', color: 'red' },
2332
+ '.neuroglancer-segment-list-entry:not(.neuroglancer-segment-list-entry-double-line) .neuroglancer-segment-list-entry-unmapped-id:empty+.neuroglancer-segment-list-entry-copy': {
2333
+ display: 'none',
2334
+ },
2335
+ '.neuroglancer-segment-list-entry.neuroglancer-segment-list-entry-double-line .neuroglancer-segment-list-entry-unmapped-id:empty+.neuroglancer-segment-list-entry-copy': {
2336
+ visibility: 'hidden',
2337
+ },
2338
+ '.neuroglancer-segment-list-entry-name:empty+.neuroglancer-segment-list-entry-filter': {
2339
+ display: 'none',
2340
+ },
2341
+ '.neuroglancer-segment-list-entry-name': {
2342
+ order: 1000,
2343
+ display: 'inline-block',
2344
+ fontFamily: 'monospace',
2345
+ fontSize: 'medium',
2346
+ userSelect: 'text',
2347
+ whiteSpace: 'nowrap',
2348
+ },
2349
+ '.neuroglancer-segment-list-query': {
2350
+ backgroundColor: '#151515',
2351
+ color: '#fff',
2352
+ fontFamily: 'monospace',
2353
+ fontSize: 'medium',
2354
+ border: '2px solid #333',
2355
+ padding: '2px',
2356
+ outline: '0px',
2357
+ },
2358
+ '.neuroglancer-segment-list-query::placeholder': { color: '#aaa' },
2359
+ '.neuroglancer-segment-list-status': {
2360
+ display: 'flex',
2361
+ flexDirection: 'row',
2362
+ alignItems: 'center',
2363
+ backgroundColor: '#333',
2364
+ },
2365
+ '.neuroglancer-segment-list-entry-copy': { order: -2, visibility: 'hidden' },
2366
+ '.neuroglancer-segment-list-entry:hover .neuroglancer-segment-list-entry-copy': {
2367
+ visibility: 'visible',
2368
+ },
2369
+ '.neuroglancer-segment-list-entry-visible-checkbox': { order: -1 },
2370
+ '.neuroglancer-segment-list-entry[data-visible-list] .neuroglancer-segment-list-entry-sticky:before': {
2371
+ order: -1000,
2372
+ content: '" "',
2373
+ display: 'inline-block',
2374
+ width: '2px',
2375
+ flexShrink: 0,
2376
+ marginRight: '-2px',
2377
+ alignSelf: 'stretch',
2378
+ marginBottom: '2px',
2379
+ backgroundColor: '#999',
2380
+ },
2381
+ '.neuroglancer-segment-list-entry-filter': {
2382
+ visibility: 'hidden',
2383
+ gridColumn: 'filter',
2384
+ order: 999,
2385
+ },
2386
+ '.neuroglancer-segment-list-entry:hover .neuroglancer-segment-list-entry-filter': {
2387
+ visibility: 'visible',
2388
+ },
2389
+ '.neuroglancer-segment-query-result-tag-list': {
2390
+ display: 'grid',
2391
+ gridAutoRows: 'auto',
2392
+ gridTemplateColumns: '[include] min-content [exclude] min-content [tag] 1fr [count] min-content',
2393
+ },
2394
+ '.neuroglancer-segment-query-result-tag': { display: 'contents' },
2395
+ '.neuroglancer-segment-query-result-tag:hover *': { backgroundColor: '#222' },
2396
+ '.neuroglancer-segment-query-result-tag-name': {
2397
+ gridColumn: 'tag',
2398
+ whiteSpace: 'nowrap',
2399
+ cursor: 'pointer',
2400
+ fontWeight: 'bold',
2401
+ },
2402
+ '.neuroglancer-segment-query-result-tag-name:before': {
2403
+ content: '"#"',
2404
+ color: '#aaa',
2405
+ fontWeight: 'normal',
2406
+ },
2407
+ '.neuroglancer-segment-query-result-tag-toggle': {
2408
+ display: 'inline-block',
2409
+ whiteSpace: 'nowrap',
2410
+ },
2411
+ '.neuroglancer-segment-query-result-tag-include': { gridColumn: 'include' },
2412
+ '.neuroglancer-segment-query-result-tag-exclude': { gridColumn: 'exclude' },
2413
+ '.neuroglancer-segment-query-result-statistics': {
2414
+ backgroundColor: '#333',
2415
+ maxHeight: '40%',
2416
+ flexShrink: 0,
2417
+ overflow: 'auto',
2418
+ },
2419
+ '.neuroglancer-segment-query-result-statistics:not(:empty)': {
2420
+ paddingTop: '3px',
2421
+ },
2422
+ '.neuroglancer-segment-query-result-statistics:not(:empty)+.neuroglancer-segment-list-status': {
2423
+ borderTop: '1px solid white',
2424
+ },
2425
+ '.neuroglancer-segment-query-result-statistics-separator': {
2426
+ height: '3px',
2427
+ backgroundColor: '#333',
2428
+ borderBottom: '1px solid white',
2429
+ },
2430
+ '.neuroglancer-segment-query-result-tag-count': {
2431
+ gridColumn: 'count',
2432
+ textAlign: 'right',
2433
+ },
2434
+ '.neuroglancer-segment-query-result-tag-count:not(:empty):before': {
2435
+ content: '"("',
2436
+ color: '#aaa',
2437
+ },
2438
+ '.neuroglancer-segment-query-result-tag-count:not(:empty):after': {
2439
+ content: '")"',
2440
+ color: '#aaa',
2441
+ },
2442
+ '.neuroglancer-segment-query-result-numerical-list': {
2443
+ display: 'flex',
2444
+ flexDirection: 'column',
2445
+ },
2446
+ '.neuroglancer-segment-query-result-numerical-plot-container': {
2447
+ justifySelf: 'stretch',
2448
+ display: 'flex',
2449
+ flexDirection: 'column',
2450
+ padding: '2px',
2451
+ },
2452
+ '.neuroglancer-segment-query-result-numerical-plot': {
2453
+ display: 'block',
2454
+ height: '30px',
2455
+ cursor: 'ew-resize',
2456
+ justifySelf: 'stretch',
2457
+ border: '1px solid #666',
2458
+ },
2459
+ '.neuroglancer-segment-query-result-numerical-plot-bound': {
2460
+ backgroundColor: 'transparent',
2461
+ borderColor: 'transparent',
2462
+ boxShadow: 'none',
2463
+ border: '0',
2464
+ margin: '0',
2465
+ font: '10pt sans-serif',
2466
+ pointerEvents: 'auto',
2467
+ },
2468
+ '.neuroglancer-segment-query-result-numerical-plot-window-bound': {
2469
+ color: '#0ff',
2470
+ },
2471
+ '.neuroglancer-segment-query-result-numerical-plot-range-bound': {
2472
+ color: '#fff',
2473
+ },
2474
+ '.neuroglancer-segment-query-result-numerical-plot-bounds': {
2475
+ display: 'flex',
2476
+ flexDirection: 'row',
2477
+ color: '#aaa',
2478
+ },
2479
+ '.neuroglancer-segment-query-result-numerical-plot-bound-constraint-symbol': {
2480
+ alignSelf: 'center',
2481
+ },
2482
+ '.neuroglancer-segment-query-result-numerical-plot-bound-constraint-spacer': {
2483
+ flex: 1,
2484
+ color: '#fff',
2485
+ fontWeight: 'bold',
2486
+ display: 'flex',
2487
+ flexDirection: 'row',
2488
+ justifyContent: 'center',
2489
+ alignItems: 'center',
2490
+ },
2491
+ '.neuroglancer-segment-query-result-numerical-plot-label': {
2492
+ cursor: 'pointer',
2493
+ },
2494
+ '.neuroglancer-segment-query-result-numerical-plot-sort, .neuroglancer-segment-list-header-label-sort': {
2495
+ visibility: 'hidden',
2496
+ },
2497
+ '.neuroglancer-segment-query-result-numerical-plot-label:hover .neuroglancer-segment-query-result-numerical-plot-sort, .neuroglancer-segment-list-header-label:hover .neuroglancer-segment-list-header-label-sort': {
2498
+ visibility: 'visible',
2499
+ },
2500
+ '.neuroglancer-segment-query-result-numerical-plot-container:hover .neuroglancer-segment-query-result-numerical-plot-bounds-window': {
2501
+ visibility: 'visible',
2502
+ },
2503
+ '.neuroglancer-segment-query-result-numerical-plot-bounds-window': {
2504
+ justifyContent: 'space-between',
2505
+ marginTop: '-16px',
2506
+ visibility: 'hidden',
2507
+ pointerEvents: 'none',
2508
+ },
2509
+ '.neuroglancer-segment-list-entry.neuroglancer-segment-list-header': {
2510
+ backgroundColor: '#666',
2511
+ },
2512
+ '.neuroglancer-segment-list-header .neuroglancer-segment-list-entry-id': {
2513
+ backgroundColor: 'inherit',
2514
+ color: '#fff',
2515
+ textAlign: 'center',
2516
+ },
2517
+ '.neuroglancer-segment-list-header-label': {
2518
+ cursor: 'pointer',
2519
+ font: '10pt sans-serif',
2520
+ },
2521
+ '.neuroglancer-segment-list-header .neuroglancer-segment-list-entry-extra-property': {
2522
+ textAlign: 'center',
2523
+ },
2524
+ '.neuroglancer-merge-segments-status': {
2525
+ display: 'flex',
2526
+ flexDirection: 'row',
2527
+ },
2528
+ '.neuroglancer-merge-segments-status .neuroglancer-segment-list-entry': {
2529
+ marginLeft: '1em',
2530
+ marginRight: '1em',
2531
+ },
2532
+ '.neuroglancer-linked-layer-widget-layer': {
2533
+ display: 'flex',
2534
+ flexDirection: 'row',
2535
+ },
2536
+ '.neuroglancer-linked-layer-widget-layer:hover': { backgroundColor: '#333' },
2537
+ '.neuroglancer-segmentation-color-seed-control': {
2538
+ display: 'flex',
2539
+ flexDirection: 'row',
2540
+ alignItems: 'center',
2541
+ justifyContent: 'flex-end',
2542
+ },
2543
+ '.neuroglancer-segmentation-color-seed-control input': {
2544
+ backgroundColor: '#ffffff4d',
2545
+ color: '#fff',
2546
+ border: '0px',
2547
+ },
2548
+ '.neuroglancer-single-mesh-dropdown .neuroglancer-single-mesh-attribute-widget': {
2549
+ maxHeight: '6em',
2550
+ marginBottom: '8px',
2551
+ },
2552
+ '.neuroglancer-single-mesh-dropdown .neuroglancer-shader-code-widget': {
2553
+ height: '6em',
2554
+ width: '60ch',
2555
+ border: '1px solid transparent',
2556
+ },
2557
+ '.neuroglancer-single-mesh-dropdown-top-row': {
2558
+ display: 'flex',
2559
+ flexDirection: 'row',
2560
+ alignItems: 'center',
2561
+ },
2562
+ '.neuroglancer-single-mesh-shader-overlay .neuroglancer-shader-code-widget': {
2563
+ width: '80vw',
2564
+ height: '80vh',
2565
+ },
2566
+ '.neuroglancer-single-mesh-attribute-widget': {
2567
+ wordWrap: 'break-word',
2568
+ overflowY: 'auto',
2569
+ display: 'grid',
2570
+ gridTemplateColumns: '[type] auto [name] auto [range] auto',
2571
+ },
2572
+ '.neuroglancer-single-mesh-layer-shader-overlay .neuroglancer-single-mesh-attribute-widget': {
2573
+ maxHeight: '20vh',
2574
+ },
2575
+ '.neuroglancer-single-mesh-attribute': {
2576
+ fontFamily: 'monospace',
2577
+ display: 'contents',
2578
+ },
2579
+ '.neuroglancer-single-mesh-attribute-type': {
2580
+ color: '#c6c',
2581
+ gridColumn: 'type',
2582
+ },
2583
+ '.neuroglancer-single-mesh-attribute-name': {
2584
+ marginLeft: '1ch',
2585
+ color: '#fff',
2586
+ gridColumn: 'name',
2587
+ userSelect: 'text',
2588
+ },
2589
+ '.neuroglancer-single-mesh-attribute-range': {
2590
+ marginLeft: '1ch',
2591
+ whiteSpace: 'nowrap',
2592
+ color: '#999',
2593
+ gridColumn: 'range',
2594
+ },
2595
+ '.neuroglancer-annotation-rendering-tab': {
2596
+ display: 'flex',
2597
+ flexDirection: 'column',
2598
+ overflowY: 'auto',
2599
+ },
2600
+ '.neuroglancer-annotation-rendering-tab .neuroglancer-shader-code-widget': {
2601
+ flexShrink: 0,
2602
+ },
2603
+ '.neuroglancer-annotation-shader-property-list': {
2604
+ maxHeight: '8em',
2605
+ overflow: 'auto',
2606
+ flexShrink: 0,
2607
+ },
2608
+ '.neuroglancer-annotation-shader-property': {
2609
+ whiteSpace: 'pre',
2610
+ fontFamily: 'monospace',
2611
+ fontSize: 'medium',
2612
+ },
2613
+ '.neuroglancer-annotation-shader-property-type': {
2614
+ color: '#c6c',
2615
+ marginRight: '1ch',
2616
+ },
2617
+ '.neuroglancer-annotation-shader-property-identifier': { userSelect: 'text' },
2618
+ '.neuroglancer-annotation-shader-property-identifier:after': {
2619
+ content: '"()"',
2620
+ color: '#999',
2621
+ },
2622
+ }),
2623
+ },
2624
+ }));