File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,8 +59,12 @@ md-path__list > .md-path__item > .md-path__link {
5959 margin-right : 6.7% ;
6060}
6161
62- /* This forces all main content EXCEPT the index page to be 45rem wide */
63- .md-sidebar--primary : is ([hidden ]) ~ .md-content : not (: has (.md-content__inner .index-page )) {
62+ /* This forces all main content EXCEPT the index and blog pages to be 45rem wide */
63+ /* The blog page includes the blog left sidebar in the width, and needs to be ignored */
64+ /* Docs page has its own width limits, and is ignored here. */
65+ .md-sidebar--primary : is ([hidden ]) ~ .md-content : not (: has (.index-page , .md-sidebar--post )) .md-content__inner : not (: has (.docs-page )),
66+ .md-post__content ,
67+ .md-content--post > .md-content__inner {
6468 max-width : 45rem ;
6569}
6670
@@ -339,6 +343,11 @@ a.index-main-keep {
339343 min-width : 15rem ;
340344}
341345
346+ /* The right sidebar when not on blog pages */
347+ .md-sidebar--secondary : has (+ : not (.md-content--post )) {
348+ margin-right : 5.5% ;
349+ }
350+
342351h2 # sidebar {
343352 margin-top : 0rem ;
344353}
@@ -537,6 +546,10 @@ h1 .news {
537546 width : 13rem ;
538547}
539548
549+ .md-content--post > .md-content__inner {
550+ margin-top : 1.8rem ;
551+ }
552+
540553.md-post__content h2 : first-of-type {
541554 display : none;
542555}
@@ -553,6 +566,7 @@ h1 .news {
553566.md-sidebar--primary : is ([hidden ]) ~ .md-content .md-content--post {
554567 margin-left : 0 ;
555568 margin-right : 0 ;
569+ max-width : fit-content;
556570}
557571
558572@media screen and (min-width : 76.25em ) {
You can’t perform that action at this time.
0 commit comments