From 1cffe7c45f3e19c17c74f220d749da5d88daec39 Mon Sep 17 00:00:00 2001 From: Jeff Kreeftmeijer Date: Sat, 4 May 2024 09:47:15 +0200 Subject: [PATCH] Reduce code font size to 0.8 em --- enough.css.org | 6 +++--- enough.min.css | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/enough.css.org b/enough.css.org index edc6b6e..dc9e7ec 100644 --- a/enough.css.org +++ b/enough.css.org @@ -87,7 +87,7 @@ Code, either in == tags, == tags, or =
= blocks, uses a different
 #+begin_src css
   code, kbd, pre{
     font-family: ui-monospace, SFMono-Regular, Monaco, monospace;
-    font-size: 0.9rem;
+    font-size: 0.8rem;
     overflow: auto;
   }
 #+end_src
@@ -95,8 +95,8 @@ Code, either in == tags, == tags, or =
= blocks, uses a different
 Enough.css switches code elements to the /ui-monospace/ font family, which is Apple's /SF Mono/ font in Safari on macOS and iOS.
 For other browsers, /SFMono-Regular/ (works on Chrome on macOS) and /Monaco/ are tried before falling back to the default monospace font.
 
-The font size is reduced to 0.9 em for both code blocks and tags.
-The 0.9 em size gives enough space for roughly 70 characters on bigger screens, and 40 characters on most phones.
+The font size is reduced to 0.8 em for both code blocks and tags.
+The 0.8 em size gives enough space for roughly 80 characters on bigger screens, and 50 characters on most phones.
 If a code block doesn't fit the page body, a scroll bar is displayed instead of overflowing.
 
 ** Tables
diff --git a/enough.min.css b/enough.min.css
index 313d22c..5a8336f 100644
--- a/enough.min.css
+++ b/enough.min.css
@@ -1 +1 @@
-html{font:calc(1em + .25vw)/1.5 system-ui,sans-serif}body{margin:auto;padding:0 2em;max-width:40em}img,video{max-width:100%;height:auto}code,kbd,pre{font-family:ui-monospace,SFMono-Regular,Monaco,monospace;font-size:.9rem;overflow:auto}table{border-collapse:collapse;width:100%}td,th{padding:.5em;border:1px solid}
\ No newline at end of file
+html{font:calc(1em + .25vw)/1.5 system-ui,sans-serif}body{margin:auto;padding:0 1em;max-width:40em}img,video{max-width:100%;height:auto}code,kbd,pre{font-family:ui-monospace,SFMono-Regular,Monaco,monospace;font-size:.8rem;overflow:auto}table{border-collapse:collapse;width:100%}td,th{padding:.5em;border:1px solid}
\ No newline at end of file