summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2024-03-01 09:47:14 +0100
committerLibravatar Alexander Foremny <aforemny@posteo.de>2024-03-01 09:47:14 +0100
commit9eac212a3aa64a712caf8dbf5a5bcfaacf8a4021 (patch)
treee9eae2615a359e050d3b7fea83227332abaf97db
parent5b728019ca1c831f1eb2453545a557ac31747b5e (diff)
add base.cssmain
-rw-r--r--public/base.css37
-rw-r--r--static-nomath-org.nix9
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
+ '';
}