From abe5504ce8274c5ce4374c5fdb68476adc06c847 Mon Sep 17 00:00:00 2001 From: Brummel Date: Thu, 21 May 2026 11:53:03 +0200 Subject: [PATCH] fix(css): drop body{} block to match live's effective styling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Stage's paragraph spacing was larger than live on text-heavy pages (~4px per line). Root cause: when I converted the SCSS-style // comments in praxis.css to /* */ a few iterations back, I accidentally revived the body{} block that live's Grav asset pipeline silently drops at build time. The block sets line-height: 24px (vs Bootstrap default 1.428 = ~20px) plus font-family Roboto and color #969595. The live pipeline rejects the rule because the original `font-size: 14px; //13px;` line has invalid CSS syntax — its minifier discards the whole declaration. Browsers viewing my cleaned-up praxis.css accept the rule and apply all properties. Easiest way to match live exactly: remove the block. Bootstrap's body defaults (Helvetica, line-height 1.428) now apply uniformly on stage, matching the live render. --- static/css/praxis.css | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/static/css/praxis.css b/static/css/praxis.css index a0eadfe..303c884 100644 --- a/static/css/praxis.css +++ b/static/css/praxis.css @@ -1,11 +1,10 @@ -body { - font-family : 'Roboto', sans-serif; - font-size : 14px; /* 13px; */ - line-height : 24px; - color : #969595; - font-weight : 400; - background: #fff; - } +/* body { } block dropped on purpose — the live Grav asset pipeline + dropped it too (its `font-size: 14px; //13px;` had an invalid SCSS + line comment that the minifier rejected, taking the whole rule with + it). Bootstrap's body defaults (Helvetica, line-height 1.428) apply + instead. Re-enabling the rule with our cleaner /* */ comments made + line-height 24px effective again on stage, which inflated paragraph + spacing on text-heavy pages compared to live. */ /* -------------------------------------- Global Typography