File tree Expand file tree Collapse file tree 1 file changed +29
-14
lines changed
Expand file tree Collapse file tree 1 file changed +29
-14
lines changed Original file line number Diff line number Diff line change 11: root {
2- --toc-width : 310 px ;
2+ --toc-width : 270 px ;
33 --center-content-toc-shift : calc (-1 * var (--toc-width ) / 2 );
4- --center-content-shift : 0 ;
54}
65
76.nav-chapters {
1716 margin-left : var (--page-padding );
1817}
1918
20- @media only screen and ( max-width : 1439 px ) {
21- . sidetoc {
22- display : none ;
19+ @media only screen {
20+ main {
21+ display : flex ;
2322 }
24- }
2523
26- @media only screen and ( min -width: 1440 px ) {
27- main {
28- position : relative ;
29- /* center the text */
30- /* left: var(--center-content-shift); */
24+ @media ( max -width: 1179 px ) {
25+ . sidebar-hidden . sidetoc {
26+ display : none ;
27+ }
28+ }
3129
32- /* or, center both the text and the TOC */
33- left : var (--center-content-toc-shift );
34- display : flex;
30+ @media (max-width : 1439px ) {
31+ .sidebar-visible .sidetoc {
32+ display : none;
33+ }
34+ }
35+
36+ @media (1180px <= width <= 1439px) {
37+ .sidebar-hidden main {
38+ position : relative;
39+ left : var (--center-content-toc-shift );
40+ }
3541 }
42+
43+ @media (1440px <= width <= 1700px) {
44+ .sidebar-visible main {
45+ position : relative;
46+ left : var (--center-content-toc-shift );
47+ }
48+ }
49+
3650 .content-wrap {
3751 overflow-y : auto;
3852 width : 100% ;
3953 }
54+
4055 .sidetoc {
4156 margin-top : 20px ;
4257 margin-left : 10px ;
You can’t perform that action at this time.
0 commit comments