kmalloc.org/static/style.css
squid 1b81184187 fix: show the RSS icon and the W3C badges on one line at the same height
- move the RSS icon inside the badges paragraph
- scale every footer icon to 32 px high
- lay the badges out in a flex row
2026-11-12 18:45:58 +01:00

136 lines
2 KiB
CSS

@font-face {
font-family: "Terminess";
src: url("/fonts/terminess.woff2") format("woff2");
font-display: swap;
}
:root {
--bg: #F9F7ED;
--surface: #F1EDE0;
--border: #D9D3C2;
--text: #111417;
--muted: #5b564a;
--accent: #D9480F;
--link: #b13a0b;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #111417;
--surface: #1b1f23;
--border: #5b564a;
--text: #F9F7ED;
--muted: #8a8473;
--link: #f0683a;
}
}
body {
margin: 0 auto;
max-width: 40em;
padding: 1em;
background-color: var(--bg);
color: var(--text);
font-family: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
line-height: 1.6;
}
h1, h2, h3 {
margin: 2em 0 .5em;
font-family: "Terminess", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
font-weight: normal;
line-height: 1.25;
}
a {
color: var(--link);
}
a:visited {
color: var(--muted);
}
a:hover, header a[aria-current] {
color: var(--text);
}
a:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
header {
border-bottom: 1px solid var(--border);
line-height: 2;
}
header a[aria-current] {
text-decoration: none;
}
footer {
margin-top: 3em;
border-top: 1px solid var(--border);
color: var(--muted);
font-size: .875em;
}
blockquote {
margin: 1.5em 0;
padding: 0 1em;
border-left: 4px solid var(--accent);
}
code {
background-color: var(--surface);
color: var(--text);
font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
font-size: .9375em;
overflow-wrap: anywhere;
}
.hero {
margin: .5em 0 .4em;
font-size: 3em;
line-height: 1.1;
}
@media (max-width: 30em) {
.hero {
font-size: 2em;
}
}
.logo {
width: 7em;
height: auto;
}
.badges {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: .5em;
}
@media print {
:root {
--bg: #fff;
--border: #000;
--text: #000;
--muted: #000;
--link: #000;
}
header, .badges {
display: none;
}
a[href^="http"]::after {
content: " <" attr(href) ">";
}
h1, h2, h3 {
page-break-after: avoid;
}
}