Skip to content

Commit

Permalink
Style corrections to ToC
Browse files Browse the repository at this point in the history
  • Loading branch information
x1y committed Oct 12, 2024
1 parent d2cb814 commit 4a7e095
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion themes/pinetheme/assets/css/documentation.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
#doc-nav .sidebar-nav ul {
padding-left: 0 !important;
}
#doc-nav .sidebar-nav > ul > ul {
#doc-nav .sidebar-nav ul ul {
border-left: 1px solid #fafafa;
margin-left: 10px;
}
Expand Down
4 changes: 1 addition & 3 deletions themes/pinetheme/assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -888,9 +888,7 @@ tbody {


/* Table of contents */
nav#TableOfContents {
margin-bottom: 14px;
}

nav#TableOfContents ul, li{
padding-bottom: 0 !important;
}
Expand Down
18 changes: 8 additions & 10 deletions themes/pinetheme/layouts/partials/doc-nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,15 @@ <h3>Table of contents</h3>
<ul>
{{ range $section.Pages.ByParam "menu.docs.weight"}}

{{ if .TableOfContents }}

<li>
<strong>
<a href="#{{ .Title | anchorize }}">{{ .Title }}</a>
</strong>
{{ .TableOfContents }}
</li>

{{ end }}
<li>
<strong>
<a class="sidebar-nav-subitem" href="#{{ .Title | anchorize }}">{{ .Title }}</a>
</strong>
{{ .TableOfContents }}
</li>

{{ end }}

</ul>

{{ else }}
Expand Down

0 comments on commit 4a7e095

Please sign in to comment.