X-Git-Url: http://unremediatedgender.space/source?p=Ultimately_Untrue_Thought.git;a=blobdiff_plain;f=theme%2Fstatic%2Fcss%2Fmain.css;fp=theme%2Fstatic%2Fcss%2Fmain.css;h=b99ca25d3999b77ff56a6cbe7bce40b61a9f8e35;hp=54267af4235fe807aa02d118684b069145110538;hb=8e69675d2b4984e1a815105d8cc2256115c62d4b;hpb=7fb8668bed5cb8806a57e8b45cd38c915a7136d6 diff --git a/theme/static/css/main.css b/theme/static/css/main.css index 54267af..b99ca25 100644 --- a/theme/static/css/main.css +++ b/theme/static/css/main.css @@ -384,3 +384,44 @@ p.flower-break { text-decoration: underline; border-bottom: 3px double solid #000; } + + +// Thanks to Said Achmiz for table-of-contents styling +.toc { + clear: right; + max-width: calc(50% - 1.5em); + font-size: 0.85em; + margin-left: 1.5em; + padding: 0.5em; + border: 1px dotted #d6d6d6; +} +.toc ul { + list-style-type: none; + padding-left: 1.5em; + margin: 0; + line-height: 1.2; +} +.toc li { + text-indent: -1.5em; + margin-bottom: 0.25em; + padding-left: 1.5em; + position: relative; +} +.toc li::before { + content: counter(list-item); + position: absolute; + width: 1em; + text-indent: 0; + right: calc(100% + 0.5em); + text-align: right; + color: #bbb; +} +.toc a { + border: none; +} +.heading { + line-height: 1.1; +} +.heading a { + border: none; +}