From c816f145962caa6f65885176a86d415dff755a2a Mon Sep 17 00:00:00 2001 From: mntn <85877297+mntn-xyz@users.noreply.github.com> Date: Tue, 3 Aug 2021 10:41:42 -0400 Subject: [PATCH] Prevent super/subscript from affecting line height This keeps line height static and brings in the vertical position of super/subscript slightly to prevent overlap with multiple lines. --- static/css/typography.css | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/static/css/typography.css b/static/css/typography.css index 5901591..9803b4b 100644 --- a/static/css/typography.css +++ b/static/css/typography.css @@ -153,3 +153,13 @@ hr:after { color: var(--bright-bg); } +/* Prevent super/sub from affecting line height */ +sup, sub { + vertical-align: baseline; + position: relative; + top: -0.25rem; + font-size: unset; +} +sub { + top: 0.25rem; +}