Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions assets/css/v2/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ nav {

/* content */
main {
max-width: 40rem;
min-width: 30rem;
max-width: 50rem;
min-width: 40rem;
margin: 2rem 2rem;
}

Expand Down Expand Up @@ -164,6 +164,11 @@ code {
font-family: 'JetBrains Mono', monospace;
}

pre.chroma {
overflow-x: auto;
box-sizing: border-box;
}

/* FILTHY HACKS BEGIN */

/* Override logo with black text version */
Expand Down
2 changes: 1 addition & 1 deletion assets/js/theme-switcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function useNewTheme(useNewTheme) {
});

// swap out v1 and v2 elements
const v1ElementIds = ["sidebar"]
const v1ElementIds = ["sidebar", "toc"]

v1ElementIds.forEach((elementId) => {
document.getElementById(elementId).style.display = useNewTheme ? "none" : "";
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ <h1>{{ .Title }}</h1>
</main>
{{ if and (gt .WordCount 200 ) (.Params.toc) }}
{{ if (add (len (findRE "<h3" .Content)) (len (findRE "<h2" .Content))) }}
<div class="col-md-3 d-none d-xl-block d-print-none nginx-toc align-top">
<div id="toc" class="col-md-3 d-none d-xl-block d-print-none nginx-toc align-top">
{{ partial "toc.html" . }}
</div>
{{ end }}
Expand Down