Show posters when printing the schedule#1783
Open
nikoshell wants to merge 4 commits into
Open
Conversation
Previously, poster sessions shown inside the Lunch break slot were hidden in print via `.lunch-break-content { display: none !important; }` in the @media print block.
Now the lunch-break content renders: poster cards as compact cards with title, speakers, and meta; plus side events (PyLadies Lunch, etc.) as a compact list. All typography is reduced to 6-8pt for print.
The 'Also During Lunch' heading and the side-event links (PyLadies Lunch, Communities Lunch) were buried under the generic .sched-posters-list a print style — they render as bare text links with no visual button affordance. Now styled as visible button chips in print: inline-block with a 1px border, rounded corners, and padding. Same visual language as the on-screen chip buttons but compact for 6.5pt print.
Member
Preview available
|
Added justify-content: center to .sched-posters-list in @media print to center the PyLadies Lunch and Communities Lunch button chips.
The schedule grid could break mid-row in print, leaving time labels orphaned on one page and their sessions on the next. Added break-inside: avoid to .time, .lunch-break, .posters-inside, and .sched-lunch-events so rows and lunch content stay together on one page.
Member
|
Thanks for picking this up! I also pushed this branch earlier, but didn't get time to open a PR yet: https://github.com/EuroPython/website/tree/printable-lunch-posters |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Poster sessions were hidden when printing because
.lunch-break-content { display: none !important; }in the@media printblock suppressed the entire lunch content area.Changes
In
ScheduleLayout.astro/@media print:display: nonefrom.lunch-break-content.ep-session.postercomponent at 7pt@media (min-width: 800px)which matches A4 landscape)Before / After