kmalloc.org/static/style.css
squid bbd15481ea style(news): drop the article rules, the lists use the note panel
The blog list entries are note panels now, so nothing uses article any more.
2026-11-16 12:32:31 +01:00

229 lines
3.1 KiB
CSS

:root {
--bg: #F9F7ED;
--surface: #F1EDE0;
--border: #D9D3C2;
--text: #111417;
--muted: #5B564A;
--accent: #D9480F;
--link: #B13A0B;
--font-title: "Courier New", Courier, monospace;
--font-body: Arial, Helvetica, sans-serif;
}
@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: var(--font-body);
line-height: 1.6;
}
h1, h2, h3 {
margin: 2em 0 .5em;
font-family: var(--font-title);
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);
}
.note {
margin: 1em 0;
padding: .5em 1em;
border-left: 4px solid var(--accent);
background-color: var(--surface);
line-height: 1.6;
}
code {
background-color: var(--surface);
color: var(--text);
font-family: var(--font-title);
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;
}
.lede {
margin: -.25em 0 1em;
color: var(--muted);
font-size: 1.125em;
}
.meta {
margin-top: -.25em;
color: var(--muted);
font-size: .9375em;
}
nav ul {
margin: 1em 0;
padding: 0;
list-style: none;
}
@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;
}
}
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: var(--font-title);
}
.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);
}
}