File tree Expand file tree Collapse file tree 1 file changed +24
-17
lines changed Expand file tree Collapse file tree 1 file changed +24
-17
lines changed Original file line number Diff line number Diff line change @@ -12,39 +12,41 @@ hr.sidebar {
1212aside {
1313 width : 218px ;
1414 margin-bottom : 35px ;
15- position : sticky ;
1615 top : 0 ;
1716 max-height : 100vh ;
18- overflow-y : auto ;
1917 /* align with the top of the content */
2018 padding-top : 46px ;
2119}
2220
2321#toc {
2422 border : 1px solid var (--main-border );
2523 padding : .5em ;
26- margin-top : 1 rem ;
27- border-top : 1 px solid var ( --main-border ) ;
28- background : var ( --sidebar-toc-bg-color ) ;
29- margin-right : 0.5 rem ;
30- }
24+ margin : 0 -1 px 0 0 ; /* eat the #main border */
25+ border-right : none ;
26+ z-index : 100 ;
27+ position : relative ;
28+ background : var ( --main-bg );
3129
32- #toc ul {
33- list-style-type : square ;
34- }
30+ summary {
31+
32+ }
33+
34+ ul {
35+ list-style-type : square ;
3536
36- #toc li {
37- /* use margin instead of line height for spacing because sometimes the
38- headings wrap onto multiple lines */
39- line-height : 1.2em ;
40- margin : 6px 0 ;
37+ li {
38+ /* use margin instead of line height for spacing because sometimes the
39+ headings wrap onto multiple lines */
40+ line-height : 1.2em ;
41+ margin : 6px 0 ;
42+ font-size : 0.8em ;
43+ }
44+ }
4145}
4246
4347aside .sidebar {
44- font-size : 13px !important ;
4548 line-height : $base-line-height * 0.75 ;
4649 p {
47- font-size : 13px !important ;
4850 line-height : $base-line-height * 0.75 ;
4951 }
5052
@@ -110,6 +112,11 @@ aside.sidebar.active {
110112 display : none ;
111113}
112114
115+ aside details ,
116+ aside nav {
117+ padding : 0 1.5em ;
118+ }
119+
113120// Breakpoint ----------------
114121@media (max-width : $default ) {
115122 .sidebar-btn {
You can’t perform that action at this time.
0 commit comments