kmalloc.org/static/style.css
squid 8270863f9f feat: add the RSS icon to the footer and make the news English only
- show the RSS icon in every footer, linked to /news/feed.xml
- write news in English only: the Italian pages list the same posts and link to them
- build a single feed instead of one per language
- send the language switch of the news pages to the home page of the other language
- document the English-only news in the README
2026-11-12 18:45:16 +01:00

133 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;
}
svg {
vertical-align: middle;
}
@media print {
:root {
--bg: #fff;
--border: #000;
--text: #000;
--muted: #000;
--link: #000;
}
header, .badges, .feed {
display: none;
}
a[href^="http"]::after {
content: " <" attr(href) ">";
}
h1, h2, h3 {
page-break-after: avoid;
}
}