|
1861 | 1861 | } |
1862 | 1862 | .md-typeset :is(h1, h2, h3, h4, h5, h6) a:hover { |
1863 | 1863 | text-decoration: underline; |
| 1864 | + color: inherit; /* keep the heading color — don't pick up Material's accent (lilac) on hover */ |
1864 | 1865 | } |
1865 | 1866 |
|
1866 | 1867 | /* Blog excerpt header (author avatars + date · category · read time) removed entirely on the |
|
1875 | 1876 | } |
1876 | 1877 |
|
1877 | 1878 | /* ===== Blog post (article) layout ========================================== */ |
1878 | | -/* Blog posts render NO left sidebar (overrides/blog-post.html) — only the article + right rail. |
1879 | | - The content div carries .md-content--blog (NOT Material's .md-content--post, which is a |
1880 | | - column-reverse flex meant to pair the post sidebar with the article). It's a CSS hook to widen |
1881 | | - the article to the same "collapsed left menu" layout as a docs page with the nav hidden: a |
1882 | | - 1280px region (960 body + 40 gap + 280 rail) centered in the viewport. :has() reaches ancestors. */ |
| 1879 | +/* Blog posts use the same desktop layout as the blog index/category pages: left nav sidebar + |
| 1880 | + article + right rail (On this page, then the relocated post metadata). The content div carries |
| 1881 | + .md-content--blog purely as a hook for that metadata relocation (see .cs-post-meta); layout-wise |
| 1882 | + it now matches a normal page, so no width/sidebar overrides are needed here. */ |
1883 | 1883 | @media screen and (min-width: 76.1875em) { |
1884 | | - .md-main__inner.md-grid:has(.md-content--blog) { |
1885 | | - max-width: 1280px; |
1886 | | - margin-left: auto; |
1887 | | - margin-right: auto; |
1888 | | - } |
1889 | | - .md-main__inner:has(.md-content--blog) .md-content { |
1890 | | - margin-left: 0; |
1891 | | - } |
1892 | | - .md-main__inner:has(.md-content--blog) .md-sidebar--secondary { |
1893 | | - margin-right: 0; |
1894 | | - } |
1895 | | - /* Blog posts render the primary nav only so the mobile drawer (burger) has it; on desktop the |
1896 | | - article spans the full width, so hide the left sidebar here. */ |
1897 | | - .md-main__inner:has(.md-content--blog) .md-sidebar--primary { |
1898 | | - display: none; |
1899 | | - } |
1900 | | - /* No left sidebar → drop the full-height vertical divider drawn at left:280px. Applies to blog |
1901 | | - posts and to any page that hides the nav (e.g. /terms, /privacy → .md-sidebar--primary[hidden]). */ |
1902 | | - body:has(.md-content--blog)::before, |
| 1884 | + /* Pages that hide the nav entirely (/terms, /privacy → .md-sidebar--primary[hidden]) have no |
| 1885 | + left sidebar, so drop the full-height vertical divider drawn at left:280px. */ |
1903 | 1886 | body:has(.md-sidebar--primary[hidden])::before { |
1904 | 1887 | display: none; |
1905 | 1888 | } |
|
0 commit comments