File tree 3 files changed +9
-4
lines changed
3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 77
77
78
78
/* content */
79
79
main {
80
- max-width : 40 rem ;
81
- min-width : 30 rem ;
80
+ max-width : 50 rem ;
81
+ min-width : 40 rem ;
82
82
margin : 2rem 2rem ;
83
83
}
84
84
@@ -164,6 +164,11 @@ code {
164
164
font-family : 'JetBrains Mono' , monospace;
165
165
}
166
166
167
+ pre .chroma {
168
+ overflow-x : auto;
169
+ box-sizing : border-box;
170
+ }
171
+
167
172
/* FILTHY HACKS BEGIN */
168
173
169
174
/* Override logo with black text version */
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ function useNewTheme(useNewTheme) {
29
29
} ) ;
30
30
31
31
// swap out v1 and v2 elements
32
- const v1ElementIds = [ "sidebar" ]
32
+ const v1ElementIds = [ "sidebar" , "toc" ]
33
33
34
34
v1ElementIds . forEach ( ( elementId ) => {
35
35
document . getElementById ( elementId ) . style . display = useNewTheme ? "none" : "" ;
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ <h1>{{ .Title }}</h1>
37
37
</ main >
38
38
{{ if and (gt .WordCount 200 ) (.Params.toc) }}
39
39
{{ if (add (len (findRE "< h3 " .Content)) (len (findRE "< h2" .Content))) }}
40
- < div class ="col-md-3 d-none d-xl-block d-print-none nginx-toc align-top ">
40
+ < div id =" toc " class ="col-md-3 d-none d-xl-block d-print-none nginx-toc align-top ">
41
41
{{ partial "toc.html" . }}
42
42
</ div >
43
43
{{ end }}
You can’t perform that action at this time.
0 commit comments