Skip to content

Show posters when printing the schedule#1783

Open
nikoshell wants to merge 4 commits into
ep2026from
ep2026-fix-printable
Open

Show posters when printing the schedule#1783
nikoshell wants to merge 4 commits into
ep2026from
ep2026-fix-printable

Conversation

@nikoshell

Copy link
Copy Markdown
Contributor

Poster sessions were hidden when printing because .lunch-break-content { display: none !important; } in the @media print block suppressed the entire lunch content area.

Changes

In ScheduleLayout.astro / @media print:

  • Remove display: none from .lunch-break-content
  • Add compact print styles for poster cards inside the lunch slot:
    • Poster cards use the existing .ep-session.poster component at 7pt
    • Side events (PyLadies Lunch, Communities Lunch) rendered as a compact list
    • All headed by the "13:00 Lunch" bar with a visible border separator
  • Poster badge (which says "Poster" on the card) stays hidden in print (already gated by @media (min-width: 800px) which matches A4 landscape)

Before / After

Element Before (print) After (print)
Lunch header "13:00 Lunch" "13:00 Lunch"
Poster cards ❌ Hidden ✅ Compact cards with title + speakers
Side event links ❌ Hidden ✅ Compact list
Session grid ✅ Works ✅ Works

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.
@europython-society

europython-society commented Jul 11, 2026

Copy link
Copy Markdown
Member

Preview available

Key Value
url https://ep2026-fix-printable.ep-preview.click
last update 2026-07-11T16:55:39.378Z

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.
@hugovk

hugovk commented Jul 11, 2026

Copy link
Copy Markdown
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

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.

3 participants