Skip to content

Commit 493738c

Browse files
Sylvain CorlaySylvain Corlay
authored andcommitted
Hide table of content in blog posts for narrow screens
1 parent 389c7d9 commit 493738c

3 files changed

Lines changed: 14 additions & 26 deletions

File tree

src/css/custom.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,3 +715,17 @@ html:not([data-navbar-home-top]) .navbar__link:hover {
715715
padding-right: var(--ifm-spacing-lg);
716716
}
717717
}
718+
719+
/* Hide table of contents on narrow screens for blog posts */
720+
@media (max-width: 996px) {
721+
/* Hide the TOC column */
722+
.mdxPageWrapper_j9I6 .col.col--2 {
723+
display: none;
724+
}
725+
726+
/* Expand main content to full width */
727+
.mdxPageWrapper_j9I6 .col.col--8 {
728+
flex: 0 0 100%;
729+
max-width: 100%;
730+
}
731+
}

src/pages/blogs/Decade-of-Open-Source.tsx

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)