Skip to content

fix: move @media print block outside @layer base - #592

Closed
nyxsky404 wants to merge 2 commits into
gopaljilab:mainfrom
nyxsky404:fix/print-media-outside-layer
Closed

nyxsky404 wants to merge 2 commits into
gopaljilab:mainfrom
nyxsky404:fix/print-media-outside-layer

Conversation

@nyxsky404

Copy link
Copy Markdown
Contributor

Description

Moves the @media print block outside of @layer base in index.css. Previously, the print styles were incorrectly nested inside the @layer base block, which could cause them to be overridden by styles in higher-priority layers.

Related Issue

Fixes #580

Type of Change

  • 🐛 Bug fix (non-breaking change that fixes an issue)
  • ✨ New feature (non-breaking change that adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 📝 Documentation update
  • 🎨 Style / UI improvement
  • ♻️ Refactor (no functional changes)
  • ⚡ Performance improvement
  • 🧪 Test addition or update
  • 🔧 Chore / Tooling / Config

Changes Made

  • Closed the @layer base block before the @media print block
  • Removed the extra trailing } that was closing @layer base after the print styles

Testing

  • I have tested these changes locally
  • All existing tests pass

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my own code
  • I have commented my code where necessary
  • I have updated the documentation if needed

@gopaljilab gopaljilab added the invalid This doesn't seem right label Jun 2, 2026
@gopaljilab gopaljilab closed this Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

invalid This doesn't seem right

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] @media print block incorrectly nested inside @layer base

2 participants