Skip to content

Commit

Permalink
chore: update style
Browse files Browse the repository at this point in the history
  • Loading branch information
shivan-s committed Oct 27, 2024
1 parent 9d5706e commit 8647d66
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
16 changes: 11 additions & 5 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ p,
figure,
small,
em,
ol,
ul,
strong,
h1,
h2,
Expand All @@ -72,11 +74,6 @@ h6 {
padding: 0;
}

ol,
ul {
list-style-position: inside;
}

p {
font-size: var(--normal-size);
}
Expand Down Expand Up @@ -379,6 +376,14 @@ body > footer {
}
}

details.table-of-contents {
& ol,
ul {
padding-left: var(--small-gap);
list-style-position: inside;
}
}

div.content {
word-break: break-word;

Expand All @@ -402,6 +407,7 @@ div.content {

& ul ol {
list-style-position: inline;
padding-left: var(--small-gap);
}

& pre:has(code) {
Expand Down
2 changes: 1 addition & 1 deletion layouts/posts/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h1>{{ .Title }}</h1>
{{ end }}
</header>
<aside>
<details>
<details class="table-of-contents">
<summary>Table of Contents</summary>
{{ .TableOfContents }}
</details>
Expand Down

0 comments on commit 8647d66

Please sign in to comment.