-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
350 lines (303 loc) · 8.52 KB
/
index.css
File metadata and controls
350 lines (303 loc) · 8.52 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
/* Google Fonts loaded via <link> in index.html to avoid render-blocking @import */
/* Tailwind CSS v4 import */
@import "tailwindcss";
/* Dashboard system-wide theme */
html, body, #root {
background:
radial-gradient(circle at 20% 20%, rgba(52, 211, 153, 0.06), transparent 25%),
radial-gradient(circle at 80% 0%, rgba(59, 130, 246, 0.06), transparent 20%),
linear-gradient(135deg, #0a1525 0%, #0d1c31 40%, #0a1424 100%);
min-height: 100vh;
}
/* Ensure full viewport coverage */
body {
margin: 0;
padding: 0;
}
/* Custom CSS variables */
:root {
color-scheme: dark;
--font-sans: 'Inter', system-ui, sans-serif;
--font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, "SF Mono", Monaco, Consolas, monospace;
/* Tailwind-aligned palette tokens for custom gradients/text */
--slate-950: #0f172a;
--slate-900: #0f172a;
--slate-800: #1e293b;
--slate-700: #334155;
--slate-600: #475569;
--slate-500: #64748b;
--blue-400: #60a5fa;
--blue-500: #3b82f6;
--emerald-400: #34d399;
--emerald-500: #10b981;
--red-500: #ef4444;
--amber-400: #fbbf24;
--blue-500-rgb: 59, 130, 246;
/* Navbar tokens */
--nav-bg: #0d1f2d;
--nav-border: rgba(59,130,246,0.10);
--nav-sep: rgba(255,255,255,0.08);
--nav-accent: #60a5fa;
--nav-accent-bg: rgba(59,130,246,0.12);
--nav-accent-border: rgba(59,130,246,0.28);
--nav-text-inactive: rgba(255,255,255,0.50);
--nav-text-hover: rgba(255,255,255,0.75);
--nav-hover-bg: rgba(255,255,255,0.05);
--emerald-400-rgb: 52, 211, 153;
--dashboard-grad-1: #0a1525;
--dashboard-grad-2: #0d1c31;
--dashboard-grad-3: #0a1424;
}
/* Base layer customizations */
@layer base {
body {
color: #f8fafc;
font-family: var(--font-sans);
}
}
/* Component layer - custom components that don't conflict with Tailwind */
@layer components {
/* Navbar responsive: hide Networks label on narrow viewports */
@media (max-width: 1024px) {
.hidden-narrow { display: none; }
}
/* Navbar icon button hover */
.nav-icon-btn:hover {
background: var(--nav-hover-bg);
color: var(--nav-text-hover);
}
/* ML training page background gradient */
.bg-ml-training {
background:
radial-gradient(circle at 20% 20%, rgba(var(--emerald-400-rgb), 0.06), transparent 25%),
radial-gradient(circle at 80% 0%, rgba(var(--blue-500-rgb), 0.06), transparent 20%),
linear-gradient(135deg, var(--slate-950) 0%, var(--slate-900) 40%, var(--slate-950) 100%);
}
/* Dashboard background gradient */
.bg-dashboard {
background:
radial-gradient(circle at 20% 20%, rgba(var(--emerald-400-rgb), 0.06), transparent 25%),
radial-gradient(circle at 80% 0%, rgba(var(--blue-500-rgb), 0.06), transparent 20%),
linear-gradient(
135deg,
var(--dashboard-grad-1) 0%,
var(--dashboard-grad-2) 40%,
var(--dashboard-grad-3) 100%
);
}
/* Reusable text gradients */
.text-gradient-slate {
@apply bg-clip-text text-transparent;
background-image: linear-gradient(
to right,
var(--slate-800),
var(--slate-500),
var(--slate-600),
var(--slate-800)
);
-webkit-text-fill-color: transparent;
}
.text-gradient-blue {
@apply bg-clip-text text-transparent;
background-image: linear-gradient(135deg, var(--blue-400) 0%, var(--blue-500) 100%);
-webkit-text-fill-color: transparent;
}
.text-glow-strong {
text-shadow: 0 0 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.6);
filter:
drop-shadow(0 4px 12px rgba(0, 0, 0, 0.9))
drop-shadow(0 0 30px rgba(100, 116, 139, 0.3));
}
.text-glow-soft {
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}
/* Admin-specific components */
.admin-shell {
max-width: 80rem;
margin: 0 auto;
}
.admin-tab {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
padding: 0.75rem 1rem;
font-size: 0.75rem;
font-weight: 600;
color: #e2e8f0;
background: rgba(15, 23, 42, 0.65);
border: 1px solid rgba(148, 163, 184, 0.2);
border-radius: 1rem;
transition: all 0.2s ease;
}
.admin-tab:hover {
transform: translateY(-0.25rem);
border-color: rgba(148, 163, 184, 0.4);
}
.admin-tab--active {
background: linear-gradient(135deg, rgba(251, 191, 36, 0.18) 0%, rgba(245, 158, 11, 0.12) 100%);
border-color: rgba(245, 158, 11, 0.7);
box-shadow: 0 0 30px rgba(245, 158, 11, 0.25);
}
/* Filter panel compact mode */
.filter-panel--compact {
}
.filter-panel--compact .filter-panel__header {
padding: 0.75rem;
}
.filter-panel--compact .filter-panel__title {
font-size: 0.875rem;
}
.filter-panel--compact .filter-panel__badge {
padding: 0.125rem 0.375rem;
font-size: 0.75rem;
}
.filter-panel--compact .filter-panel__section-toggle {
padding: 0.75rem;
}
.filter-panel--compact .filter-panel__section-title {
font-size: 0.875rem;
}
.filter-panel--compact .filter-panel__section-body {
padding: 0.75rem;
}
.filter-panel--compact .filter-panel__section-body > :not([hidden]) ~ :not([hidden]) {
margin-top: 0.5rem;
}
.filter-panel--compact .filter-panel__label {
font-size: 0.75rem;
}
.filter-panel--compact .filter-panel__control {
padding: 0.375rem 0.5rem;
font-size: 0.75rem;
}
}
/* Utility layer - custom utilities */
@layer utilities {
/* Ensure Mapbox GL styles work properly */
.mapboxgl-map {
width: 100% !important;
height: 100% !important;
}
/* Draggable/resizable utilities */
.draggable {
cursor: move;
}
.resizable {
resize: both;
overflow: auto;
}
/* Mapbox Custom Popup Styling */
.sc-popup .mapboxgl-popup-content {
background: transparent !important;
padding: 0 !important;
border: none !important;
box-shadow: none !important;
border-radius: 9px;
}
.sc-popup .mapboxgl-popup-tip {
border-top-color: rgba(15, 23, 42, 0.95) !important;
border-bottom-color: rgba(15, 23, 42, 0.95) !important;
}
/* Remove default close button styling to let our custom header shine */
.sc-popup .mapboxgl-popup-close-button {
color: #94a3b8;
font-size: 16px;
padding: 4px 8px;
right: 5px;
top: 5px;
border-radius: 0 9px 0 0;
}
.sc-popup .mapboxgl-popup-close-button:hover {
background-color: rgba(239, 68, 68, 0.2);
color: #ef4444;
}
/* Popup Drag Styling */
.sc-popup-draggable {
cursor: grab;
}
.sc-popup-draggable.dragging {
cursor: grabbing;
z-index: 2000;
}
.popup-drag-handle {
display: inline-flex;
align-items: center;
justify-content: center;
width: 20px;
height: 20px;
margin-right: 6px;
color: rgba(255, 255, 255, 0.5);
font-size: 12px;
cursor: grab;
user-select: none;
flex-shrink: 0;
}
.popup-drag-handle:hover {
color: rgba(255, 255, 255, 0.7);
}
.sc-popup-draggable.dragging .popup-drag-handle {
cursor: grabbing;
}
/* Popup Pin Button */
.popup-pin-button {
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
padding: 0;
margin: 0 4px;
background: rgba(255, 255, 255, 0.08);
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 4px;
color: rgba(255, 255, 255, 0.5);
font-size: 13px;
cursor: pointer;
transition: all 0.2s ease;
flex-shrink: 0;
user-select: none;
}
.popup-pin-button:hover {
background: rgba(255, 255, 255, 0.12);
color: rgba(255, 255, 255, 0.7);
border-color: rgba(255, 255, 255, 0.2);
}
.popup-pin-button[data-pinned='true'] {
background: rgba(59, 130, 246, 0.15);
color: #3b82f6;
border-color: rgba(59, 130, 246, 0.3);
}
.popup-pin-button[data-pinned='true']:hover {
background: rgba(59, 130, 246, 0.25);
border-color: rgba(59, 130, 246, 0.5);
}
/* Viewport-fixed popup styling */
.popup-pinned-viewport {
position: fixed !important;
z-index: 1100 !important;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8) !important;
}
/* Deck.gl Tooltip Styling (Kepler/WiGLE pages) */
.deck-tooltip {
background: transparent !important;
border: none !important;
box-shadow: none !important;
padding: 0 !important;
border-radius: 9px !important;
pointer-events: none;
}
[role="tooltip"],
.tooltip {
position: absolute;
z-index: 9999;
pointer-events: none;
/* Prevent parent overflow from clipping tooltip */
}
/* Container for tooltips should NOT clip children */
.map-container,
[data-tooltip-container] {
overflow: visible !important;
position: relative;
}
}