86 lines
2.6 KiB
CSS
86 lines
2.6 KiB
CSS
/* The card grid (.event-list) is shared with the home-page embed and lives in the
|
||
global app.css; the card itself is EventCard. Only the page's own parts are here. */
|
||
|
||
/* Same centred 42rem reading column as a content page (ContentPage.razor.css), so
|
||
every page of the site shares one column under the header. */
|
||
h1,
|
||
h2,
|
||
article,
|
||
p,
|
||
.event-list,
|
||
.past-events {
|
||
max-width: 42rem;
|
||
margin-inline: auto;
|
||
}
|
||
|
||
/* auto, not 0: this rule outweighs the column rule above and would otherwise pull
|
||
the button back to the left edge of the page. */
|
||
.events-subscribe {
|
||
margin: var(--space-4) auto;
|
||
}
|
||
|
||
/* Past events: one folded-up card. Opened, a compact list grouped by year,
|
||
deliberately quieter than the upcoming cards above. The open/close triangle is
|
||
the shared .disclosure rule in app.css, the same as on the FAQ topics. */
|
||
.past-events {
|
||
box-sizing: border-box; /* padding inside the 42rem, flush with the text */
|
||
margin-top: var(--space-5);
|
||
padding: var(--space-3) var(--space-4);
|
||
border: 1px solid var(--color-border);
|
||
border-radius: var(--radius);
|
||
background: var(--color-surface);
|
||
}
|
||
|
||
.past-events-year {
|
||
margin: var(--space-4) 0 var(--space-1);
|
||
color: var(--color-text-soft);
|
||
font-size: 0.9rem;
|
||
font-weight: 700;
|
||
letter-spacing: 0.04em;
|
||
}
|
||
|
||
.past-events ul {
|
||
margin: 0;
|
||
padding: 0;
|
||
list-style: none;
|
||
}
|
||
|
||
/* On a phone the day sits above the title: a column beside it would leave the
|
||
title too little room. */
|
||
.past-events li {
|
||
display: grid;
|
||
padding: var(--space-2) 0;
|
||
border-top: 1px solid var(--color-border);
|
||
}
|
||
|
||
/* From tablet width on, day and title side by side. The day column has a fixed
|
||
width, so every title starts on the same line; it fits the longest single day,
|
||
"30. September". A span across months ("30. Januar – 2. Februar") wraps after
|
||
the dash inside the column. Same font size for both and baseline alignment, so
|
||
the two texts sit on one line. */
|
||
@media (min-width: 40rem) {
|
||
.past-events li {
|
||
grid-template-columns: 8rem 1fr;
|
||
column-gap: var(--space-3);
|
||
align-items: baseline;
|
||
}
|
||
}
|
||
|
||
/* Tabular digits give every day the same width, so "1." and "10." line up. */
|
||
.past-event-date {
|
||
color: var(--color-text-soft);
|
||
font-variant-numeric: tabular-nums;
|
||
}
|
||
|
||
.past-event-title {
|
||
color: var(--color-text);
|
||
}
|
||
|
||
/* The time trails the title, quieter, as an addition rather than part of the name. */
|
||
.past-event-time {
|
||
margin-left: var(--space-2);
|
||
color: var(--color-text-soft);
|
||
font-variant-numeric: tabular-nums;
|
||
white-space: nowrap;
|
||
}
|