hackertours/themes/hackertours/assets/css/_tour-date.css
Vincent Mahnke 1c88d25508
All checks were successful
/ build (push) Successful in 1m59s
/ accessibility (push) Successful in 3m54s
Tour pages: size the few-seats note like the book button, add a warning sign
The note now has the "Book now" button's font, padding and border, so
both are the same height, and starts as far in as the button and the
calendar links, so the three line up on narrow screens as well. Like
the button's shopping cart, it gets an icon: a warning triangle.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 00:21:24 +01:00

34 lines
1 KiB
CSS

/* Dates on a tour page (tour-date shortcode) and the note for the tour as a whole (fewseats
shortcode). The highlight itself is in _fewseats.css. */
/* Fully booked: struck through and muted, with the status in full colour. */
.tour-date--soldout del {
color: var(--color-text-meta);
}
.tour-date__status {
font-weight: bold;
}
/* The note stays in one piece; the button and the calendar links wrap after it. Font, box and
icon spacing are the "Book now" button's (.button--small and .tour-book), so the two are the
same height and the three line up, next to each other and, on narrow screens, below each
other. */
.tour-date .fewseats-note {
display: inline-flex;
align-items: center;
gap: 0.4em;
margin-inline-start: 0.4em;
padding: 0.35rem 0.5rem;
border: 1px solid var(--fewseats);
font-family: var(--ff-headings);
font-size: var(--fs-xs);
vertical-align: middle;
white-space: nowrap;
text-box-trim: trim-both;
text-box-edge: cap alphabetic;
}
.tour-fewseats {
margin-block-end: 0.5rem;
}