6262 --sidebar-accent-foreground : oklch (0.205 0 0 );
6363 --sidebar-border : oklch (0.922 0 0 );
6464 --sidebar-ring : oklch (0.708 0 0 );
65+
66+ --z-index-base : 1 ;
67+ --z-index-content : 10 ;
68+ --z-index-monaco-editor : 20 ;
69+ --z-index-monaco-widgets : 1000 ;
70+ --z-index-floating-ui : 50 ;
71+ --z-index-overlay : 100 ;
72+ --z-index-modal : 200 ;
73+ --z-index-popover : 300 ;
74+ --z-index-toast : 400 ;
75+ --z-index-tooltip : 500 ;
76+ --z-index-network-indicator : 50 ;
77+ --z-index-mobile-nav : 1001 ;
6578}
6679
6780[data-theme = "dark" ] {
@@ -287,6 +300,17 @@ body {
287300 .card-compact {
288301 padding : 12px !important ;
289302 }
303+
304+ .monaco-editor .suggest-widget ,
305+ .monaco-editor .monaco-hover ,
306+ .monaco-editor .parameter-hints-widget {
307+ z-index : calc (var (--z-index-monaco-widgets ) + 100 ) !important ;
308+ }
309+
310+
311+ .mobile-sidebar {
312+ z-index : var (--z-index-mobile-nav );
313+ }
290314}
291315
292316@theme inline {
@@ -373,43 +397,86 @@ body {
373397
374398
375399.monaco-editor .suggest-widget {
376- z-index : 1000 !important ;
400+ z-index : var ( --z-index-monaco-widgets ) !important ;
377401}
378402
379403.monaco-editor .monaco-hover {
380- z-index : 1000 !important ;
404+ z-index : var ( --z-index-monaco-widgets ) !important ;
381405}
382406
383407.monaco-editor .parameter-hints-widget {
384- z-index : 1000 !important ;
408+ z-index : var ( --z-index-monaco-widgets ) !important ;
385409}
386410
387411
388412.monaco-editor {
389413 position : relative;
390- z-index : 10 ;
414+ z-index : var ( --z-index-monaco-editor ) ;
391415}
392416
393417
394418.live-preview-container {
395419 pointer-events : auto;
396420 position : relative;
397- z-index : 1 ;
421+ z-index : var ( --z-index-content ) ;
398422}
399423
400424
401425.editor-container {
402426 position : relative;
403- z-index : 10 ;
427+ z-index : var (--z-index-monaco-editor );
428+ isolation : isolate;
429+
404430}
405431
406432.preview-container {
407433 position : relative;
408- z-index : 1 ;
434+ z-index : var ( --z-index-content ) ;
409435}
410436
411437
412438.monaco-editor-container ,
413439.preview-container {
414440 transition : width 0.3s ease-in-out;
441+ }
442+
443+ .console-output-panel {
444+ position : relative;
445+ z-index : var (--z-index-content );
446+ }
447+
448+ .console-output-toggle {
449+ position : relative;
450+ z-index : var (--z-index-content );
451+ }
452+
453+ .loading-indicator-overlay {
454+ z-index : var (--z-index-overlay );
455+ }
456+
457+ .tooltip {
458+ z-index : var (--z-index-tooltip );
459+ }
460+
461+ .popover {
462+ z-index : var (--z-index-popover );
463+ }
464+
465+ .mobile-sidebar-toggle {
466+ z-index : var (--z-index-mobile-nav );
467+ }
468+
469+ .network-indicator {
470+ position : fixed;
471+ top : 0 ;
472+ left : 0 ;
473+ right : 0 ;
474+ z-index : var (--z-index-network-indicator );
475+ }
476+
477+ .dashboard-header {
478+ position : sticky;
479+ top : 0 ;
480+ z-index : var (--z-index-overlay );
481+ backdrop-filter : blur (8px );
415482}
0 commit comments