diff options
-rw-r--r-- | public/base.css | 37 | ||||
-rw-r--r-- | static-nomath-org.nix | 9 |
2 files changed, 44 insertions, 2 deletions
diff --git a/public/base.css b/public/base.css new file mode 100644 index 0000000..890893e --- /dev/null +++ b/public/base.css @@ -0,0 +1,37 @@ +/* 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; } diff --git a/static-nomath-org.nix b/static-nomath-org.nix index 894a3ff..8db645c 100644 --- a/static-nomath-org.nix +++ b/static-nomath-org.nix @@ -1,6 +1,11 @@ -{ stdenv }: +{ stdenv +, cm_unicode +}: stdenv.mkDerivation { name = "static-nomath-org"; src = ./.; - installPhase = "mv public $out"; + installPhase = '' + mv public $out + cp ${cm_unicode}/share/fonts/opentype/cmunvt.otf $out + ''; } |