From e75728de2309971bc4fbc12205163cea7f24f920 Mon Sep 17 00:00:00 2001 From: interlope Date: Mon, 1 Jun 2026 23:25:34 +0200 Subject: [PATCH] fix: center icons in back-to-top button and code copy button --- css/style.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/css/style.css b/css/style.css index 1fae253..760bc5e 100644 --- a/css/style.css +++ b/css/style.css @@ -1629,6 +1629,13 @@ footer.footer-modern a:hover { background: var(--accent-hover); } +/* display:block neutralises Bootstrap Icons' vertical-align:-.125em so the + glyph sits dead-centre inside the flex button */ +.back-to-top i { + display: block; + line-height: 1; +} + /* ======================================== COPY-TO-CLIPBOARD ON CODE BLOCKS ======================================== */ @@ -1674,6 +1681,7 @@ footer.footer-modern a:hover { } .code-copy i { + display: block; font-size: 0.95rem; line-height: 1; }