From 4df097eee94449eedc226e785afd753bb5747cc3 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Tue, 13 Jan 2026 09:19:51 -0500 Subject: revert to using system fonts (webfonts too slow) This reverts commits 098292edefb338bd9e968d32ba4502bdb3ecb5a8 fd4634688b17b4232c2b4814e9e008645493a6ee --- themes/aoidh/assets/aoidh.css | 46 +++++--------------------- themes/aoidh/assets/fonts/plex | 1 - themes/aoidh/hugo.toml | 57 -------------------------------- themes/aoidh/layouts/_partials/head.html | 10 ------ 4 files changed, 8 insertions(+), 106 deletions(-) delete mode 160000 themes/aoidh/assets/fonts/plex (limited to 'themes/aoidh') diff --git a/themes/aoidh/assets/aoidh.css b/themes/aoidh/assets/aoidh.css index 6eb1e9b..a761a50 100644 --- a/themes/aoidh/assets/aoidh.css +++ b/themes/aoidh/assets/aoidh.css @@ -1,5 +1,4 @@ :root { - /* Colors */ --paper-color: #ffffea; --light-yellow: #eeee9e; --dark-yellow: #99994c; @@ -8,22 +7,10 @@ --light-gray: #eee; --dark-gray: #888; - /* Spacing */ --pagewidth: 60rem; --textwidth: 45rem; --parspace: .6em; - /* IBM Plex Serif weights */ - --thinweight: 100; - --extralightweight: 200; - --lightweight: 300; - --regularweight: 400; - --textweight: 450; - --mediumweight: 500; - --semiboldweight: 600; - --boldweight: 700; - - /* US letter page dimensions */ --letter-page-width: 8.5in; --letter-page-height: 11in; } @@ -41,10 +28,8 @@ body { } body { - font-family: 'IBM Plex Serif', serif; - font-weight: 400; - font-size: 1rem; line-height: 1.35em; + font-family: serif; text-rendering: optimizeLegibility; color: #000; background: #fff; @@ -82,12 +67,12 @@ nav a { } li.nav-active a { - font-weight: var(--semiboldweight); + font-weight: bold; box-shadow: .2rem .2rem var(--dark-yellow); } li.nav-ancestor a { - font-weight: var(--semiboldweight); + font-weight: bold; } nav a:active { @@ -103,7 +88,6 @@ p { } a { - font-weight: var(--textweight); text-decoration: none; border: 1px solid transparent; } @@ -123,27 +107,23 @@ a:active { .title { font-size: 1.4rem; - font-weight: var(--boldweight); } h1 { - font-size: 1.15rem; - font-weight: var(--semiboldweight); + font-size: 1.3rem; } h2 { - font-size: 1.10rem; - font-weight: var(--mediumweight); + font-size: 1.2rem; } h3 { - font-size: 1.05rem; - font-weight: var(--textweight); + font-size: 1.1rem; } h1, h2, h3 { - margin-block-start: .8em; - margin-block-end: .4em; + margin-block-end: .4em; /* above */ + margin-block-start: .8em; /* below */ } table { @@ -166,10 +146,6 @@ th, td { vertical-align: middle; } -th { - font-weight: var(--mediumweight); -} - footer { margin-top: 2rem; } @@ -228,9 +204,3 @@ iframe { border: 1px solid var(--dark-yellow); box-shadow: 2px 2px var(--dark-yellow); } - -code { - font-family: 'IBM Plex Mono', monospace; - font-weight: var(--regularweight); - font-size: .9em; -} diff --git a/themes/aoidh/assets/fonts/plex b/themes/aoidh/assets/fonts/plex deleted file mode 160000 index bb3ab64..0000000 --- a/themes/aoidh/assets/fonts/plex +++ /dev/null @@ -1 +0,0 @@ -Subproject commit bb3ab6404e1881ea286f8742dc839e09057db6dd diff --git a/themes/aoidh/hugo.toml b/themes/aoidh/hugo.toml index b8cf716..1410ef9 100644 --- a/themes/aoidh/hugo.toml +++ b/themes/aoidh/hugo.toml @@ -2,60 +2,3 @@ [module.hugoVersion] extended = false min = '0.146.0' - [[module.mounts]] - source = 'assets/fonts/plex/packages/plex-serif/fonts/split/woff2' - target = 'static/fonts/plex/packages/plex-serif/fonts/split/woff2' - [[module.mounts]] - source = 'assets/fonts/plex/packages/plex-mono/fonts/split/woff2' - target = 'static/fonts/plex/packages/plex-mono/fonts/split/woff2' - - # Default mounts - [[module.mounts]] - disableWatch = false - source = 'content' - target = 'content' - [module.mounts.sites] - [module.mounts.sites.complements] - [module.mounts.sites.matrix] - [[module.mounts]] - disableWatch = false - source = 'data' - target = 'data' - [module.mounts.sites] - [module.mounts.sites.complements] - [module.mounts.sites.matrix] - [[module.mounts]] - disableWatch = false - source = 'layouts' - target = 'layouts' - [module.mounts.sites] - [module.mounts.sites.complements] - [module.mounts.sites.matrix] - [[module.mounts]] - disableWatch = false - source = 'i18n' - target = 'i18n' - [module.mounts.sites] - [module.mounts.sites.complements] - [module.mounts.sites.matrix] - [[module.mounts]] - disableWatch = false - source = 'archetypes' - target = 'archetypes' - [module.mounts.sites] - [module.mounts.sites.complements] - [module.mounts.sites.matrix] - [[module.mounts]] - disableWatch = false - source = 'assets' - target = 'assets' - [module.mounts.sites] - [module.mounts.sites.complements] - [module.mounts.sites.matrix] - [[module.mounts]] - disableWatch = false - source = 'static' - target = 'static' - [module.mounts.sites] - [module.mounts.sites.complements] - [module.mounts.sites.matrix] diff --git a/themes/aoidh/layouts/_partials/head.html b/themes/aoidh/layouts/_partials/head.html index e0e5010..c72c8c5 100644 --- a/themes/aoidh/layouts/_partials/head.html +++ b/themes/aoidh/layouts/_partials/head.html @@ -1,16 +1,6 @@ {{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }} - -{{/* Stylesheets */}} {{- with resources.Get "aoidh.css" }} {{- end }} - -{{/* Fonts */}} -{{- range resources.Match "fonts/plex/packages/plex-serif/fonts/split/woff2/*.css" }} - -{{- end }} -{{- range resources.Match "fonts/plex/packages/plex-mono/fonts/split/woff2/*.css" }} - -{{- end }} -- cgit v1.2.3