fix: Restores header layout and uses 40C3 page colours for light theme
- Light scheme: background #ebedf0 and text #001300, the colours the 40C3 info pages (events.ccc.de/congress/2026/infos) use. Their black link boxes and per-level heading colours are not copied; links, headings and chips follow the styleguide as before. The theme-color metas, the web manifest and the footer logo use the same colours. - Menu: the four entries are full-width buttons in a row below the header again (outlined like the styleguide's quiet chips; the current page, hover and focus are filled green). - Language link: back on the right of the header instead of in the menu bar. layouts/baseof.html, layouts/_partials/menu.html and layouts/home-baseof.html are main's again, so the theme only adds files under layouts/. - README: the language switch is in the header, not in the menu. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
6cbf724fce
commit
454d7fbd7e
2 changed files with 83 additions and 41 deletions
|
|
@ -5,7 +5,9 @@
|
|||
* 40C3 "MODEL_CITIZENS" design, after the 40C3 styleguide.
|
||||
* Key colours: green (0), paper (A) and ink (B); the other colours are accents.
|
||||
* Dark: ink background, paper text, green accents.
|
||||
* Light: #e2eed6 background and #010801 text (picked for this site, not from the styleguide).
|
||||
* 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.
|
||||
* 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.
|
||||
|
|
@ -22,8 +24,8 @@
|
|||
--c40-paper: #ebedf0;
|
||||
--c40-ink: #001300;
|
||||
|
||||
--c40-light-bg: #e2eed6;
|
||||
--c40-light-fg: #010801;
|
||||
--c40-light-bg: var(--c40-paper);
|
||||
--c40-light-fg: var(--c40-ink);
|
||||
|
||||
/* Text on green and amber fills. */
|
||||
--c40-on-fill: light-dark(var(--c40-light-fg), var(--c40-ink));
|
||||
|
|
@ -217,11 +219,17 @@ nav a,
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* Main menu: quiet (outlined) chips, the current page and hover are filled green. */
|
||||
/* Main menu: a row of full-width buttons (the items grow to fill the theme's flex row). Quiet,
|
||||
outlined boxes; the current page, hover and focus are filled green like a loud header. */
|
||||
.main-menu li {
|
||||
flex-grow: 1;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.main-menu a {
|
||||
padding: 0.15rem 0.75rem;
|
||||
padding: 0.3rem 0.75rem;
|
||||
background: transparent;
|
||||
box-shadow: inset 0 0 0 1px currentcolor;
|
||||
box-shadow: inset 0 0 0 2px var(--color-border);
|
||||
color: var(--color-text);
|
||||
text-decoration: none;
|
||||
|
||||
|
|
@ -235,24 +243,8 @@ nav a,
|
|||
}
|
||||
}
|
||||
|
||||
/* Nav row (layouts/_partials/menu.html): menu chips, and the language switch on the right. */
|
||||
.nav-bar__row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.nav-bar .header__region {
|
||||
margin-inline-start: auto;
|
||||
}
|
||||
|
||||
/* On small screens mobilemenu.js hides both parts; drop the then empty row too. */
|
||||
.nav-bar:has(.main-menu[hidden]) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Language switch: an amber chip with the icon, so it doesn't read as a menu entry. */
|
||||
/* Language switch, on the right of the header: an amber chip with the icon, so it doesn't read
|
||||
as a menu entry. */
|
||||
.language-selector {
|
||||
font-size: inherit;
|
||||
|
||||
|
|
@ -260,7 +252,7 @@ nav a,
|
|||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.45em;
|
||||
padding: 0.15rem 0.75rem;
|
||||
padding: 0.3rem 0.75rem;
|
||||
background: var(--c40-amber);
|
||||
color: var(--c40-on-fill);
|
||||
text-decoration: none;
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<defs>
|
||||
<style>
|
||||
.cls-1 {
|
||||
fill: #010801;
|
||||
fill: #001300;
|
||||
}
|
||||
</style>
|
||||
</defs>
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
Loading…
Reference in a new issue