From 6b729c6acff2bac06a7601d347832fd2687cb03d Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Fri, 8 Aug 2025 14:01:37 -0500 Subject: [PATCH] Adjust margins on related-posts to match rest of body Didn't notice this when writing 4e753395ba12b8633b452a548a30802551e8fe7f --- assets/css/bobastyle.css | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/assets/css/bobastyle.css b/assets/css/bobastyle.css index 7a1fcb6..72c889c 100644 --- a/assets/css/bobastyle.css +++ b/assets/css/bobastyle.css @@ -891,10 +891,14 @@ aside.quote { /* Related posts section {{{ */ +/* set the margins on the contents instead of the parent .related-posts + * so that the posts in the list clip off the edge of the screen, + * which makes a more obvious indicator that it's scrollable + */ + .related-posts > hr, .related-posts > h1 { - margin-left: 20px; - margin-right: 20px; + margin: var(--page-margin); } .related-posts .page { @@ -904,10 +908,10 @@ aside.quote { } .related-posts .page:first-child { - margin-left: 20px; + margin-left: var(--page-margin); } .related-posts .page:last-child { - margin-right: 20px; + margin-right: var(--page-margin); } .related-posts .page-list { @@ -915,6 +919,7 @@ aside.quote { flex-direction: row; gap: 20px; overflow-x: auto; + margin-bottom: var(--page-margin); } /* }}} */