77 * 2. Basic image adjustments
88 */
99
10+ @import url (' https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap' );
11+ @import url (' https://rsms.me/inter/inter.css' ); /* Inter variable font – OpenMFP and Platform Mesh sites */
12+
13+ html , body {
14+ font-family : ' Inter var' , ' Inter' , system-ui , sans-serif ;
15+ font-optical-sizing : auto ;
16+ }
1017/* FULL-WIDTH CONTAINER
1118 * --------------------
1219 * .container-fw = Full Width Container
1320 * If a page has the class .container-fw, the content is stretched to full width.
1421 * Important for landing pages or wide documentation pages.
1522 */
1623.container-fw {
17- max-width : 100% ; /* Uses the full available width */
18- padding-left : 1rem ; /* Minimal left padding */
24+ max-width : 100% ;
25+ /* Uses the full available width */
26+ padding-left : 1rem ;
27+ /* Minimal left padding */
1928
2029 /* Main content (docs-content) in full-width mode */
2130 .docs-content {
22- margin-left : 0rem !important ; /* Removes standard margins */
23- margin-right : 0rem !important ; /* so the content can use the full */
24- padding-right : 0rem !important ; /* width */
31+ margin-left : 0rem !important ;
32+ /* Removes standard margins */
33+ margin-right : 0rem !important ;
34+ /* so the content can use the full */
35+ padding-right : 0rem !important ;
36+ /* width */
2537 padding-left : 0rem !important ;
2638 }
2739
2840 /* Table of contents (TOC) in full-width mode */
2941 .docs-toc {
30- margin-left : 3rem !important ; /* Spacing to main content */
31- margin-right : 0rem !important ; /* No right margin */
32- padding-right : 0rem !important ; /* No right padding */
33- padding-left : 0rem !important ; /* or left */
42+ margin-left : 3rem !important ; /* slightly increased separation from main content */
43+ margin-right : 0rem !important ; /* no extra right margin */
44+ padding-right : 0rem !important ; /* no extra right padding */
45+ padding-left : 0rem !important ; /* keep left padding neutral */
3446 }
3547}
3648
4052 * They automatically fit the width of their container.
4153 */
4254.content img {
43- max-width : 100% ; /* Image never wider than its container */
44- height : auto ; /* Height scales proportionally */
45- }
55+ max-width : 100% ;
56+ /* Image never wider than its container */
57+ height : auto ;
58+ /* Height scales proportionally */
59+ }
60+
61+ /* Limit overall content container width and align with navbar padding */
62+ .wrap {
63+ max-width : 1920px ;
64+ margin-inline : auto ;
65+ padding-inline : 24px ; /* align horizontal content padding with header */
66+ }
67+
68+ /* WORD WRAPPING
69+ * -------------
70+ * Used to wrap individual words in spans for styling or animation.
71+ */
72+ .word {
73+ display : inline-block ;
74+ margin-right : 0.25em ;
75+ /* Add space between words wrapped in spans */
76+
77+ & :last-child {
78+ margin-right : 0 ;
79+ }
80+ }
81+
82+ /* Prevent sticky header from overlapping page content on non-home pages
83+ * The non-home layout wraps content in .wrap .content (baseof.html).
84+ * Ensure there's always at least the header height above the content.
85+ */
86+ .wrap .content {
87+ border-top : none ; /* avoid double thickness; rely on header border for the horizontal divider */
88+ padding-top : 0 ; /* shift the offset into the columns so the vertical divider aligns */
89+ }
90+
91+ /* Shift content and TOC down to clear the sticky header while keeping the top divider flush.
92+ Sidebar itself is sticky and already offset via top: var(--nav-height), so do not add extra padding there. */
93+ .row.flex-xl-nowrap > .docs-content ,
94+ .row.flex-xl-nowrap > .docs-toc {
95+ padding-top : var (--nav-height );
96+ }
97+
98+ /* Ensure the first content element aligns directly under the header divider (no gap) */
99+ .wrap .content > * :first-child {
100+ margin-top : 0 ;
101+ }
102+
103+ /* If the first element is an HR or a dedicated divider, remove its top margin as well */
104+ .wrap .content > hr :first-child ,
105+ .docs-content > hr :first-child {
106+ margin-top : 0 ;
107+ }
108+
109+ /* Also normalize top margin for the first element inside docs-content */
110+ .docs-content > * :first-child {
111+ margin-top : 0 ;
112+ }
0 commit comments