@@ -70,6 +70,8 @@ List<StyleRule> get siteStyles => [
7070 ),
7171 // Content line-height: Infima uses 1.65 (not jaspr_content's 1.75)
7272 css ('.content' ).styles (raw: {'line-height' : '1.65' }),
73+ // Paragraphs: Docusaurus uses bottom-only margin (1.25rem); Jaspr default is top+bottom
74+ css ('.content p' ).styles (raw: {'margin' : '0 0 1.25rem' }),
7375 // Remove backtick pseudo-elements and quote marks (Docusaurus doesn't have these)
7476 css ('.content code::before' ).styles (raw: {'content' : 'none' }),
7577 css ('.content code::after' ).styles (raw: {'content' : 'none' }),
@@ -330,7 +332,10 @@ List<StyleRule> get siteStyles => [
330332 // Docusaurus: footer margin-top 64px, pagination margin-top 48px.
331333 // ───────────────────────────────────────────────────────────────────────
332334 css ('.site-footer' ).styles (margin: Margin .only (top: 4. rem)),
333- css ('.page-nav' ).styles (margin: Margin .only (top: 3. rem)),
335+ css ('.page-nav' ).styles (
336+ padding: Padding .zero,
337+ margin: Margin .only (top: 3. rem),
338+ ),
334339 // Dark mode: page nav prev/next blocks
335340 css ('[data-theme="dark"] .page-nav-prev, [data-theme="dark"] .page-nav-next' )
336341 .styles (
@@ -581,9 +586,8 @@ List<StyleRule> get siteStyles => [
581586 ),
582587 ]),
583588 // Content-container right padding: 32px gap to TOC (matching Docusaurus)
584- css.media (MediaQuery .all (minWidth: 1280. px), [
585- css ('.docs .content-container' ).styles (
586- padding: Padding .only (right: 2. rem),
587- ),
588- ]),
589+ // Must use high-specificity selector to override jaspr_content's 3rem default
590+ css ('.docs .main-container main > div .content-container' ).styles (
591+ padding: Padding .only (right: 2. rem),
592+ ),
589593];
0 commit comments