kmalloc.org/static/style.css
squid 944c498d78 feat: rust Dissent in the hero, shrike mark in the header and link preview metadata
- the last line of the home motto is set in the accent colour, as in the logo
- the header of every page starts with the small shrike mark
- og:* and twitter:card meta tags with a 1200x630 preview image (og.png)
2026-11-14 11:08:38 +01:00

209 lines
2.9 KiB
CSS

: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: Arial, Helvetica, sans-serif;
line-height: 1.6;
}
h1, h2, h3 {
margin: 2em 0 .5em;
font-family: "Courier New", Courier, 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: "Courier New", Courier, monospace;
font-size: .9375em;
overflow-wrap: anywhere;
}
.hero {
margin: .5em 0 .4em;
font-size: 3em;
line-height: 1.1;
text-align: center;
}
@media (max-width: 30em) {
.hero {
font-size: 2em;
}
}
.accent {
color: var(--accent);
}
.mark {
width: 1.25em;
height: 1.25em;
margin-right: .35em;
vertical-align: -.3em;
}
.logo {
display: block;
width: 7em;
height: auto;
margin: 0 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;
--accent: #000;
}
header, .badges {
display: none;
}
a[href^="http"]::after {
content: " <" attr(href) ">";
}
h1, h2, h3 {
page-break-after: avoid;
}
}
.note {
margin: 1em 0;
padding: .5em 1em;
border-left: 4px solid var(--accent);
background-color: var(--surface);
line-height: 1.6;
}
table {
width: 100%;
border-collapse: collapse;
font-size: .9375em;
}
caption {
text-align: left;
color: var(--muted);
}
th, td {
padding: .5em .5em .5em 0;
border-bottom: 1px solid var(--border);
text-align: left;
vertical-align: top;
}
thead th {
font-weight: bold;
}
@media (max-width: 40em) {
.data thead {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
}
.data tr, .data th, .data td {
display: block;
}
.data tbody th {
padding-top: 1em;
border-bottom: none;
font-family: "Courier New", Courier, monospace;
}
.data td {
padding: .25em 0;
border-bottom: none;
}
.data td::before {
content: attr(data-label) ": ";
font-weight: bold;
}
.data tr {
border-bottom: 1px solid var(--border);
}
}