File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717 "codemirror" : " ^5.65.2" ,
1818 "copy-to-clipboard" : " ^3.3.1" ,
1919 "js-yaml" : " ^4.1.0" ,
20- "next" : " 14.2.35 " ,
20+ "next" : " 14.1.4 " ,
2121 "prismjs" : " ^1.27.0" ,
2222 "react" : " 18.2.0" ,
2323 "react-codemirror2" : " ^7.2.1" ,
Original file line number Diff line number Diff line change @@ -565,3 +565,94 @@ main .CodeMirror-scroll::-webkit-scrollbar {
565565 display : initial;
566566 }
567567}
568+
569+ /* SideNav styles */
570+ .sidenav {
571+ position : sticky;
572+ top : var (--nav-height );
573+ height : calc (100vh - var (--nav-height ));
574+ flex : 0 0 240px ;
575+ overflow-y : auto;
576+ padding : 2rem 0 2rem 2rem ;
577+ }
578+
579+ .sidenav h3 {
580+ font-weight : 500 ;
581+ margin : 0.5rem 0 0 ;
582+ padding-bottom : 0.5rem ;
583+ }
584+
585+ .sidenav ul {
586+ margin : 0 ;
587+ padding : 0 ;
588+ }
589+
590+ .sidenav li {
591+ list-style-type : none;
592+ margin : 0 0 0.7rem 0.7rem ;
593+ font-size : 14px ;
594+ font-weight : 400 ;
595+ }
596+
597+ .sidenav li a {
598+ text-decoration : none;
599+ }
600+
601+ .sidenav li a : hover ,
602+ .sidenav li .active > a {
603+ text-decoration : underline;
604+ }
605+
606+ @media screen and (max-width : 600px ) {
607+ .sidenav {
608+ display : none;
609+ }
610+ }
611+
612+ /* TableOfContents styles */
613+ .toc {
614+ position : sticky;
615+ top : calc (2.5rem + var (--nav-height ));
616+ max-height : calc (100vh - var (--nav-height ));
617+ flex : 0 0 240px ;
618+ align-self : flex-start;
619+ margin-bottom : 1rem ;
620+ padding : 0.25rem 0 0 ;
621+ border-left : 1px solid var (--toc-border );
622+ }
623+
624+ .toc ul {
625+ margin : 0 ;
626+ padding : 0 ;
627+ }
628+
629+ .toc li {
630+ list-style-type : none;
631+ margin : 0 0 1rem 1.5rem ;
632+ font-size : 14px ;
633+ font-weight : 400 ;
634+ }
635+
636+ .toc li a {
637+ text-decoration : none;
638+ }
639+
640+ .toc li a : hover ,
641+ .toc li .active a {
642+ text-decoration : underline;
643+ }
644+
645+ .toc li .padded {
646+ padding-left : 1rem ;
647+ }
648+
649+ @media screen and (max-width : 1000px ) {
650+ .toc {
651+ display : none;
652+ }
653+ }
654+
655+ /* Main article padding for docs pages */
656+ main article {
657+ padding : 2rem 1.5rem 3rem ;
658+ }
You can’t perform that action at this time.
0 commit comments