File tree 2 files changed +11
-11
lines changed
2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 13
13
nav {
14
14
@include font-size (.875rem );
15
15
16
- ul {
17
- padding-left : 0 ;
18
- list-style : none ;
19
-
20
- ul {
21
- padding-left : 1rem ;
22
- margin-top : .25rem ;
23
- }
16
+ ul ul {
17
+ padding-left : 1rem ;
18
+ margin-top : .25rem ;
24
19
}
25
20
26
21
li {
27
22
margin-bottom : .25rem ;
23
+
24
+ > .nav-link.active {
25
+ background-color : $bd-purple-light ;
26
+ }
28
27
}
29
28
30
29
a {
31
30
color : inherit ;
32
31
33
- & :not (:hover ) {
34
- text-decoration : none ;
32
+ & :hover: not (.active ) {
33
+ text-decoration : underline ;
35
34
}
36
35
37
36
code {
Original file line number Diff line number Diff line change
1
+ {{ define "body_override" }}< body data-bs-spy ="scroll " data-bs-offset ="30 " tabindex ="0 " data-bs-target ="#TableOfContents "> {{ end }}
1
2
{{ define "main" }}
2
3
{{ partial "docs-subnav" . }}
3
4
@@ -19,7 +20,7 @@ <h1 class="bd-title" id="content">{{ .Title | markdownify }}</h1>
19
20
{{ if (eq .Page.Params.toc true) }}
20
21
< div class ="bd-toc mt-4 mb-5 my-md-0 ps-xl-3 mb-lg-5 text-muted ">
21
22
< strong class ="d-block h6 my-2 pb-2 border-bottom "> On this page</ strong >
22
- {{ .TableOfContents }}
23
+ {{ .Page. TableOfContents | replaceRE "( < li > )" " < li class = \ "nav-item\" > " | replaceRE "( < ul > )" " < ul class = \ "nav nav-pills flex-column\" > " | replaceRE "(?s:href)" "class=\"nav-link py-0 px-1\" href" | safeHTML }}
23
24
</ div >
24
25
{{ end }}
25
26
You can’t perform that action at this time.
0 commit comments