diff --git a/README.md b/README.md index caf70ac7..346f82aa 100644 --- a/README.md +++ b/README.md @@ -814,8 +814,8 @@ if you don't need all the features, you can repack the sfx and save a bunch of s the features you can opt to drop are * `ogv`.js, the opus/vorbis decoder which is needed by apple devices to play foss audio files, saves ~192k * `cm`/easymde, the "fancy" markdown editor, saves ~92k -* `no-fnt`, source-code-pro, the monospace font, saves ~9k -* `no-dd`, the custom mouse cursor for the media player tray tab, saves ~2k +* `fnt`, source-code-pro, the monospace font, saves ~9k +* `dd`, the custom mouse cursor for the media player tray tab, saves ~2k for the `re`pack to work, first run one of the sfx'es once to unpack it diff --git a/copyparty/web/browser.css b/copyparty/web/browser.css index df067b90..02f21c8d 100644 --- a/copyparty/web/browser.css +++ b/copyparty/web/browser.css @@ -2,10 +2,6 @@ --grid-sz: 10em; --grid-ln: 3; } -@font-face { - font-family: 'scp'; - src: local('Source Code Pro Regular'), local('SourceCodePro-Regular'), url(/.cpr/deps/scp.woff2) format('woff2'); -} * { line-height: 1.2em; } diff --git a/copyparty/web/md.css b/copyparty/web/md.css index d7b48e1b..de37f134 100644 --- a/copyparty/web/md.css +++ b/copyparty/web/md.css @@ -1,7 +1,3 @@ -@font-face { - font-family: 'scp'; - src: local('Source Code Pro Regular'), local('SourceCodePro-Regular'), url(/.cpr/deps/scp.woff2) format('woff2'); -} html, body { color: #333; background: #eee; diff --git a/copyparty/web/ui.css b/copyparty/web/ui.css index 572a76b9..d6a06415 100644 --- a/copyparty/web/ui.css +++ b/copyparty/web/ui.css @@ -1,3 +1,7 @@ +@font-face { + font-family: 'scp'; + src: local('Source Code Pro Regular'), local('SourceCodePro-Regular'), url(/.cpr/deps/scp.woff2) format('woff2'); +} html { touch-action: manipulation; } diff --git a/scripts/make-sfx.sh b/scripts/make-sfx.sh index cb22313d..ad044a6c 100755 --- a/scripts/make-sfx.sh +++ b/scripts/make-sfx.sh @@ -217,7 +217,7 @@ done [ $no_fnt ] && { rm -f copyparty/web/deps/scp.woff2 - f=copyparty/web/md.css + f=copyparty/web/ui.css gzip -d "$f" sed -r '/scp\.woff2/d' <$f >t tmv "$f"