From 2b874b4fc3736fe8c0ee1efcab1cb886320aa57a Mon Sep 17 00:00:00 2001 From: Ash Date: Fri, 12 Jul 2024 17:14:40 +0200 Subject: [PATCH] fix(css): wrong underline under superscripts --- assets/main.scss | 10 +++++----- assets/syntax.scss | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/assets/main.scss b/assets/main.scss index 93eca2e..65479aa 100644 --- a/assets/main.scss +++ b/assets/main.scss @@ -51,6 +51,7 @@ article { a { color: color(peach); text-decoration: none; + padding: 0.05em; &:visited { color: color(mauve); @@ -111,10 +112,8 @@ li { } sup { - vertical-align: top; - position: relative; - top: -0.25em; - right: 0.05em; + line-height: 0; + vertical-align: super; } .highlight { @@ -134,6 +133,7 @@ sup { .md-heading > a { font-style: italic; + padding: 0; padding-right: 0.2ch; } @@ -151,7 +151,7 @@ sup { .footnote-ref, .footnote-backref { - padding: 0 0.25em; + padding: 0 0.15em; } .footnotes { diff --git a/assets/syntax.scss b/assets/syntax.scss index 7b6092f..5d5d37d 100644 --- a/assets/syntax.scss +++ b/assets/syntax.scss @@ -49,7 +49,7 @@ padding: 0 0.4em 0 0.4em; & .lnlinks { - padding: 0 0.25em; + padding: 0 0.15em; } } /* LineNumbers */ -- 2.45.2