From af61f0a8ba354a68f803e88cf388f63ab1595c24 Mon Sep 17 00:00:00 2001 From: ekmpa Date: Mon, 12 Oct 2026 11:04:56 -0400 Subject: [PATCH] Use a gentler base font size on larger screens The theme grows the root font size from 16px (phones) to 22px (wide screens), which made the whole site look zoomed in on laptops. Now 16px up to tablet width, 17px from 1024px and 18px from 1280px. Co-Authored-By: Claude Opus 5.5 --- _sass/custom/base-font-size.scss | 22 ++++++++++++++++++++++ _sass/minimal-mistakes.scss | 1 + 2 files changed, 23 insertions(+) create mode 100644 _sass/custom/base-font-size.scss diff --git a/_sass/custom/base-font-size.scss b/_sass/custom/base-font-size.scss new file mode 100644 index 000000000..5a1b23a6a --- /dev/null +++ b/_sass/custom/base-font-size.scss @@ -0,0 +1,22 @@ +/* + Base font size + The theme grows the root font size with the screen (16px phone up to 22px on wide + screens), which makes everything look zoomed in on laptops and desktops. Keep the + scale gentler; every rem-based size follows. + ========================================================================== */ + +html { + font-size: 16px; + + @include breakpoint($medium) { + font-size: 16px; + } + + @include breakpoint($large) { + font-size: 17px; + } + + @include breakpoint($x-large) { + font-size: 18px; + } +} diff --git a/_sass/minimal-mistakes.scss b/_sass/minimal-mistakes.scss index c92eb03f5..f520236ed 100644 --- a/_sass/minimal-mistakes.scss +++ b/_sass/minimal-mistakes.scss @@ -42,6 +42,7 @@ @import "minimal-mistakes/print"; /* Custom styling */ +@import "custom/base-font-size"; @import "custom/no-sidebar"; @import "custom/display-author-page.scss"; @import "custom/display-publications.scss";