From 20ddc029fdc3df10393f9ada433557d31c367b4b Mon Sep 17 00:00:00 2001 From: Nathan Upchurch Date: Tue, 2 Jan 2024 13:04:41 -0500 Subject: [PATCH] Adjust line-height to calculated value --- reset.css | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/reset.css b/reset.css index 07358b5..b2c94c3 100644 --- a/reset.css +++ b/reset.css @@ -24,9 +24,9 @@ box-sizing: border-box; } -// Remove default margin * { - margin: 0; + line-height: calc(1em + 0.5rem); // Calculate optimal line-height (This may break things; see https://www.joshwcomeau.com/css/custom-css-reset/#three-tweaking-line-height-4) + margin: 0; // Remove default margin } @@ -42,15 +42,9 @@ blockquote { body { - line-height: 1.5; // Add accessible line-height -webkit-font-smoothing: antialiased; // Improve text rendering for modern high-dpi screens } -// Reasonable line-height for headings -h1, h2, h3 { - line-height: 1.2; -} - // Improve media defaults img, picture, video, canvas, svg { display: block;