-
-
Notifications
You must be signed in to change notification settings - Fork 567
Expand file tree
/
Copy pathindex.css
More file actions
3680 lines (3170 loc) · 115 KB
/
Copy pathindex.css
File metadata and controls
3680 lines (3170 loc) · 115 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
@import "@geolibre/ui/globals.css";
/* Supplies the custom-color/border-radius theme that @geolibre/ui's globals.css
relies on via @apply (background, border, etc.). globals.css is intentionally
config-agnostic; the consuming app provides the Tailwind config here. */
@config "../tailwind.config.js";
/* App typeface: IBM Plex Sans for UI, IBM Plex Mono for the numeric/coordinate
readouts (StatusBar, code, feature IDs). One matched superfamily, so the mono
readouts and the surrounding UI share a voice. The @font-face rules are
loaded from main.tsx — see the note there for why they cannot be @imported
here. Self-hosted rather than CDN-loaded: the desktop build must render
offline, and the Tauri CSP is `default-src 'self'`.
This block drives both the `font-sans`/`font-mono` utilities and Tailwind's
preflight default, so no `font-family` on <body> is needed.
Plex covers latin, latin-ext, cyrillic, greek and vietnamese only. The
locales it does NOT cover (ar, fa, hi, ja, ka, ko, th, zh) rely on per-glyph
fallback to the system stack below — which is why that stack must stay a
full, ordered list rather than a bare `sans-serif`. */
@theme {
--font-sans:
"IBM Plex Sans Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
"Noto Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
--font-mono:
"IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
html,
body,
#root {
height: 100%;
margin: 0;
overflow: hidden;
}
/* Keep the app chrome out from under mobile system bars and display cutouts.
With viewport-fit=cover (see index.html) the webview draws edge-to-edge on
Android/iOS, so without this the top toolbar renders under the status bar —
where the system intercepts taps, making those menu buttons unclickable. The
insets are 0 on desktop/web, so this only affects mobile. */
#root {
box-sizing: border-box;
padding-top: env(safe-area-inset-top);
padding-bottom: env(safe-area-inset-bottom);
padding-left: env(safe-area-inset-left);
padding-right: env(safe-area-inset-right);
}
/* MapLibre anchors its controls with physical left/right CSS, so when the app
runs in a right-to-left locale (html[dir="rtl"]) the inherited direction
would half-mirror the map chrome (control rows, attribution) while the
corners stay put. Pin only MapLibre's own control container to ltr — NOT the
whole `.maplibregl-map` subtree, which also hosts app overlays portalled into
the map container (e.g. StoryMapPresenter); those must stay free to mirror in
RTL. Control text still shapes correctly via the Unicode bidi algorithm. */
.maplibregl-control-container {
direction: ltr;
}
.geoagent-control .geoagent-control-toggle {
align-items: center;
display: flex;
justify-content: center;
}
.geoagent-control .geoagent-control-icon {
align-items: center;
display: flex;
height: 100%;
justify-content: center;
width: 100%;
}
.geoagent-control .geoagent-control-icon svg {
transform: translateX(1px);
}
.geoagent-panel input:focus,
.geoagent-panel select:focus,
.geoagent-panel textarea:focus,
.geoagent-panel input:focus-visible,
.geoagent-panel select:focus-visible,
.geoagent-panel textarea:focus-visible {
border-color: #2f8f85;
box-shadow: inset 0 0 0 1px #2f8f85;
outline: none;
}
/* The Earth Engine "Sign in" button is injected between the project grid and
the status text inside the (un-padded) details element, so inset it to match
the 10px gutter of the surrounding content and space it from the status. */
.geoagent-panel button.geolibre-ee-sign-in {
margin: 0 10px 8px;
min-height: 32px;
padding: 0 12px;
border: 1px solid #d7dde5;
border-radius: 6px;
background: #fff;
color: #17202a;
font-weight: 700;
cursor: pointer;
}
.geoagent-panel button.geolibre-ee-sign-in:hover {
border-color: #b0bec5;
background: #f1f5f9;
}
.geoagent-panel button.geolibre-ee-sign-in:focus-visible {
border-color: #2f8f85;
box-shadow: inset 0 0 0 1px #2f8f85;
outline: none;
}
.geoagent-panel button.geolibre-ee-sign-in:disabled {
cursor: not-allowed;
opacity: 0.55;
}
.geo-editor-control .geo-editor-tool-button {
align-items: center;
box-sizing: border-box;
display: flex !important;
justify-content: center;
line-height: 0;
padding: 0;
}
.geo-editor-control .geo-editor-tool-button svg {
display: block;
flex: 0 0 auto;
margin: 0;
}
.geo-editor-control .geo-editor-tool-button[data-mode="text_marker"] svg {
height: 24px;
width: 24px;
}
.geo-editor-control .geo-editor-tool-button[data-mode="text_marker"] svg text {
font-size: 18px;
}
/*
* Historical Imagery (Esri Wayback) control. The upstream package ships a
* light-only stylesheet of hardcoded literal colors with no `.dark` /
* prefers-color-scheme rules, so pin its `color-scheme` per theme and remap the
* toggle icon and expanded panel onto the app's design tokens under `.dark` so
* it tracks GeoLibre's in-app light/dark toggle in both directions. index.css is
* imported after the component stylesheet, so these rules win the cascade.
*/
.geolibre-esri-wayback-control,
.esri-wayback-control-panel {
color-scheme: light;
}
.dark .geolibre-esri-wayback-control,
.dark .esri-wayback-control-panel {
color-scheme: dark;
}
.esri-wayback-control-panel .esri-wayback-range {
accent-color: #2b7bb9;
}
.esri-wayback-control-panel .esri-wayback-input {
background-color: #fff !important;
color: #111827 !important;
}
.esri-wayback-control-panel .esri-wayback-input::placeholder {
color: #6b7280 !important;
}
/* Collapsed toggle button and its icon (the icon glyph inherits currentColor). */
.dark .esri-wayback-control,
.dark .esri-wayback-control-toggle {
background: hsl(var(--popover));
color: hsl(var(--popover-foreground));
}
.dark .esri-wayback-control-toggle:hover {
background-color: hsl(var(--accent));
}
.dark .esri-wayback-control-icon svg {
stroke: hsl(var(--popover-foreground));
}
/* Expanded panel surface and chrome. */
.dark .esri-wayback-control-panel {
background: hsl(var(--popover));
box-shadow: 0 12px 32px rgb(0 0 0 / 0.45);
color: hsl(var(--popover-foreground));
}
.dark .esri-wayback-control-header {
border-bottom-color: hsl(var(--border));
color: hsl(var(--foreground));
}
.dark .esri-wayback-control-close {
color: hsl(var(--muted-foreground));
}
.dark .esri-wayback-control-close:hover {
color: hsl(var(--foreground));
}
/* Secondary/muted text throughout the panel. */
.dark .esri-wayback-status,
.dark .esri-wayback-summary-label,
.dark .esri-wayback-summary-detail,
.dark .esri-wayback-release-count,
.dark .esri-wayback-local-changes-status,
.dark .esri-wayback-slider-endpoints,
.dark .esri-wayback-persistent-status,
.dark .esri-wayback-metadata dt {
color: hsl(var(--muted-foreground));
}
.dark .esri-wayback-status-error {
color: hsl(var(--destructive));
}
/* Primary/strong text throughout the panel. */
.dark .esri-wayback-summary-value,
.dark .esri-wayback-label,
.dark .esri-wayback-local-changes-label,
.dark .esri-wayback-metadata h3,
.dark .esri-wayback-metadata dd {
color: hsl(var(--foreground));
}
/* Grouped sub-panels (summary card, slider, persistent-layer box, metadata). */
.dark .esri-wayback-summary {
background: hsl(var(--muted));
border-color: hsl(var(--border));
}
.dark .esri-wayback-slider,
.dark .esri-wayback-persistent {
background: hsl(var(--background));
border-color: hsl(var(--border));
}
.dark .esri-wayback-metadata {
border-top-color: hsl(var(--border));
}
/* Slider step buttons. */
.dark .esri-wayback-slider-button {
background: hsl(var(--background));
border-color: hsl(var(--border));
color: hsl(var(--foreground));
}
.dark .esri-wayback-slider-button:hover:not(:disabled) {
background: hsl(var(--accent));
border-color: hsl(var(--ring));
}
.dark .esri-wayback-slider-button:disabled {
color: hsl(var(--muted-foreground));
}
/* Retarget the native range/checkbox accent (a fixed light-blue above) onto the
theme so the slider control itself tracks dark mode, not just its container. */
.dark .esri-wayback-range,
.dark .esri-wayback-local-changes-checkbox {
accent-color: hsl(var(--primary));
}
/* Persistent-layer name input (higher specificity + !important beats the
forced-light rule above). */
.dark .esri-wayback-control-panel .esri-wayback-input {
background-color: hsl(var(--background)) !important;
border-color: hsl(var(--border));
color: hsl(var(--foreground)) !important;
}
.dark .esri-wayback-control-panel .esri-wayback-input::placeholder {
color: hsl(var(--muted-foreground)) !important;
}
.dark .esri-wayback-input:focus {
border-color: hsl(var(--ring));
box-shadow: 0 0 0 3px hsl(var(--ring) / 0.3);
}
/* "Add layer" primary button. */
.dark .esri-wayback-add-layer-button {
background: hsl(var(--primary));
color: hsl(var(--primary-foreground));
}
.dark .esri-wayback-add-layer-button:hover:not(:disabled) {
background: hsl(var(--primary) / 0.9);
}
.dark .esri-wayback-add-layer-button:disabled {
background: hsl(var(--muted));
color: hsl(var(--muted-foreground));
}
.geolibre-components-control .maplibregl-ctrl-group,
.geolibre-components-control .maplibregl-ctrl {
align-items: center;
display: flex;
justify-content: center;
}
.geolibre-components-control .maplibre-gl-control-grid-content button {
align-items: center;
box-sizing: border-box;
display: flex !important;
justify-content: center;
line-height: 0;
padding: 0;
}
.geolibre-components-control .maplibre-gl-control-grid-content button > svg,
.geolibre-components-control .maplibre-gl-control-grid-content .maplibregl-ctrl-icon {
display: block;
flex: 0 0 auto;
margin: 0 auto;
}
.geolibre-components-control
.maplibre-gl-control-grid-content
button
> span:not(.maplibregl-ctrl-icon) {
align-items: center;
display: flex;
height: 100%;
justify-content: center;
margin: 0;
width: 100%;
}
.geolibre-components-control,
.geolibre-components-control .maplibre-gl-control-grid {
overflow: visible;
}
.geolibre-components-control {
padding: 10px !important;
}
.geolibre-components-control.maplibre-gl-control-grid--collapsed {
height: 29px;
padding: 0 !important;
width: 29px;
}
.geolibre-components-control.maplibre-gl-control-grid--collapsed .maplibre-gl-control-grid-header,
.geolibre-components-control.maplibre-gl-control-grid--collapsed .maplibre-gl-control-grid-wrench {
height: 29px !important;
width: 29px !important;
}
.geolibre-components-control.maplibre-gl-control-grid--collapsed
.maplibre-gl-control-grid-wrench
svg {
height: 16px;
width: 16px;
}
.geolibre-components-control .maplibre-gl-control-grid-content > * {
margin: 4px !important;
}
.geolibre-components-control .maplibre-gl-control-grid-floating-panel {
box-sizing: border-box;
max-width: min(340px, calc(100vw - 32px));
}
.geolibre-components-control .maplibre-gl-control-grid-floating-panel > .maplibregl-ctrl {
margin-left: 0 !important;
margin-right: 0 !important;
}
.geolibre-components-control
.maplibre-gl-control-grid-floating-panel
.maplibre-gl-search-input-wrapper {
gap: 6px !important;
padding-left: 6px !important;
padding-right: 6px !important;
width: 100% !important;
}
.geolibre-components-control .maplibre-gl-control-grid-floating-panel > .maplibre-gl-search {
display: block !important;
justify-content: normal !important;
}
.maplibregl-ctrl-top-left .geolibre-components-control .maplibre-gl-control-grid-floating-panel,
.maplibregl-ctrl-bottom-left .geolibre-components-control .maplibre-gl-control-grid-floating-panel {
left: 0 !important;
max-width: 100% !important;
right: auto !important;
width: 100% !important;
}
.maplibregl-ctrl-top-right .geolibre-components-control .maplibre-gl-control-grid-floating-panel,
.maplibregl-ctrl-bottom-right
.geolibre-components-control
.maplibre-gl-control-grid-floating-panel {
left: auto !important;
right: 0 !important;
}
.geolibre-components-control .maplibre-gl-control-grid-relocated {
box-sizing: border-box;
max-width: min(340px, calc(100vw - 32px)) !important;
}
.geolibre-flatgeobuf-control {
background-color: hsl(var(--popover)) !important;
color: hsl(var(--popover-foreground)) !important;
overflow: visible;
}
.geolibre-flatgeobuf-control .maplibre-gl-add-vector-button {
display: none !important;
}
.geolibre-pmtiles-control {
background-color: hsl(var(--popover)) !important;
color: hsl(var(--popover-foreground)) !important;
overflow: visible;
}
.geolibre-pmtiles-control .maplibre-gl-pmtiles-layer-button {
display: none !important;
}
/* SpinGlobeControl (maplibre-gl-components) renders an inline-styled, light-only
panel positioned flush against its toolbar button. Re-theme it to the app
popover so it reads in dark mode, and add a small gap so the panel does not
touch the control icon. */
.spin-globe-panel {
right: calc(100% + 8px) !important;
background: hsl(var(--popover)) !important;
border: 1px solid hsl(var(--border)) !important;
box-shadow: 0 4px 12px rgb(0 0 0 / 0.25) !important;
color: hsl(var(--popover-foreground)) !important;
}
/* The control hardcodes color:#000 inline on the title, close button, speed
label, and units, so recolor every descendant to the popover foreground. */
.spin-globe-panel * {
color: hsl(var(--popover-foreground)) !important;
}
/* The Start/Stop toggle is the panel's only direct-child button (the close "×"
is nested in the header), so this leaves the close button transparent. */
.spin-globe-panel > button {
background: hsl(var(--secondary)) !important;
border-color: hsl(var(--border)) !important;
}
.spin-globe-panel > button:hover {
background: hsl(var(--accent)) !important;
}
/* The control's toolbar button stays white like the other map controls in both
themes, but its icon uses stroke="currentColor"; without a fixed color it
inherits the dark-mode text color and goes white-on-white over the white
button. Pin it to the same dark color the other control icons use (see
.maplibregl-ctrl-layer-control below). */
.maplibre-gl-spin-globe-control button {
color: #1f2a37;
}
/* The graticule control button: flex-center its inline SVG icon (MapLibre's
default `.maplibregl-ctrl-group button { display: block }` would otherwise
left-align it), and pin the stroke="currentColor" icon to a fixed dark color
so it stays legible on the always-white control button in both themes (same
approach as the spin-globe control above). The two-class selector out-ranks
MapLibre's single-class rule regardless of stylesheet order. */
.geolibre-graticule-ctrl .geolibre-graticule-button {
align-items: center;
color: #1f2a37;
display: flex;
justify-content: center;
}
.geolibre-duckdb-control {
background-color: transparent !important;
box-shadow: none !important;
color: hsl(var(--popover-foreground)) !important;
height: 0 !important;
margin: 0 !important;
pointer-events: none;
}
.geolibre-duckdb-control .duckdb-control-toggle {
pointer-events: none;
visibility: hidden;
}
.duckdb-control-panel:has(+ .geolibre-duckdb-control),
.duckdb-control-panel {
box-sizing: border-box;
max-height: min(620px, calc(100% - 20px));
max-width: min(365px, calc(100vw - 32px));
}
.duckdb-control-panel {
background-color: hsl(var(--popover)) !important;
border: 1px solid hsl(var(--border));
color: hsl(var(--popover-foreground)) !important;
left: 10px !important;
top: 10px !important;
}
.duckdb-control-header {
background-color: hsl(var(--card)) !important;
border-bottom-color: hsl(var(--border)) !important;
color: hsl(var(--foreground)) !important;
}
.duckdb-control-title,
.duckdb-control-label,
.duckdb-control-section-title,
.duckdb-control-summary-row strong,
.duckdb-control-properties dd {
color: hsl(var(--foreground)) !important;
}
.duckdb-control-summary-row span,
.duckdb-control-properties dt,
.duckdb-control-placeholder {
color: hsl(var(--muted-foreground)) !important;
}
.duckdb-control-section,
.duckdb-control-properties th,
.duckdb-control-properties td {
border-color: hsl(var(--border)) !important;
}
.duckdb-control-input,
.duckdb-control-file,
.duckdb-control-textarea {
background-color: hsl(var(--background)) !important;
border-color: hsl(var(--input)) !important;
color: hsl(var(--foreground)) !important;
}
.duckdb-control-input:focus,
.duckdb-control-file:focus,
.duckdb-control-textarea:focus {
border-color: hsl(var(--ring)) !important;
box-shadow: 0 0 0 1px hsl(var(--ring));
}
.duckdb-control-button {
background-color: hsl(var(--primary)) !important;
color: hsl(var(--primary-foreground)) !important;
}
.duckdb-control-button:hover {
background-color: hsl(var(--primary) / 0.9) !important;
}
.duckdb-control-secondary-button {
background-color: hsl(var(--secondary)) !important;
color: hsl(var(--secondary-foreground)) !important;
}
.duckdb-control-secondary-button:hover {
background-color: hsl(var(--accent)) !important;
color: hsl(var(--accent-foreground)) !important;
}
.duckdb-control-status {
background-color: hsl(var(--accent)) !important;
color: hsl(var(--accent-foreground)) !important;
}
.duckdb-control-error {
background-color: hsl(var(--destructive) / 0.12) !important;
color: hsl(var(--destructive)) !important;
}
.duckdb-control-close {
color: hsl(var(--muted-foreground)) !important;
}
.duckdb-control-close:hover {
color: hsl(var(--foreground)) !important;
}
.geolibre-pmtiles-control .maplibre-gl-pmtiles-layer-panel {
background-color: hsl(var(--popover)) !important;
border: 1px solid hsl(var(--border));
color: hsl(var(--popover-foreground)) !important;
max-width: min(340px, calc(100vw - 32px));
}
.geolibre-pmtiles-control .maplibre-gl-pmtiles-layer-header {
background-color: hsl(var(--card)) !important;
border-bottom-color: hsl(var(--border)) !important;
color: hsl(var(--foreground)) !important;
}
.geolibre-pmtiles-control .maplibre-gl-pmtiles-layer-title,
.geolibre-pmtiles-control .maplibre-gl-pmtiles-layer-form-group > label {
color: hsl(var(--foreground)) !important;
}
.geolibre-pmtiles-control .maplibre-gl-pmtiles-layer-close {
color: hsl(var(--foreground)) !important;
}
.geolibre-pmtiles-control .maplibre-gl-pmtiles-layer-close:hover {
background-color: hsl(var(--accent)) !important;
color: hsl(var(--accent-foreground)) !important;
}
.geolibre-pmtiles-control .maplibre-gl-pmtiles-layer-list {
background-color: hsl(var(--card)) !important;
border-color: hsl(var(--border)) !important;
color: hsl(var(--foreground)) !important;
}
.geolibre-pmtiles-control .maplibre-gl-pmtiles-layer-list-item {
border-bottom-color: hsl(var(--border)) !important;
color: hsl(var(--foreground)) !important;
}
.geolibre-pmtiles-control .maplibre-gl-pmtiles-layer-list-label,
.geolibre-pmtiles-control .maplibre-gl-pmtiles-layer-list-header {
color: hsl(var(--foreground)) !important;
}
.geolibre-pmtiles-control .maplibre-gl-pmtiles-layer-badge {
background-color: hsl(var(--secondary)) !important;
color: hsl(var(--secondary-foreground)) !important;
}
.geolibre-pmtiles-control .maplibre-gl-pmtiles-layer-form-group > div[style*="background"] {
background-color: hsl(var(--background)) !important;
border-color: hsl(var(--border)) !important;
color: hsl(var(--foreground)) !important;
}
.geolibre-pmtiles-control .maplibre-gl-pmtiles-layer-form-group > div[style*="background"] label,
.geolibre-pmtiles-control .maplibre-gl-pmtiles-layer-form-group > div span {
color: hsl(var(--foreground)) !important;
}
.geolibre-pmtiles-control .maplibre-gl-pmtiles-layer-form-group > span {
color: hsl(var(--muted-foreground)) !important;
}
.geolibre-pmtiles-control input[type="checkbox"] {
accent-color: hsl(var(--primary));
}
.geolibre-pmtiles-control .maplibre-gl-pmtiles-layer-input {
background-color: hsl(var(--background)) !important;
border: 1px solid hsl(var(--input)) !important;
color: hsl(var(--foreground)) !important;
}
.geolibre-pmtiles-control .maplibre-gl-pmtiles-layer-input::placeholder {
color: hsl(var(--muted-foreground)) !important;
}
.geolibre-pmtiles-control .maplibre-gl-pmtiles-layer-input:focus {
border-color: hsl(var(--ring)) !important;
box-shadow: 0 0 0 1px hsl(var(--ring)) !important;
outline: none;
}
.geolibre-pmtiles-control .maplibre-gl-pmtiles-layer-btn {
background-color: hsl(var(--card)) !important;
border: 1px solid hsl(var(--border)) !important;
color: hsl(var(--foreground)) !important;
}
.geolibre-pmtiles-control .maplibre-gl-pmtiles-layer-btn:hover:not(:disabled) {
background-color: hsl(var(--accent)) !important;
color: hsl(var(--accent-foreground)) !important;
}
.geolibre-pmtiles-control .maplibre-gl-pmtiles-layer-btn:disabled {
color: hsl(var(--muted-foreground)) !important;
opacity: 0.65;
}
.geolibre-pmtiles-control .maplibre-gl-pmtiles-layer-btn--primary {
background-color: hsl(var(--primary)) !important;
border-color: hsl(var(--primary)) !important;
color: hsl(var(--primary-foreground)) !important;
}
.geolibre-pmtiles-control .maplibre-gl-pmtiles-layer-status--error {
color: hsl(var(--destructive)) !important;
}
.geolibre-zarr-control {
background-color: hsl(var(--popover)) !important;
color: hsl(var(--popover-foreground)) !important;
overflow: visible;
}
.geolibre-zarr-control .maplibre-gl-zarr-layer-button {
display: none !important;
}
.geolibre-zarr-control .maplibre-gl-zarr-layer-panel {
background-color: hsl(var(--popover)) !important;
border: 1px solid hsl(var(--border));
box-shadow: 0 12px 32px rgb(0 0 0 / 0.28);
color: hsl(var(--popover-foreground)) !important;
max-width: min(340px, calc(100vw - 32px));
}
.geolibre-zarr-control .maplibre-gl-zarr-layer-header {
background-color: hsl(var(--card)) !important;
border-bottom-color: hsl(var(--border)) !important;
color: hsl(var(--foreground)) !important;
}
.geolibre-zarr-control .maplibre-gl-zarr-layer-title,
.geolibre-zarr-control .maplibre-gl-zarr-layer-form-group > label,
.geolibre-zarr-control .maplibre-gl-zarr-layer-checkbox-label,
.geolibre-zarr-control .maplibre-gl-zarr-layer-slider-value,
.geolibre-zarr-control .maplibre-gl-zarr-layer-list-header,
.geolibre-zarr-control .maplibre-gl-zarr-layer-list-label {
color: hsl(var(--foreground)) !important;
}
.geolibre-zarr-control .maplibre-gl-zarr-layer-close,
.geolibre-zarr-control .maplibre-gl-zarr-layer-list-remove {
color: hsl(var(--muted-foreground)) !important;
}
.geolibre-zarr-control .maplibre-gl-zarr-layer-close:hover,
.geolibre-zarr-control .maplibre-gl-zarr-layer-list-remove:hover {
background-color: hsl(var(--accent)) !important;
color: hsl(var(--accent-foreground)) !important;
}
.geolibre-zarr-control .maplibre-gl-zarr-layer-list {
background-color: hsl(var(--card)) !important;
border-color: hsl(var(--border)) !important;
color: hsl(var(--foreground)) !important;
}
.geolibre-zarr-control .maplibre-gl-zarr-layer-list-item {
border-bottom-color: hsl(var(--border)) !important;
color: hsl(var(--foreground)) !important;
}
.geolibre-zarr-control .maplibre-gl-zarr-layer-input,
.geolibre-zarr-control .maplibre-gl-zarr-layer-select {
background-color: hsl(var(--background)) !important;
border: 1px solid hsl(var(--input)) !important;
color: hsl(var(--foreground)) !important;
}
.geolibre-zarr-control .maplibre-gl-zarr-layer-select {
appearance: none;
background-image:
linear-gradient(45deg, transparent 50%, hsl(var(--foreground)) 50%),
linear-gradient(135deg, hsl(var(--foreground)) 50%, transparent 50%);
background-position:
calc(100% - 14px) 50%,
calc(100% - 9px) 50%;
background-repeat: no-repeat;
background-size: 5px 5px;
color-scheme: light dark;
padding-right: 2rem !important;
}
.geolibre-zarr-control .maplibre-gl-zarr-layer-input::placeholder {
color: hsl(var(--muted-foreground)) !important;
}
.geolibre-zarr-control .maplibre-gl-zarr-layer-input[type="number"] {
min-height: 2rem;
padding-right: 0.5rem !important;
}
.geolibre-zarr-control .maplibre-gl-zarr-layer-input[type="number"]::-webkit-inner-spin-button,
.geolibre-zarr-control .maplibre-gl-zarr-layer-input[type="number"]::-webkit-outer-spin-button {
cursor: pointer;
opacity: 1;
transform: scale(1.3);
transform-origin: center;
}
.geolibre-zarr-control .maplibre-gl-zarr-layer-input:focus,
.geolibre-zarr-control .maplibre-gl-zarr-layer-select:focus {
border-color: hsl(var(--ring)) !important;
box-shadow: 0 0 0 1px hsl(var(--ring)) !important;
outline: none;
}
.geolibre-zarr-control .maplibre-gl-zarr-layer-select option {
background-color: hsl(var(--popover));
color: hsl(var(--popover-foreground));
}
.geolibre-zarr-control .maplibre-gl-zarr-layer-btn {
background-color: hsl(var(--card)) !important;
border: 1px solid hsl(var(--border)) !important;
color: hsl(var(--foreground)) !important;
}
.geolibre-zarr-control .maplibre-gl-zarr-layer-btn:hover:not(:disabled) {
background-color: hsl(var(--accent)) !important;
color: hsl(var(--accent-foreground)) !important;
}
.geolibre-zarr-control .maplibre-gl-zarr-layer-btn:disabled {
color: hsl(var(--muted-foreground)) !important;
opacity: 0.65;
}
.geolibre-zarr-control .maplibre-gl-zarr-layer-btn--primary {
background-color: hsl(var(--primary)) !important;
border-color: hsl(var(--primary)) !important;
color: hsl(var(--primary-foreground)) !important;
}
.geolibre-zarr-control .maplibre-gl-zarr-layer-status--error {
color: hsl(var(--destructive)) !important;
}
.geolibre-zarr-control .maplibre-gl-zarr-layer-checkbox,
.geolibre-zarr-control .maplibre-gl-zarr-layer-slider {
accent-color: hsl(var(--primary));
}
.geolibre-search-control {
background-color: #fff !important;
box-shadow: 0 12px 32px rgb(0 0 0 / 0.28);
color: #333 !important;
max-width: min(320px, calc(100vw - 32px));
overflow: visible;
position: relative;
z-index: 3;
}
.geolibre-search-control .maplibre-gl-search-input-wrapper {
background-color: #fff !important;
border-bottom: 1px solid #d9d9d9 !important;
box-sizing: border-box;
width: 100% !important;
}
.geolibre-search-control .maplibre-gl-search-input {
background-color: #fff !important;
caret-color: #111;
color: #111 !important;
}
.geolibre-search-control .maplibre-gl-search-input::placeholder {
color: #333 !important;
opacity: 1;
}
.geolibre-search-control .maplibre-gl-search-input:focus {
outline: none;
}
.geolibre-search-control .maplibre-gl-search-toggle {
background: #fff !important;
border-radius: 4px;
color: #333 !important;
height: 29px !important;
opacity: 1;
width: 29px !important;
}
.geolibre-search-control .maplibre-gl-search-toggle svg {
height: 16px;
width: 16px;
}
.geolibre-search-control .maplibre-gl-search-toggle:hover {
background: #f2f2f2 !important;
color: #000 !important;
opacity: 1;
}
.geolibre-search-control .maplibre-gl-search-icon,
.geolibre-search-control .maplibre-gl-search-clear,
.geolibre-search-control .maplibre-gl-search-collapse {
color: #333 !important;
opacity: 1;
}
.geolibre-search-control .maplibre-gl-search-clear:hover,
.geolibre-search-control .maplibre-gl-search-collapse:hover {
color: #000 !important;
opacity: 1;
}
.geolibre-search-control .maplibre-gl-search-results {
background-color: #fff !important;
border: 1px solid #d9d9d9;
border-top: 0;
color: #111 !important;
max-width: min(320px, calc(100vw - 32px));
}
.geolibre-search-control .maplibre-gl-search-result {
border-bottom-color: #e5e5e5 !important;
color: #111 !important;
}
.geolibre-search-control .maplibre-gl-search-result:hover {
background-color: #f2f2f2 !important;
color: #000 !important;
}
.geolibre-search-control .maplibre-gl-search-result:hover * {
color: #000 !important;
}
.geolibre-search-control .maplibre-gl-search-result-detail {
color: #555 !important;
opacity: 1;
}
.geolibre-stac-search-control {
background-color: hsl(var(--popover)) !important;
color: hsl(var(--popover-foreground)) !important;
overflow: visible;
position: relative;
z-index: 3;
}
.maplibregl-control-container {
inset: 0;
pointer-events: none;
position: absolute;
z-index: 2;
}
/*
* The overlaid deck.gl canvas (COG rasters via CogLayerControl, ArcGIS I3S, the
* Tauri raster fallback) is map content and must sit UNDER the map-control
* panels, not over them. It lives inside `.maplibregl-control-container` (pinned
* to z-index 7 below), which already lifts it above the map canvas, so it only
* needs a low z-index within that container. #1131 raised this to 5, which put
* the raster above the STAC / Vantor plugin panels (z-index 3) and painted over
* them (opengeos/GeoLibre#1240). Back to 1: the raster still renders above the
* basemap, and control panels render above the raster.
*/
#deckgl-overlay {
z-index: 1;
}
/*
* The Effects plugin (the default starfield) raises the map canvas to
* `z-index: 4` and bumps `.maplibregl-control-container` to 5 so normal map
* controls keep painting above the canvas. The Time Slider dock relocates
* itself out of the control container into its own reserve-space layout
* wrapper, so it keeps the upstream library's `z-index: 2` and its
* upward-floating "Add data" popover is drawn under the z-4 canvas (the panel
* ends up "behind the map"). Lift the dock above the effects canvas so the
* popover renders on top. Harmless when effects are off and the canvas sits at
* its default auto z-index. See GeoLibre issue #570.
*/
.maplibregl-time-slider-dock,
.maplibregl-time-slider-dock.ts-docked {
z-index: 6;
}
/*
* The Layer Swipe comparison map paints its clipped half at `z-index: 5`
* (raised in maplibre-gl-swipe 0.9.1 so it sits above the Effects plugin's z-4
* map canvas). That ties with the control container, which the Effects plugin
* also pins to `z-index: 5` inline, so the comparison map ends up covering the
* top-right controls. Lift the controls above the comparison map. The
* `!important` is needed to beat the Effects plugin's inline z-index.
*/
.maplibregl-control-container {
z-index: 7 !important;
}
/*
* Annotation tools control. Built as a plain `.maplibregl-ctrl-group`, so it
* inherits MapLibre's default control chrome; these rules map it onto the app's
* design tokens (so it tracks the in-app `.dark` toggle) and style the tool
* buttons, the active-tool highlight, and the inline color/width inputs.
*/
.geolibre-annotations-control {
background-color: hsl(var(--background)) !important;
border: 1px solid hsl(var(--border)) !important;