Skip to content

Commit b3e8ee8

Browse files
committed
Add extra margin when ToC is removed
1 parent 2cd7642 commit b3e8ee8

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

src/css/component-home-v2.css

+4
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@
4242
margin-top: 0;
4343
}
4444

45+
.component-home-v2 .paragraph.home-intro {
46+
gap: 30px;
47+
}
48+
4549
.component-home-v2 a.feature-link {
4650
height: inherit;
4751
text-decoration: none;

src/css/doc.css

+4-4
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ html {
3535
padding: 0;
3636
margin-left: 48px;
3737
}
38+
39+
.doc.no-toc {
40+
margin-right: 48px;
41+
}
3842
}
3943

4044
.doc h1,
@@ -75,10 +79,6 @@ html {
7579
font-size: calc(44 / var(--rem-base) * 1rem);
7680
}
7781

78-
.doc p:not(.tableblock) a {
79-
white-space: nowrap;
80-
}
81-
8282
.admonitionblock .content a {
8383
white-space: normal !important; /* Allows links to wrap within admonition blocks */
8484
}

src/partials/article.hbs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<article class="doc">
1+
<article class="doc {{#if page.attributes.no-toc}}no-toc{{/if}}">
22
{{#if (ne page.attributes.role 'home')}}
33
{{> breadcrumbs}}
44
{{/if}}
@@ -30,6 +30,7 @@
3030
{{/if}}
3131
{{#if (eq page.attributes.role 'home')}}
3232
{{> home}}
33+
{{{page.contents}}}
3334
{{else if (eq page.attributes.role 'component-home')}}
3435
{{> component-home}}
3536
{{else if (eq page.attributes.role 'component-home-v2')}}

0 commit comments

Comments
 (0)