Wren Linux

wren-linux / site / style.css

/* Wren Linux's site: system fonts, no web fonts, nothing loaded from
   elsewhere, so it looks the same in Tor Browser's Safest mode. Dark for
   everyone (it doesn't ask the visitor's system: one look, and one less
   thing a site can learn about its visitor). */
:root {
    color-scheme: dark;
    --bg: #15161a;
    --fg: #e6e4df;
    --muted: #a5a29b;
    --line: #33353b;
    --box: #1e2025;
    --link: #8cb8ec;
    --accent: #8fcf98;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--fg); }
body {
    margin: 0 auto;
    max-width: 46rem;
    padding: 1rem 1.25rem 3rem;
    font: 1.15rem/1.65 system-ui, -apple-system, "Segoe UI", "DejaVu Sans", sans-serif;
}
a { color: var(--link); }
header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
}
header .name { font-weight: 700; font-size: 1.15rem; color: var(--fg); text-decoration: none; }
nav a { margin-left: 1rem; }
nav a:first-child { margin-left: 0; }
h1 { font-size: 2rem; line-height: 1.2; margin: 2rem 0 0.5rem; }
h2 { font-size: 1.3rem; margin-top: 2rem; }
.lead { font-size: 1.25rem; color: var(--muted); margin-top: 0; }
.steps li { margin: 0.6rem 0; }
/* The front page: centered, one column, the same on both sides */
.home { text-align: center; max-width: 38rem; margin: 0 auto; }
.home .mascot { display: block; width: 9rem; height: auto; margin: 2rem auto 0; }
.home h1 { font-size: 2.6rem; letter-spacing: 0.02em; margin-top: 1rem; }
.home .lead { font-size: 1.3rem; font-style: italic; color: var(--accent); }
.home p { margin: 1.25rem 0; font-size: 1.2rem; line-height: 1.75; }
.home .small { font-size: 0.95rem; margin-top: 2.5rem; }
.home .small a { color: var(--muted); }
.home hr {
    width: 5rem;
    margin: 2rem auto;
    border: 0;
    border-top: 2px solid var(--accent);
}
.go { margin-top: 2rem; }
.button {
    display: inline-block;
    margin: 0 0.5rem 0.5rem 0;
    padding: 0.5rem 1rem;
    border: 1px solid var(--line);
    border-radius: 0.4rem;
    background: var(--box);
    text-decoration: none;
    font-weight: 600;
}
code, pre { font-family: ui-monospace, "DejaVu Sans Mono", monospace; font-size: 0.92em; }
pre {
    background: var(--box);
    border: 1px solid var(--line);
    border-radius: 0.4rem;
    padding: 0.75rem 1rem;
    overflow-x: auto;
    line-height: 1.45;
}
.fingerprint code {
    display: block;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    word-spacing: 0.3em;
    padding: 0.75rem 1rem;
    background: var(--box);
    border: 1px solid var(--line);
    border-radius: 0.4rem;
    overflow-wrap: anywhere;
}
.files { list-style: none; padding-left: 0; }
.files li { padding: 0.15rem 0; border-bottom: 1px solid var(--line); }
.files .dir { font-weight: 600; }
.path { color: var(--muted); }
/* Code: its lines kept whole, scrolling sideways as programmers expect, each numbered. The
   numbers are drawn here (a counter), not in the text: what you copy is the code alone.
   The line a link points at (#L120) stands out. */
.file pre { font-size: 0.85rem; white-space: pre; overflow-x: auto; counter-reset: line; }
/* A page of code is wider than the text pages, so most lines show whole: about 120 columns
   (95 in 100 of Wren Linux's lines are shorter), not the whole window, which on a wide screen
   would only push the header and the numbers apart. Text pages keep their narrow column. (A
   browser without :has() keeps the narrow page, and scrolls.) */
body:has(.file:not(.prose)) { max-width: 70rem; }
.file .l { counter-increment: line; }
.file .ln { text-decoration: none; user-select: none; }
.file .ln::before {
    content: counter(line);
    display: inline-block;
    min-width: 3em;
    margin-right: 1em;
    text-align: right;
    color: var(--muted);
    opacity: 0.6;
}
.file .l:target { background: #2c3038; }
/* Colours as vim gives them on a dark background (its default scheme, a little softer):
   comment, string, keyword, variable, number, #! line or decorator (tools/site_hl.py) */
.file .c { color: #85a6f2; }
.file .s { color: #f2a6a6; }
.file .k { color: #ead66c; }
.file .v { color: #6cdada; }
.file .n { color: #f2a6a6; }
.file .p { color: #ef94ef; }
.file .l:target .ln::before { opacity: 1; color: var(--accent); }
/* Prose (a Markdown file as text, a licence): a long line wraps at the window's edge
   (Markdown keeps a paragraph on one line), no numbers. Wrapping is only drawn: what you
   copy is the line as it is. */
.file.prose pre { white-space: pre-wrap; overflow-wrap: anywhere; }
/* A document (a Markdown file of the commit, as a page) */
.doc h1 { margin-top: 1.5rem; }
.doc h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.doc h4 { font-size: 1rem; margin-top: 1.25rem; }
.doc li { margin: 0.2rem 0; }
.doc li > ul, .doc li > ol { margin: 0.2rem 0; }
.doc :not(pre) > code { background: var(--box); border: 1px solid var(--line); border-radius: 0.25rem; padding: 0.05rem 0.3rem; overflow-wrap: anywhere; }
.doc pre code { background: none; border: 0; padding: 0; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
/* a wide table scrolls by itself, not the page */
.doc .table { overflow-x: auto; margin: 1rem 0; }
.doc table { border-collapse: collapse; font-size: 0.95rem; }
.doc th, .doc td { border: 1px solid var(--line); padding: 0.35rem 0.6rem; text-align: left; vertical-align: top; }
.doc th { background: var(--box); }
.log td { padding: 0.15rem 0.75rem 0.15rem 0; vertical-align: top; }
.log td:first-child { font-family: ui-monospace, "DejaVu Sans Mono", monospace; white-space: nowrap; }
footer { margin-top: 3rem; padding-top: 0.75rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }