Cleaner ToC CSS, certainly need to fix for #modern-theme

This commit is contained in:
Yann Esposito (Yogsototh) 2019-11-21 17:24:11 +08:00
parent bbe8cf6891
commit 361b27d196
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646

View file

@ -111,7 +111,20 @@ h6::before {
hr {
border: 0;
}
#preamble:after, #postamble:before, hr:after {
#preamble h1 {
margin-top: 0;
}
#table-of-contents,
#table-of-contents ul,
#table-of-contents h2
{
padding:0;
margin:0;
}
#table-of-contents {
margin-bottom: 1em;
}
#postamble:before, hr:after {
text-align: center;
content: "-----------------------------------------------------------------------------";
display:block;
@ -130,14 +143,14 @@ pre:before {
pre code {
background: none;
}
blockquote {
blockquote,#table-of-contents {
margin-left: 0;
position: relative;
padding-left: 17px;
padding-left: 2ch;
overflow: hidden;
}
blockquote:after {
#table-of-contents:after, blockquote:after {
content: ">\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>";
white-space: pre;
position: absolute;