File tree 2 files changed +21
-6
lines changed
2 files changed +21
-6
lines changed Original file line number Diff line number Diff line change 16
16
}
17
17
18
18
.sidebar-tree p .indented-block {
19
- 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 );
20
21
margin-bottom : 0 ;
21
22
}
22
23
25
26
display : block;
26
27
}
27
28
28
- .sidebar-tree p .indented-block > : not (.project-name ) {
29
- font-size : var (--toc-font-size );
30
- }
31
-
32
29
.sidebar-tree p .indented-block .project-name {
33
30
font-size : var (--sidebar-item-font-size );
34
31
font-weight : bold;
35
32
margin-right : calc (var (--sidebar-item-spacing-horizontal ) / 2.5 );
36
33
}
37
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
+ console . log ( window . location . hostname )
35
+ const sidebar = document . getElementById ( "sidebar-projects" )
36
+ sidebar . querySelectorAll ( `a[href*="${ window . location . hostname } "]` )
37
+ . forEach ( ( link ) => {
38
+ if ( ! link . classList . contains ( "active" ) ) {
39
+ const d = document . createElement ( 'span' ) ;
40
+ d . innerHTML = link . innerHTML ;
41
+ d . classList . add ( "active" ) ;
42
+ link . parentNode . replaceChild ( d , link ) ;
43
+ }
44
+ } ) ;
45
+ } ) ( )
46
+ </ script >
You can’t perform that action at this time.
0 commit comments