From f216ff5dabfa0390fb902d19f74480634777f73c Mon Sep 17 00:00:00 2001 From: Jonathan Peacher Date: Wed, 21 Jun 2023 21:45:17 -0500 Subject: [PATCH] Preventing sup/sub from affecting line-height https://css-tricks.com/snippets/css/prevent-superscripts-and-subscripts-from-affecting-line-height/ --- simple.css | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/simple.css b/simple.css index b18f481..ef12bbe 100644 --- a/simple.css +++ b/simple.css @@ -649,6 +649,18 @@ dialog::backdrop { } } +/* Superscript & Subscript */ +/* Prevent scripts from affecting line-height. */ +sup, sub { + vertical-align: baseline; + position: relative; + top: -0.4em; +} + +sub { + top: 0.3em; +} + /* Classes for notices */ .notice { background: var(--accent-bg);