diff options
author | Alexander Foremny <aforemny@posteo.de> | 2024-03-01 09:52:04 +0100 |
---|---|---|
committer | Alexander Foremny <aforemny@posteo.de> | 2024-03-01 09:52:04 +0100 |
commit | c9c7a0017c3afdd25cac349d5e1cd73b03d1b4c0 (patch) | |
tree | 15d0155ceb4a89067cc71b274e807b32cef36150 | |
parent | 40c5224ff080d9ce01fdc8f6a8cf4673a63d121f (diff) |
get base.css from static.nomath.org
-rw-r--r-- | nomath-org.nix | 6 | ||||
-rw-r--r-- | src/index.html | 41 |
2 files changed, 3 insertions, 44 deletions
diff --git a/nomath-org.nix b/nomath-org.nix index 805e8e5..b48c8b2 100644 --- a/nomath-org.nix +++ b/nomath-org.nix @@ -1,13 +1,9 @@ -{ lib -, stdenv -, cm_unicode -}: +{ stdenv }: stdenv.mkDerivation { name = "nomath-org"; src = ./.; installPhase = '' mkdir -p $out cp src/index.html $out - cp ${cm_unicode}/share/fonts/opentype/cmunvt.otf $out ''; } diff --git a/src/index.html b/src/index.html index a7a33b1..c6b27e6 100644 --- a/src/index.html +++ b/src/index.html @@ -5,45 +5,8 @@ <meta name="description" content="we are a collective of hackers. we “avoid success at all costs”." /> <link rel="icon" href="https://static.nomath.org/favicon.ico" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> - <style type="text/css"> -/* fonts */ -@font-face { - font-family: 'CMU Typewriter Text Variable Width'; - src: url('cmunvt.otf'); } - -/* layout */ -* { - box-sizing: border-box; } -html { - width: 100%; - max-width: 600px; } -body { - margin: 10px; } - -/* typography */ -html { - font: 16px 'CMU Typewriter Text Variable Width', serif; - color: black; - hyphens: auto; } -h1, h2, h3 { - font-size: 1rem; - font-weight: normal; } -h1 { - font-weight: bold; - font-style: italic; } -h1, h2, h3, p { - margin-top: 10px; - margin-bottom: 10px; - white-space: pre-wrap; } - -/* links */ -a:link, a:hover { - color: coral; } -a:visited { - color: chocolate; } -a:focus { - outline: dashed darkorange; } -</style></head><body><nav> + <link rel="stylesheet" type="text/css" href="https://static.nomath.org/base.css" /> +</head><body><nav> <h1>nomath.org</h1> <h2>we are a collective of hackers. we <em>“avoid success at all costs”</em>.</h2> |