aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/static
diff options
context:
space:
mode:
authorGravatar kosayoda <[email protected]>2021-04-19 21:32:26 +0800
committerGravatar kosayoda <[email protected]>2021-04-19 21:38:08 +0800
commit348ee615ebd62a3449a6d0a8426aba2d3029333b (patch)
tree0a98b8040f455a3279ab91cb8510f86fe6ec32d6 /pydis_site/static
parentFix unresolving links. (diff)
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.
Diffstat (limited to 'pydis_site/static')
-rw-r--r--pydis_site/static/css/content/page.css9
1 files changed, 9 insertions, 0 deletions
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;
+}