Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
1c88d25508 |
|||
|
fcbddbd291 |
4 changed files with 33 additions and 4 deletions
|
|
@ -154,7 +154,7 @@ renders (on the German page)
|
||||||
| `note` | no | Text after the language, after a dash, in the page's language. Markdown is allowed. |
|
| `note` | no | Text after the language, after a dash, in the page's language. Markdown is allowed. |
|
||||||
| `book` | no | The date in the ticket shop, for the "Book now" button. |
|
| `book` | no | The date in the ticket shop, for the "Book now" button. |
|
||||||
| `duration` | no | Length in minutes, for the calendar entry (see "Shortcode: Calendar entry"). |
|
| `duration` | no | Length in minutes, for the calendar entry (see "Shortcode: Calendar entry"). |
|
||||||
| `status` | no | `soldout` strikes the date through and adds "ausgebucht" / "fully booked", without the button and the calendar links. `fewseats` adds the highlighted "Nur wenige Plätze über" / "only a few seats left" before the button. Other values are ignored, as in the schedule. |
|
| `status` | no | `soldout` strikes the date through and adds "ausgebucht" / "fully booked", without the button and the calendar links. `fewseats` adds the highlighted "Nur wenige Plätze über" / "only a few seats left", with a warning sign, before the button. Other values are ignored, as in the schedule. |
|
||||||
|
|
||||||
Use backticks around values that contain double quotes. The wording is in the theme's i18n files (`tour_date_*`, `fewseats`, `schedule_soldout`).
|
Use backticks around values that contain double quotes. The wording is in the theme's i18n files (`tour_date_*`, `fewseats`, `schedule_soldout`).
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,3 +15,17 @@
|
||||||
.schedule__pick[aria-pressed="true"] {
|
.schedule__pick[aria-pressed="true"] {
|
||||||
color: var(--c40-on-fill);
|
color: var(--c40-on-fill);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Status next to the time, as a filled note: "only a few seats left" in amber and ink
|
||||||
|
(.fewseats-note, --fewseats in _custom.css), "fully booked" in pink and ink (5.8:1, AA).
|
||||||
|
The pink is not in the 40C3 palette (closest: --c40-pink). */
|
||||||
|
.schedule {
|
||||||
|
--schedule-soldout: #da669b;
|
||||||
|
--schedule-soldout-text: var(--c40-ink);
|
||||||
|
}
|
||||||
|
|
||||||
|
.schedule__card--soldout .schedule__status {
|
||||||
|
padding: 0 0.4rem;
|
||||||
|
background: var(--schedule-soldout);
|
||||||
|
color: var(--schedule-soldout-text);
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,9 +10,23 @@
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The note stays in one piece; the button and the calendar links wrap after it. */
|
/* 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 {
|
.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;
|
white-space: nowrap;
|
||||||
|
text-box-trim: trim-both;
|
||||||
|
text-box-edge: cap alphabetic;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tour-fewseats {
|
.tour-fewseats {
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,8 @@ Hackertours-Admin writes one per date:
|
||||||
|
|
||||||
Without day (dates grouped under a day) only the time and what follows is shown.
|
Without day (dates grouped under a day) only the time and what follows is shown.
|
||||||
status: soldout strikes the date through and marks it fully booked, without the button and the
|
status: soldout strikes the date through and marks it fully booked, without the button and the
|
||||||
calendar links; fewseats adds the "only a few seats left" note before the button. Other values
|
calendar links; fewseats adds the "only a few seats left" note, with a warning sign, before
|
||||||
|
the button. Other values
|
||||||
are ignored. Params and their wording: README, "Shortcode: Tour date".
|
are ignored. Params and their wording: README, "Shortcode: Tour date".
|
||||||
*/ -}}
|
*/ -}}
|
||||||
{{- $position := string .Position -}}
|
{{- $position := string .Position -}}
|
||||||
|
|
@ -42,7 +43,7 @@ are ignored. Params and their wording: README, "Shortcode: Tour date".
|
||||||
<del>{{ $text | safeHTML }}</del> <span class="tour-date__status">{{ i18n "schedule_soldout" }}</span>
|
<del>{{ $text | safeHTML }}</del> <span class="tour-date__status">{{ i18n "schedule_soldout" }}</span>
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{ $text | safeHTML }}<br>
|
{{ $text | safeHTML }}<br>
|
||||||
{{- if $fewSeats }}<span class="fewseats-note">{{ i18n "fewseats" }}</span> {{ end -}}
|
{{- if $fewSeats }}<span class="fewseats-note">{{ partial "fa-icon.html" "solid/triangle-exclamation" }}{{ i18n "fewseats" }}</span> {{ end -}}
|
||||||
{{- with $book }}{{ partial "tour-book.html" . }} {{ end -}}
|
{{- with $book }}{{ partial "tour-book.html" . }} {{ end -}}
|
||||||
{{- partial "tour-calendar.html" (dict
|
{{- partial "tour-calendar.html" (dict
|
||||||
"page" .Page
|
"page" .Page
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue