jedmund-svelte/src/assets/styles/_z-index.scss
Justin Edmund 5875a52b47 refactor: standardize z-index values with CSS variables
- Create _z-index.scss with systematic z-index constants
- Replace 60+ hardcoded z-index values across 19 components
- Establish consistent layering hierarchy:
  - Base layers (1-3)
  - Interactive elements (10-200)
  - Overlays and modals (1000-1100)
  - Top-level elements (1200-10000)

This improves maintainability and prevents z-index conflicts.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-25 21:18:20 -04:00

39 lines
No EOL
969 B
SCSS

/* Z-Index System
* --------------------------------------------------------------------------
* A systematic approach to z-index values to maintain consistent layering
* throughout the application.
* -------------------------------------------------------------------------- */
// Base layers
$z-index-base: 1;
$z-index-above: 2;
$z-index-hover: 3;
// Interactive elements
$z-index-dropdown: 10;
$z-index-sticky: 100;
$z-index-fixed: 200;
// Overlays and modals
$z-index-overlay: 1000;
$z-index-modal-backdrop: 1000;
$z-index-modal: 1050;
$z-index-modal-content: 1100;
// Top-level elements
$z-index-popover: 1200;
$z-index-tooltip: 1400;
$z-index-notification: 10000;
// Component-specific z-indexes
$z-index-header: 100;
$z-index-navigation: 150;
$z-index-sidebar: 200;
$z-index-media-modal: 1050;
$z-index-lightbox: 1100;
$z-index-toast: 10000;
// Admin-specific z-indexes
$z-index-admin-nav: 100;
$z-index-admin-sidebar: 200;
$z-index-admin-modal: 1050;