feat: Takes over the 40C3 startpage's background and headings
Light green background (#dff0d4), which is also the text colour in the dark scheme. Page titles and the site name are capitals like the startpage's h1, and section headings are green boxes like its "GET INFORMED", so the home page's 40C3 heading is now an h2. The EH22 logo credit moves to the footer. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
bbaff0ee91
commit
cea49f0ab5
1 changed files with 53 additions and 42 deletions
|
|
@ -4,12 +4,12 @@
|
|||
@import './_events.css';
|
||||
|
||||
/*
|
||||
* 40C3 "MODEL_CITIZENS" design, after the 40C3 styleguide.
|
||||
* 40C3 "MODEL_CITIZENS" design, after the 40C3 styleguide and the 40C3 startpage
|
||||
* (events.ccc.de/congress/2026/infos/startpage.html).
|
||||
* Key colours: green (0), paper (A) and ink (B); the other colours are accents.
|
||||
* Dark: ink background, paper text, green accents.
|
||||
* Light: paper background and ink text, as on the 40C3 info pages
|
||||
* (events.ccc.de/congress/2026/infos). Those pages also put black boxes behind links and give
|
||||
* each heading level its own colour; this site doesn't, it sticks to the styleguide's chips.
|
||||
* Light: paper background and ink text.
|
||||
* Paper is the startpage's light green (#dff0d4), not the styleguide's grey (#ebedf0).
|
||||
* WCAG AA contrast: on ink every palette colour works as text, but on the light background
|
||||
* only the foreground does. So in the light scheme green is only ever a fill or a line,
|
||||
* with foreground-coloured text on it.
|
||||
|
|
@ -23,7 +23,7 @@
|
|||
--c40-coral: #ea6f82;
|
||||
--c40-orange: #f88a30;
|
||||
--c40-amber: #ffbc40;
|
||||
--c40-paper: #ebedf0;
|
||||
--c40-paper: #dff0d4;
|
||||
--c40-ink: #001300;
|
||||
|
||||
--c40-light-bg: var(--c40-paper);
|
||||
|
|
@ -130,28 +130,36 @@ mark {
|
|||
color: var(--c40-on-fill);
|
||||
}
|
||||
|
||||
/* Headings: Jersey 10 for the big ones. h1 is the "loud header" (filled chip), h3 and below
|
||||
are Hack Bold, h3 underlined like the styleguide's subheads. */
|
||||
/* Headings: Jersey 10 for the big ones, as on the 40C3 startpage. Page titles (h1) are capitals
|
||||
in the foreground colour (green in the dark scheme), section headings (h2) capitals on a green
|
||||
box. Post titles in lists and the schedule's days are plain h2s, the size of the card titles.
|
||||
h3 and below are Hack Bold, h3 underlined like the styleguide's subheads. */
|
||||
h1,
|
||||
h2 {
|
||||
color: light-dark(var(--c40-light-fg), var(--c40-green));
|
||||
font-family: var(--ff-display);
|
||||
font-weight: 400;
|
||||
/* Jersey 10 has a single weight; like the startpage, this has browsers draw it bolder. */
|
||||
font-weight: bold;
|
||||
letter-spacing: 0;
|
||||
line-height: 1;
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
h1 {
|
||||
width: fit-content;
|
||||
max-width: 100%;
|
||||
padding: 0.12em 0.3em 0.2em;
|
||||
background: var(--c40-green);
|
||||
color: var(--c40-on-fill);
|
||||
font-size: calc(var(--fs-xxl) * var(--display-scale));
|
||||
font-size: min(3rem, calc(var(--fs-xxl) * var(--display-scale)));
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
h2 {
|
||||
color: light-dark(var(--c40-light-fg), var(--c40-green));
|
||||
font-size: calc(var(--fs-xl) * var(--display-scale));
|
||||
font-size: calc(var(--fs-l) * var(--display-scale));
|
||||
}
|
||||
|
||||
h2:not(.title, .schedule__day-title) {
|
||||
width: fit-content;
|
||||
padding-inline: 1rem;
|
||||
background: var(--c40-green);
|
||||
color: var(--c40-on-fill);
|
||||
font-size: min(2.4rem, calc(var(--fs-xl) * var(--display-scale)));
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
h3 {
|
||||
|
|
@ -175,7 +183,7 @@ h3 {
|
|||
white-space: pre-line;
|
||||
}
|
||||
|
||||
/* Branding: the logo, and the site name as a loud header chip like the page's own h1. */
|
||||
/* Branding: the logo, and the site name set like the page titles. */
|
||||
.header {
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
|
@ -208,11 +216,17 @@ h3 {
|
|||
}
|
||||
}
|
||||
|
||||
/* The name takes the heading's colour; on hover and focus it gets the links' green chip, with
|
||||
dark text, because green text would vanish on it. */
|
||||
.header__site-link {
|
||||
color: inherit;
|
||||
&:link,
|
||||
&:visited {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&:focus-visible {
|
||||
color: var(--c40-on-fill);
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue