summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--public/base.css13
-rw-r--r--static-nomath-org.nix2
2 files changed, 11 insertions, 4 deletions
diff --git a/public/base.css b/public/base.css
index 890893e..716dceb 100644
--- a/public/base.css
+++ b/public/base.css
@@ -1,7 +1,10 @@
/* fonts */
@font-face {
font-family: 'CMU Typewriter Text Variable Width';
- src: url('cmunvt.otf'); }
+ 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 */
* {
@@ -25,8 +28,7 @@ h1 {
font-style: italic; }
h1, h2, h3, p {
margin-top: 10px;
- margin-bottom: 10px;
- white-space: pre-wrap; }
+ margin-bottom: 10px; }
/* links */
a:link, a:hover {
@@ -35,3 +37,8 @@ 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 8db645c..04e56f7 100644
--- a/static-nomath-org.nix
+++ b/static-nomath-org.nix
@@ -6,6 +6,6 @@ stdenv.mkDerivation {
src = ./.;
installPhase = ''
mv public $out
- cp ${cm_unicode}/share/fonts/opentype/cmunvt.otf $out
+ cp ${cm_unicode}/share/fonts/opentype/*.otf $out
'';
}