From 348ee615ebd62a3449a6d0a8426aba2d3029333b Mon Sep 17 00:00:00 2001 From: kosayoda Date: Mon, 19 Apr 2021 21:32:26 +0800 Subject: Increase padding between text and images in lists. This has a caveat in that there may be additional padding if the first thing in a list item is an image, but it is very unlikely in practice, so it's not handled for now. --- pydis_site/static/css/content/page.css | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'pydis_site/static/css/content') diff --git a/pydis_site/static/css/content/page.css b/pydis_site/static/css/content/page.css index 3ac41d1b..d831f86d 100644 --- a/pydis_site/static/css/content/page.css +++ b/pydis_site/static/css/content/page.css @@ -68,3 +68,12 @@ ul.menu-list.toc { .toc > ul > li { list-style-type: disc; } + +/* + * Increase space between images and any text above the image in a list. + * This is used instead of a newline between the image and the text in markdown + * so the image remains left-aligned with the list item. + */ +li img { + margin-top: 0.5em; +} -- cgit v1.2.3