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.
This commit is contained in:
Marcel Bischoff 2022-03-24 09:56:40 +01:00 committed by Jonas D
parent 504ec3013e
commit 27caa0a496

View File

@ -156,6 +156,10 @@ blockquote::after {
color: #9ca2ab; color: #9ca2ab;
} }
blockquote *:last-child {
margin-bottom: 0;
}
code { code {
font-weight: inherit; font-weight: inherit;
background-color: var(--code-bg-color); background-color: var(--code-bg-color);