hackertours/assets/css/_custom.css
Vincent Mahnke 8996266a61
Fix: h1 should use fs-xxl on desktop and only reduce to fs-l on mobile
The root project's _custom.css was overriding the theme's custom CSS
because it had fs-l as the base font size instead of fs-xxl. Now the
default is fs-xxl with media query override for mobile (≤ 666px).
2026-11-07 18:52:43 +01:00

236 lines
4.5 KiB
CSS

@import './_schedule.css';
@import './_gallery.css';
.header__logo {
flex-shrink: 0;
}
/* Header h1 styling - responsive sizing that grows with viewport */
.header__site-name {
font-size: var(--fs-xxl);
margin-block-start: 0;
margin-block-end: 0;
flex-shrink: 1;
min-width: 0;
}
/* Smaller on mobile only */
@media (width <= 666px) {
.header__site-name {
font-size: var(--fs-l);
}
}
/* Logo scaling - smaller on mobile */
.header__logo-image {
width: 50px;
height: 50px;
}
@media (width >= 667px) {
.header__logo-image {
width: 100px;
height: 100px;
}
}
/* Reserve space for the mobile menu without changing the theme's colours or fonts. */
:root {
--mobile-bar-h: 3.25rem;
}
.layout__page:has(> .mobile-nav:not([hidden])) {
padding-block-end: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom, 0px));
}
:root:has(.mobile-nav:not([hidden])) {
scroll-padding-block-end: calc(var(--mobile-bar-h) + 1rem);
}
.mobile-nav {
position: fixed;
inset: 0;
width: auto;
height: auto;
}
.mobile-nav__cover {
inset: 0;
width: auto;
height: auto;
}
.mobile-nav__toggle.button {
position: fixed;
inset: auto 0 0;
justify-content: center;
gap: 0.6rem;
width: auto;
block-size: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom, 0px));
padding: 0 var(--gutters) env(safe-area-inset-bottom, 0px);
border: 0;
border-radius: 0;
background: var(--color-button);
&:hover,
&:focus-visible,
&:active {
background: var(--color-button-hover);
box-shadow: none;
}
&:focus-visible {
outline-offset: -4px;
}
}
.mobile-nav__sheet {
position: absolute;
inset: auto 0 calc(var(--mobile-bar-h) + env(safe-area-inset-bottom, 0px));
width: auto;
height: auto;
max-height: calc(100% - var(--mobile-bar-h) - env(safe-area-inset-bottom, 0px) - var(--spacing-l));
overflow-y: auto;
padding: var(--spacing-m) var(--gutters);
transform: translateY(100%);
[data-navopen] & {
transform: translateY(0);
}
}
.mobile-nav__region .language-selector ul {
flex: 1;
flex-direction: column;
}
.language-selector a {
display: flex;
align-items: center;
gap: 0.45em;
}
.language-selector .language-icon {
inline-size: 1.1em;
block-size: 1.1em;
flex-shrink: 0;
margin: 0;
fill: currentcolor;
}
.mobile-nav__region .language-selector {
font-size: inherit;
}
.mobile-nav__region .language-selector a,
.mobile-nav__navbar a {
padding-block: 0.5rem;
}
.mobile-nav__region .language-selector a {
justify-content: center;
}
.mobile-nav__navbar a {
display: block;
}
table, th, td {
border: 1px solid;
}
th, td {
padding: 3px 6px;
font-variant-numeric: tabular-nums;
}
.title-post-date {
font-size: .7em;
margin-left: 2em;
}
/* Zen v7 paints body with --color-body-bg and .page with --color-page-bg. */
:root {
--color-body-bg: light-dark(var(--color-grey-100), #141414);
--color-page-bg: light-dark(var(--color-white), #242424);
}
@media (prefers-color-scheme: dark) {
:root {
--color-headings: #faf5f5;
--color-header-bg: #242424;
--color-text: #faf5f5;
--color-link: #66f2ff;
--color-link-visited: #66f2ff;
--color-footer-bg: #242424;
--color-border: #faf5f5;
--color-button: #141414;
--color-button-text: #faf5f5;
--color-button-hover: #343434;
--color-brand: #66f2ff;
--color-text-meta: #faf5f5;
--color-mobile-menu: #141414;
}
}
nav ul li {
flex-grow: 1;
text-align: center;
}
.main-menu a:active {
text-decoration: none;
}
/* Links in text keep their underline: the link colour alone is too close to the text colour. */
nav a,
.header a {
text-decoration: none;
}
h2 a {
margin-right: 2em;
}
.title-post-date {
margin-left: 0em;
}
/* Visible when focused with the keyboard; the visually-hidden class hides it otherwise. */
.skip-link:focus {
position: absolute;
inset-block-start: 0.5rem;
inset-inline-start: 0.5rem;
z-index: 100;
padding: 0.5rem 1rem;
background: var(--color-button);
color: var(--color-button-text);
}
#main-content:focus {
outline: none;
}
/* Content images with their credit, see layouts/_markup/render-image.html. */
.content-image {
margin: 1rem 0;
img {
display: block;
max-width: 100%;
height: auto;
}
}
span.content-image {
display: inline-block;
vertical-align: top;
max-width: 100%;
margin: 0 0.5rem 0.5rem 0;
}
.content-image__credit {
display: block;
margin-block-start: 0.25rem;
font-family: var(--ff-alt);
font-size: var(--fs-xs);
color: var(--color-text-meta);
}