From 48463b1645891b39fc230ffba0aa51f270cf9135 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 4 Oct 2025 15:02:05 +0300 Subject: fix(styles): Don't add extra margin below solution links Since it floats right it becomes a block element, which undoes the margin overlap between a header and a paragraph. --- src/styles.css | 1 + 1 file changed, 1 insertion(+) (limited to 'src/styles.css') diff --git a/src/styles.css b/src/styles.css index c039f03..7bf175e 100644 --- a/src/styles.css +++ b/src/styles.css @@ -268,6 +268,7 @@ article > #article-container > h1:first-child { /*#### Exercise solution ####*/ .exercise-solution { float: right; font-weight: bold; } +.exercise-solution ~ p { margin-top: 0; } /* Slightly smaller than browser defaults https://stackoverflow.com/a/70720104/12036073 https://stackoverflow.com/a/47560151/12036073 */ h2 ~ .exercise-solution { font-size: 1.4em; margin-top: 0.6em; } -- cgit v1.3.1-26-gb76a