File tree Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 22
22
$main- bor der: # e2e0d8 ;
23
23
$bg- color : # f0efe7 url ($baseurl + "images/bg/body.jpg" );
24
24
$sidebar- bg- color : # efefe7 ;
25
+ $sidebar- to c- bg- color : lighten($sidebar- bg- color , 4%);
25
26
$no- changes- bg- color : # f5f5f3 ;
26
27
$dropdown- active-bg- color : # fff ;
27
28
$versions- footer- bg- color : # eae9e0 ;
55
56
$main- bor der: # 5e5e5a;
56
57
$bg- color : # 2a2a2aff;
57
58
$sidebar- bg- color : # 3d3d3a;
59
+ $sidebar- to c- bg- color : # {$main- bg};
58
60
$no- changes- bg- color : # 515150;
59
61
$dropdown- active-bg- color : # 515150;
60
62
$versions- footer- bg- color : # 1f1f1e;
185
187
- - main- bg: # {$main- bg};
186
188
- - main- bor der: # {$main- bor der};
187
189
- - sidebar- bg- color : # {$sidebar- bg- color };
190
+ - - sidebar- to c- bg- color : # {$sidebar- to c- bg- color };
188
191
- - bg- color : # {$bg- color };
189
192
- - no- changes- bg- color : # {$no- changes- bg- color };
190
193
- - dropdown- active-bg- color : # {$dropdown- active-bg- color };
Original file line number Diff line number Diff line change @@ -37,6 +37,21 @@ aside {
37
37
padding-top : 46px ;
38
38
}
39
39
40
+ #toc {
41
+ border : 1px solid var (--main-border );
42
+ padding : .5em ;
43
+ margin-top : 1rem ;
44
+ border-top : 1px solid var (--main-border );
45
+ background : var (--sidebar-toc-bg-color );
46
+ }
47
+
48
+ #toc li {
49
+ /* use margin instead of line height for spacing because sometimes the
50
+ headings wrap onto multiple lines */
51
+ line-height : 1.2em ;
52
+ margin : 6px 0 ;
53
+ }
54
+
40
55
#content {
41
56
width : 702px ;
42
57
}
Original file line number Diff line number Diff line change 52
52
53
53
{{ $headings := .Params.headings }}
54
54
{{ if $headings }}
55
- < ul >
55
+ < ul id =" toc " >
56
56
< li > Table of Contents
57
57
< ul class ="expanded ">
58
58
{{ range $i, $item := $headings }}
You can’t perform that action at this time.
0 commit comments