X-Git-Url: http://unremediatedgender.space/source?a=blobdiff_plain;f=theme%2Fstatic%2Fcss%2Fmain.css;h=1d9fedd258a8712e65e7c83f542cdc3ee333d079;hb=52b4531eb1824493f20873d11495e84e65ce408b;hp=d63eb710801de3e2ce85838a16acf1ad4f00ac01;hpb=55d90e01cd1c5d2cefb4f42bdb3ded39ff9121db;p=Ultimately_Untrue_Thought.git diff --git a/theme/static/css/main.css b/theme/static/css/main.css index d63eb71..1d9fedd 100644 --- a/theme/static/css/main.css +++ b/theme/static/css/main.css @@ -115,6 +115,10 @@ h1 { font-size: 2em; } +h3 { + font-size: 1.35em; +} + h1 a { color: inherit; border-bottom: none; @@ -374,9 +378,43 @@ p.flower-break { font-size: 85%; } -// XXX—why isn't this working?! -// https://stackoverflow.com/questions/15643614/double-underline-tag +/* XXX—why isn't this working?! https://stackoverflow.com/questions/15643614/double-underline-tag */ .extra-underline { 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: 2px 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; +}