File tree 2 files changed +20
-9
lines changed
2 files changed +20
-9
lines changed Original file line number Diff line number Diff line change 1
1
h2 {
2
- font-size : 2rem ;
3
2
margin-bottom : 1.25rem ;
4
3
margin-top : 1.25rem ;
5
4
scroll-margin-top : 0.5rem ;
6
5
}
7
6
8
7
h3 {
9
- font-size : 1.5rem ;
10
8
margin-bottom : 1.25rem ;
11
9
margin-top : 1.25rem ;
12
10
scroll-margin-top : 0.5rem ;
13
11
}
14
12
15
13
h4 {
16
- font-size : 1.25rem ;
17
14
margin-bottom : 1.25rem ;
18
15
scroll-margin-top : 0.5rem ;
19
16
}
20
17
21
18
.sidebar-tree p .indented-block {
22
- padding : var (--sidebar-item-spacing-vertical ) var (--sidebar-item-spacing-horizontal ) 0 var (--sidebar-item-spacing-horizontal );
19
+ padding : var (--sidebar-item-spacing-vertical ) var (--sidebar-item-spacing-horizontal ) 0
20
+ var (--sidebar-item-spacing-horizontal );
23
21
margin-bottom : 0 ;
24
22
}
25
23
28
26
display : block;
29
27
}
30
28
31
- .sidebar-tree p .indented-block > : not (.project-name ) {
32
- font-size : var (--toc-font-size );
33
- }
34
-
35
29
.sidebar-tree p .indented-block .project-name {
36
30
font-size : var (--sidebar-item-font-size );
37
31
font-weight : bold;
38
32
margin-right : calc (var (--sidebar-item-spacing-horizontal ) / 2.5 );
39
33
}
40
34
35
+ .sidebar-tree .active {
36
+ font-weight : bold;
37
+ }
Original file line number Diff line number Diff line change 1
- < div class ="sidebar-tree projects ">
1
+ < div class ="sidebar-tree projects " id =" sidebar-projects " >
2
2
< p class ="caption " role ="heading ">
3
3
< span class ="caption-text "
4
4
> team git-pull / < a href ="https://www.git-pull.com/ "> Tony Narlock</ a > </ span
29
29
</ span >
30
30
</ p >
31
31
</ div >
32
+ < script type ="text/javascript ">
33
+ ( ( ) => {
34
+ const sidebar = document . getElementById ( "sidebar-projects" )
35
+ sidebar . querySelectorAll ( `a[href*="${ window . location . hostname } "]` )
36
+ . forEach ( ( link ) => {
37
+ if ( ! link . classList . contains ( "active" ) ) {
38
+ const d = document . createElement ( 'span' ) ;
39
+ d . innerHTML = link . innerHTML ;
40
+ d . classList . add ( "active" ) ;
41
+ link . parentNode . replaceChild ( d , link ) ;
42
+ }
43
+ } ) ;
44
+ } ) ( )
45
+ </ script >
You can’t perform that action at this time.
0 commit comments