Skip to content

feat: add print styles for chapters#216

Merged
braboj merged 1 commit intomainfrom
feat/print-styles
Apr 26, 2026
Merged

feat: add print styles for chapters#216
braboj merged 1 commit intomainfrom
feat/print-styles

Conversation

@braboj
Copy link
Copy Markdown
Owner

@braboj braboj commented Apr 26, 2026

Summary

  • Add @media print rules to hide nav, sidebars, FAB, footer, and skip link
  • Prevent page breaks after headings and inside images
  • Wrap long code blocks instead of clipping
  • Closes Add print styles for chapters #214

Test plan

  • CI passes
  • Print preview (Ctrl+P) shows only chapter content
  • No navigation or UI chrome visible in print
  • Code blocks wrap instead of overflowing

Hide nav, sidebars, FAB, and footer when printing. Prevent page
breaks after headings and inside images. Wrap long code blocks.

Closes #214

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@braboj braboj merged commit da7156c into main Apr 26, 2026
1 check passed
@braboj braboj deleted the feat/print-styles branch April 26, 2026 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add print styles for chapters

1 participant