diff options
| Commit | 48463b1645891b39fc230ffba0aa51f270cf9135 (patch) | |
|---|---|---|
| Author | 2025-10-04 15:02:05 +0300 | |
| Committer | 2025-10-04 15:02:05 +0300 | |
| Files | 9c0d22cc5cda75b36e0efc9a2aea663f85999a3f /src/styles.css | |
| syndamia.com-48463b1645891b39fc230ffba0aa51f270cf9135.tar syndamia.com-48463b1645891b39fc230ffba0aa51f270cf9135.tar.gz syndamia.com-48463b1645891b39fc230ffba0aa51f270cf9135.zip | ||
| Parent | 26e1284e6e0ff41bde6964d752efcf321c4029fa (diff) | |
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.
1 files changed, 1 insertions, 0 deletions
| -rw-r--r-- | src/styles.css | 1 |
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; } |