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