diff options
author | 2021-04-03 15:32:20 +0800 | |
---|---|---|
committer | 2021-04-03 15:32:20 +0800 | |
commit | f822d4fce05d228021450714a73cd84e143bbddc (patch) | |
tree | 1c1d617891f6657766c9a2b15d4f6f199bfbf9e8 /pydis_site/static | |
parent | Merge pull request #421 from ks129/resources-lists (diff) | |
parent | Use metadata titles in Sub-Articles dropdown. (diff) |
Merge pull request #468 from python-discord/content-app-improvements
Dewikification: Content app improvements.
Diffstat (limited to 'pydis_site/static')
-rw-r--r-- | pydis_site/static/css/content/page.css | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pydis_site/static/css/content/page.css b/pydis_site/static/css/content/page.css index 57d7472b..3ac41d1b 100644 --- a/pydis_site/static/css/content/page.css +++ b/pydis_site/static/css/content/page.css @@ -29,3 +29,42 @@ code.hljs { :is(h1, h2, h3, h4, h5, h6):hover > .headerlink { display: inline; } + +/* + * Display <em> tags immediately following <img> tags like figure subcaptions. + * Note: There must not be a newline between the image and the italicized line + * for this to work. Otherwise, it's regular markdown. + * + * Image caption: + * + *  + * *This is my caption.* + * + */ +img + em { + /* Place the caption on it's own line */ + display: block; + white-space: pre; + + /* 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; +} |