Skip to content

style(story-budget): refresh print stylesheet for modern WordPress#848

Merged
GaryJones merged 1 commit intodevelopfrom
fix/177-story-budget-print-styles
Dec 21, 2025
Merged

style(story-budget): refresh print stylesheet for modern WordPress#848
GaryJones merged 1 commit intodevelopfrom
fix/177-story-budget-print-styles

Conversation

@GaryJones
Copy link
Copy Markdown
Contributor

Summary

Completely rewrote the Story Budget print stylesheet to work with modern WordPress admin (6.x) and provide a clean, readable printout.

Changes

Hidden elements:

  • WordPress admin chrome (admin bar, menu, footer, notices)
  • Story Budget navigation and filters
  • Row actions and toggle buttons

Layout:

  • Forces single-column layout for consistent printing (regardless of screen column setting)
  • Uses proper page margins (@page rule)
  • Handles page breaks to avoid split content

Typography:

  • Uses WordPress system font stack
  • Proper sizing (12pt body, 14pt headings)
  • Clean table formatting

Special handling:

  • Collapsed categories still print their content
  • Post excerpts shown in print view
  • Empty state messages styled appropriately

Before/After

The original issue (#177) from 2014 just said "It got ugly again" - even the original author doesn't remember what was wrong! This refresh brings the print styles up to date with the current WordPress admin structure.

Test plan

  • Open Story Budget page in WordPress admin
  • Use browser Print Preview (Cmd+P / Ctrl+P)
  • Verify admin menu, toolbar, and filters are hidden
  • Verify all categories display in single column
  • Verify collapsed categories still show their content
  • Verify page breaks don't split table rows

Fixes #177

🤖 Generated with Claude Code

Completely rewrote the print stylesheet to work with modern WordPress
admin (6.x) and provide a clean, readable printout of the Story Budget.

Changes:
- Hide modern admin elements (admin bar, menu, notices, screen options)
- Hide Story Budget navigation/filters (not needed in print)
- Force single-column layout for consistent printing
- Use system font stack matching WordPress admin
- Add proper page margins and typography
- Include page break handling to avoid split content
- Ensure collapsed categories still print their content
- Show post excerpts in print view

Fixes #177

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@GaryJones GaryJones requested a review from a team as a code owner December 21, 2025 12:38
@GaryJones GaryJones self-assigned this Dec 21, 2025
@GaryJones GaryJones added this to the Next (minor) milestone Dec 21, 2025
@GaryJones GaryJones merged commit 13026a2 into develop Dec 21, 2025
12 checks passed
@GaryJones GaryJones deleted the fix/177-story-budget-print-styles branch December 21, 2025 12:42
@GaryJones GaryJones mentioned this pull request Jan 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refresh the print stylesheet for the Story Budget

1 participant