Repos / hi.imnhan.com / 11665c2508
commit 11665c25089a57f9208e0dd5bd74ab219a7dd650
Author: Nhân <hi@imnhan.com>
Date: Fri Apr 14 21:39:14 2023 +0700
make default text size bigger (18px)
diff --git a/nhanb-theme/static/css/main.css b/nhanb-theme/static/css/main.css
index 1ee6585..1127aca 100644
--- a/nhanb-theme/static/css/main.css
+++ b/nhanb-theme/static/css/main.css
@@ -12,7 +12,7 @@ html {
overflow-y: scroll;
font-family: "Source Sans Pro", sans-serif;
- font-size: 20px;
+ font-size: 18px; /* fallback for less capable browsers */
/* Smart trick stolen from exoticsilicon.com:
* https://research.exoticsilicon.com/articles/replying_to_comments
* > uses the browser default font size, smoothly scaled up to 130% on
@@ -22,9 +22,9 @@ html {
* default font size then capping it with a fixed em size is new to me.
* How elegant!
*
- * Still keeping the 20px above as a fallback for... less fortunate browsers.
+ * Bump min size a bit (1.125em) because Source Sans Pro is a small font.
*/
- font-size: min(max(1em, 1.3vw), 1.3em);
+ font-size: min(max(1.125em, 1.3vw), 1.3em);
}
code,
pre {