Skip to content

Commit 9f4e6ca

Browse files
committed
Standardized blue color
1 parent bc4a8fe commit 9f4e6ca

File tree

3 files changed

+30
-18
lines changed

3 files changed

+30
-18
lines changed

layouts/posts/single.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
</article>
1717
{{ if $hasToc }}
1818
<aside class="dn db-l w-30-l pv4 pl4">
19-
<div class="toc-container">
20-
<div class="toc-heading f6 ttu tracked mv3">On this page</div>
19+
<div class="toc-container blue">
20+
<div class="toc-heading f6 ttu tracked mv3 light-blue">On this page</div>
2121
{{ $toc }}
2222
</div>
2323
</aside>

static/css/style.css

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -302,19 +302,6 @@ article :where(table):not(:where(.gist *)) {
302302
border-color: #e5e7eb;
303303
color: #0f172a !important;
304304
}
305-
.toc-container {
306-
color: #dee3f0;
307-
}
308-
.toc-container .toc-heading {
309-
color: #e2e8f0;
310-
}
311-
.toc-container a:hover,
312-
.toc-container a:focus {
313-
color: #f1f5f9;
314-
}
315-
.toc-container a.active {
316-
color: #93c5fd;
317-
}
318305
article thead th {
319306
background: #1f2933;
320307
color: #f8f8f2;
@@ -354,6 +341,25 @@ article :where(table):not(:where(.gist *)) {
354341
fill: currentColor !important;
355342
stroke: none !important;
356343
}
344+
.toc-container {
345+
color: #dee3f0;
346+
}
347+
.toc-container .toc-heading {
348+
color: #e2e8f0;
349+
}
350+
.toc-container a {
351+
color: inherit;
352+
}
353+
.toc-container a:visited {
354+
color: inherit;
355+
}
356+
.toc-container a:hover,
357+
.toc-container a:focus {
358+
color: #96ccff;
359+
}
360+
.toc-container a.active {
361+
color: #77b2e3;
362+
}
357363
}
358364

359365
.toc-container {
@@ -393,13 +399,17 @@ article :where(table):not(:where(.gist *)) {
393399
transition: color 0.15s ease;
394400
}
395401

402+
.toc-container a:visited {
403+
color: inherit;
404+
}
405+
396406
.toc-container a:hover,
397407
.toc-container a:focus {
398-
color: #5679da;
408+
color: #96ccff;
399409
}
400410

401411
.toc-container a.active {
402-
color: #1d4ed8;
412+
color: #357edd;
403413
font-weight: 500;
404414
}
405415

static/js/post-enhancements.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ function enhanceToc() {
120120
if (!tocNav) return;
121121

122122
const links = Array.from(tocNav.querySelectorAll('a[href^="#"]'));
123-
if (!links.length || !('IntersectionObserver' in window)) return;
123+
if (!links.length) return;
124+
125+
if (!('IntersectionObserver' in window)) return;
124126

125127
const targets = links
126128
.map((link) => {

0 commit comments

Comments
 (0)