aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/static
diff options
context:
space:
mode:
authorGravatar kosayoda <[email protected]>2021-03-29 17:51:10 +0800
committerGravatar kosayoda <[email protected]>2021-03-29 17:51:10 +0800
commit69f33290b8bd12b95bb6c620a9a1422a5d11b798 (patch)
treed94133a648ec0b1d92798155bdc7dd50a358d2fe /pydis_site/static
parentDocument additional markdown features. (diff)
Allow adding a table of contents to a page.
Diffstat (limited to 'pydis_site/static')
-rw-r--r--pydis_site/static/css/content/page.css19
1 files changed, 19 insertions, 0 deletions
diff --git a/pydis_site/static/css/content/page.css b/pydis_site/static/css/content/page.css
index 97b297b2..3ac41d1b 100644
--- a/pydis_site/static/css/content/page.css
+++ b/pydis_site/static/css/content/page.css
@@ -49,3 +49,22 @@ img + em {
/* Style */
font-size: .875em;
}
+
+/*
+ * Remove extra padding on the left of TOC items
+ */
+ul.menu-list.toc {
+ margin-left: 0;
+}
+
+/*
+ * Remove bullets set by the markdown extension, since bulma adds vertical
+ * lines to represent nesting
+ */
+.toc li {
+ list-style-type: none;
+}
+/* ..but we still want bullets on the top <ul> items */
+.toc > ul > li {
+ list-style-type: disc;
+}