Skip to content

Commit

Permalink
feat(example-site): h3+ anchor permalink style
Browse files Browse the repository at this point in the history
  • Loading branch information
andis-sprinkis committed Dec 4, 2024
1 parent d485cda commit dd0ed36
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
10 changes: 8 additions & 2 deletions site/documents/nested_page/_block_layout_nested_children.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
<h1>A nested page</h1>
<p>
Lorem ipsum dolor sit amet, officia excepteur ex fugiat reprehenderit enim labore culpa sint ad nisi Lorem pariatur
mollit ex esse exercitation amet. Nisi anim cupidatat excepteur officia <abbr title="example of an abbreviation HTML tag" tabindex="0">abrv</abbr>. Reprehenderit nostrud nostrud ipsum Lorem
mollit ex esse exercitation amet. Nisi anim cupidatat excepteur officia <abbr title="example of an abbreviation HTML tag" tabindex="0">ABR</abbr>. Reprehenderit nostrud nostrud ipsum Lorem
est aliquip amet voluptate voluptate dolor minim nulla est proident. Nostrud officia pariatur ut officia.
</p>
</header>
<h2 id="heading-the-nowrap-class"><a href="#heading-the-nowrap-class">The <code>.nowrap</code> class</a></h2>
<p><span class="nowrap">This sentence does not wrap.</span></p>
<h3 id="heading-an-h3-heading"><a href="#heading-an-h3-heading">An <code>&lt;h3&gt;</code> heading and some text</a></h3>
<p>Reprehenderit nostrud nostrud ipsum Lorem est aliquip amet voluptate voluptate dolor minim nulla est proident. Nostrud officia pariatur ut officia.</p>
<p>Culpa proident adipisicing id nulla nisi laboris ex in Lorem sunt duis officia eiusmod. Aliqua reprehenderit commodo ex non excepteur duis sunt velit enim. Voluptate laboris sint cupidatat ullamco ut ea consectetur et est culpa et culpa duis.</p>
<h2 id="heading-unordered-list"><a href="#heading-unordered-list">Unordered list</a></h2>
<ul>
<li>
Expand All @@ -23,7 +26,10 @@ <h2 id="heading-unordered-list"><a href="#heading-unordered-list">Unordered list
<li>Lorem ipsum dolor sit amet.
<ol>
<li>Lorem ipsum dolor sit amet.</li>
<li>Officia excepteur.</li>
<li>
<h3 id="heading-an-h3-heading-in-ul"><a href="#heading-an-h3-heading">An <code>&lt;h3&gt;</code> heading in <code>&lt;ol&gt;</code></a></h3>
<p>Lorem ipsum dolor sit amet, qui minim labore adipisicing minim sint cillum sint consectetur cupidatat.</p>
</li>
<li>Nisi anim cupidatat.</li>
</ol>
</li>
Expand Down
12 changes: 6 additions & 6 deletions site/documents/styles.css/_block_styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -258,18 +258,18 @@ li {
grid-row-gap: var(--li-grid-gap);
}

h1 {
font-size: 1em;
h2 {
font-size: 1.9125em;
line-height: 1.21825;
letter-spacing: -0.02275em;
}

h2,
h1,
h3,
h4,
h5,
h6 {
font-size: 1.9125em;
line-height: 1.21825;
letter-spacing: -0.02275em;
font-size: 1em;
}

h2 > a,
Expand Down

0 comments on commit dd0ed36

Please sign in to comment.