File tree 2 files changed +19
-15
lines changed
2 files changed +19
-15
lines changed Original file line number Diff line number Diff line change 1
- // stylelint-disable selector-max-type
2
-
3
1
.bd-toc {
4
2
@include media-breakpoint-up (lg) {
5
3
position : sticky ;
10
8
overflow-y : auto ;
11
9
}
12
10
13
- nav {
11
+ . nav {
14
12
@include font-size (.875rem );
15
13
16
- ul ul {
14
+ ul {
17
15
padding-left : 1rem ;
18
- margin-top : .25rem ;
19
16
}
20
17
21
- li {
22
- margin-bottom : .25rem ;
23
-
24
- > .nav-link.active {
25
- background-color : $bd-purple-light ;
18
+ .nav-link {
19
+ padding : .125rem 0 .125rem .9rem ;
20
+ margin-left : -1rem ;
21
+ border-left : .1rem solid transparent ;
22
+ @include border-radius (0 );
23
+
24
+ & :hover ,
25
+ & .active {
26
+ font-weight : 500 ;
27
+ color : $bd-purple ;
28
+ background-color : transparent ;
29
+ border-left-color : $bd-purple-light ;
30
+ }
31
+ & .active {
32
+ padding-left : .8em ;
33
+ border-left-width : .2em ;
26
34
}
27
35
}
28
36
29
37
a {
30
38
color : inherit ;
31
39
32
- & :hover:not (.active ) {
33
- text-decoration : underline ;
34
- }
35
-
36
40
code {
37
41
font : inherit ;
38
42
}
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ <h1 class="bd-title" id="content">{{ .Title | markdownify }}</h1>
20
20
{{ if (eq .Page.Params.toc true) }}
21
21
< div class ="bd-toc mt-4 mb-5 my-md-0 ps-xl-3 mb-lg-5 text-muted ">
22
22
< strong class ="d-block h6 my-2 pb-2 border-bottom "> On this page</ strong >
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
+ {{ .Page.TableOfContents | replaceRE "(< li > )" "< li class =\ "nav-item\"> " | replaceRE "(< ul > )" "< ul class =\ "nav nav-pills flex-column\"> " | replaceRE "(?s:href)" "class=\"nav-link\" href" | safeHTML }}
24
24
</ div >
25
25
{{ end }}
26
26
You can’t perform that action at this time.
0 commit comments