fix(article): unordered TOC style (#292)

closes https://github.com/CaiJimmy/hugo-theme-stack/issues/283
This commit is contained in:
Jimmy Cai 2021-08-08 16:47:58 +02:00 committed by GitHub
parent 61c021dae2
commit 5539a42b30
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -193,30 +193,34 @@
color: var(--card-text-color-main); color: var(--card-text-color-main);
#TableOfContents { #TableOfContents {
ol { ol,
counter-reset: item; ul {
list-style-type: none;
padding: 0;
margin: 0; margin: 0;
padding: 0;
} }
& > li { ol {
padding: 0; list-style-type: none;
margin: 0; counter-reset: item;
li:before {
counter-increment: item;
content: counters(item, ".") ". ";
font-weight: bold;
margin-right: 5px;
}
}
& > ul {
padding: 0 1em;
} }
li { li {
margin: 15px 20px; margin: 15px 20px;
padding: 5px; padding: 5px;
&::before { & > ol,
counter-increment: item; & > ul {
content: counters(item, ".") ". ";
font-weight: bold;
margin-right: 5px;
}
& > ol {
margin-top: 10px; margin-top: 10px;
padding-left: 10px; padding-left: 10px;
margin-bottom: -5px; margin-bottom: -5px;
@ -385,7 +389,8 @@
padding-bottom: 56.25%; padding-bottom: 56.25%;
overflow: hidden; overflow: hidden;
& > iframe, & > video { & > iframe,
& > video {
position: absolute; position: absolute;
width: 100%; width: 100%;
height: 100%; height: 100%;