drone build Mon Sep 21 12:24:22 PDT 2026
This commit is contained in:
1 parent
74769d24ea
commit
646bc98b32
316 files changed
+3659
-3733
No files matched your search
@@ -55,7 +55,7 @@
|
||||
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>nav</span><span class="token punctuation">></span></span>
|
||||
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>details</span><span class="token punctuation">></span></span>
|
||||
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>aside</span><span class="token punctuation">></span></span></code></pre>
|
||||
<p>We can ignore the <code>&lt;aside&gt;</code>, <code>&lt;details&gt;</code>, and <code>&lt;nav&gt;</code> components - we're going to focus on the <code>&lt;ol&gt;</code>s and <code>&lt;li&gt;</code>s.</p>
|
||||
<p>We can ignore the <code>&lt;aside&gt;</code>, <code>&lt;details&gt;</code>, <code>&lt;summary&gt;</code>, and <code>&lt;nav&gt;</code> components - we're going to focus on the <code>&lt;ol&gt;</code>s and <code>&lt;li&gt;</code>s.</p>
|
||||
<h2 id="css">CSS</h2>
|
||||
<p>Despite referencing a StackOverflow issue above, I never like to just copy-paste a chunk of StackOverflow code into place. I don't like extraneous CSS, and sometimes there's stuff mixed in there that just isn't necessary. Let's build from the ground up.</p>
|
||||
<h3 id="remove-styling-that-will-be-in-the-way">remove styling that will be in the way</h3>
|
||||
@@ -76,7 +76,7 @@
|
||||
<span class="token property">margin-left</span><span class="token punctuation">:</span> 0<span class="token punctuation">;</span>
|
||||
<span class="token punctuation">}</span></code></pre>
|
||||
<h3 id="li%3A%3Abefore"><code>li::before</code></h3>
|
||||
<p>We're going to use a character from the <code>tree</code> output and place it before our list items.</p>
|
||||
<p>We're going to use a character (technically two) from the <code>tree</code> output and place it before our list items.</p>
|
||||
<pre class="language-css"><code class="language-css"><span class="token selector">#toc li::before</span> <span class="token punctuation">{</span>
|
||||
<span class="token property">content</span><span class="token punctuation">:</span> <span class="token string">'├─'</span><span class="token punctuation">;</span>
|
||||
<span class="token property">color</span><span class="token punctuation">:</span> <span class="token function">var</span><span class="token punctuation">(</span>--color-pink<span class="token punctuation">)</span><span class="token punctuation">;</span>
|
||||
|
||||
Reference in new issue
Block a user