Files
compiler-explorer/static
Matt GodboltandClaude c8b26452b0 Fix CSS custom properties scoping to prevent global conflicts
GitHub Copilot identified that CSS custom properties were defined at :root
level while themes were scoped, creating global variable conflicts since all
theme files are loaded via @use at build time.

Changes:
- Moved CSS custom properties from :root to inside theme selectors
- pink-theme: --lighter, --base, --dark, --darker now scoped to html[data-theme='pink']
- one-dark-theme: --light, --lighter, --lightest, --base, --dark, --darker now scoped to html[data-theme='one-dark']

Benefits:
- Eliminates global variable conflicts between themes
- Provides proper encapsulation of theme variables
- Maintains CSS inheritance for descendant elements
- Compatible with existing var(--lighter) usage in explorer.scss

Thanks to @github-copilot for the excellent suggestion\!

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-30 15:51:32 -05:00
..
2025-07-28 10:34:46 -05:00
2025-07-28 10:34:46 -05:00
2025-07-28 10:34:46 -05:00
2025-07-28 10:34:46 -05:00
2025-07-28 10:34:46 -05:00
2025-07-28 10:34:46 -05:00
2025-07-28 10:34:46 -05:00
2025-07-28 10:34:46 -05:00
2025-06-18 09:04:23 -05:00
2025-06-19 08:46:57 -05:00
2025-07-28 10:34:46 -05:00
2025-02-26 02:07:09 +02:00
2025-07-28 10:34:46 -05:00
2025-06-18 09:04:23 -05:00
2025-07-28 10:34:46 -05:00
2025-07-28 10:34:46 -05:00
2025-04-24 12:10:37 -05:00
2025-07-28 10:34:46 -05:00
2025-07-28 10:34:46 -05:00
2025-07-28 10:34:46 -05:00
2025-07-28 10:34:46 -05:00
2025-07-28 10:34:46 -05:00