| .docItemContainer header + *, |
| .docItemContainer article > *:first-child { |
| margin-top: 0; |
| } |
| |
| /* Breadcrumbs on the left, the page's AI actions pinned to the right. On narrow |
| viewports the actions wrap onto their own line instead of being pushed out of |
| the viewport. */ |
| .docItemTopBar { |
| display: flex; |
| flex-wrap: wrap; |
| align-items: flex-start; |
| justify-content: space-between; |
| gap: 12px 16px; |
| margin-bottom: var(--ifm-spacing-vertical); |
| } |
| |
| /* Breadcrumbs bring their own bottom margin; the row now owns that spacing, so |
| drop it to avoid a doubled gap. `min-width: 0` lets a long trail shrink (it |
| scrolls on its own) rather than shoving the actions off-screen. */ |
| .docItemTopBar > nav { |
| margin-bottom: 0; |
| min-width: 0; |
| } |
| |
| /* Keep the actions flush right even once they wrap onto their own line: the |
| dropdown is anchored to the trigger's right edge, so a left-aligned trigger |
| would send the panel off the left of the viewport. */ |
| .docItemTopBar > :last-child { |
| margin-left: auto; |
| } |
| |
| /* 1280px is where design-style.scss stops hiding the TOC column, so the two |
| have to agree. When they disagreed (1280 vs 1440), everything between those |
| two widths rendered the TOC alongside an article still claiming 100%, which |
| squeezed the TOC down to ~185px. */ |
| @media (min-width: 1280px) { |
| /* The TOC only needs a fixed column; every remaining pixel goes to the |
| article instead of being locked up in a percentage-based col--3. */ |
| .docItemCol { |
| flex: 1 1 auto; |
| max-width: calc(100% - var(--doc-toc-width)) !important; |
| margin-right: 0; |
| } |
| |
| /* !important: Infima's own .col--3 rule (flex: 0 0 25%) wins otherwise. */ |
| .docTocCol { |
| flex: 0 0 var(--doc-toc-width) !important; |
| max-width: var(--doc-toc-width); |
| } |
| } |
| /* Below 1280px the TOC is hidden, so the article spans the full width. */ |
| @media screen and (max-width: 1280px) { |
| .docItemCol { |
| max-width: calc(100%) !important; |
| margin-right: 0; |
| } |
| } |