From 27caa0a496307db1bf23d78bc9d380b347e22359 Mon Sep 17 00:00:00 2001 From: Marcel Bischoff Date: Thu, 24 Mar 2022 09:56:40 +0100 Subject: [PATCH] Fix blockquote empty overhang When the blockquote element only contains a p element but no footer element or similar trailing tag, the ::after pseudo class paints a trailing empty line which only contains the ">" character. This is caused by an overhanging paragraph margin. Removing the margin for any last element contained in blockquote removes this visual glitch. --- lib/terminal.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/terminal.css b/lib/terminal.css index ac04a3d..297b598 100644 --- a/lib/terminal.css +++ b/lib/terminal.css @@ -156,6 +156,10 @@ blockquote::after { color: #9ca2ab; } +blockquote *:last-child { + margin-bottom: 0; +} + code { font-weight: inherit; background-color: var(--code-bg-color);