summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--public/base.css44
-rw-r--r--static-nomath-org.nix9
2 files changed, 51 insertions, 2 deletions
diff --git a/public/base.css b/public/base.css
new file mode 100644
index 0000000..716dceb
--- /dev/null
+++ b/public/base.css
@@ -0,0 +1,44 @@
+/* fonts */
+@font-face {
+ font-family: 'CMU Typewriter Text Variable Width';
+ src: url('https://static.nomath.org/cmunvt.otf'); }
+@font-face {
+ font-family: 'CMU Typewriter Text Regular';
+ src: url('https://static.nomath.org/cmuntt.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; }
+
+/* links */
+a:link, a:hover {
+ color: coral; }
+a:visited {
+ color: chocolate; }
+a:focus {
+ outline: dashed darkorange; }
+
+/* code */
+pre, code {
+ font: 16px 'CMU Typewriter Text Regular', serif;
+ }
diff --git a/static-nomath-org.nix b/static-nomath-org.nix
index 894a3ff..04e56f7 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/*.otf $out
+ '';
}