Skip to content

Commit 5496389

Browse files
committed
Merge remote-tracking branch 'upstream/main' into fix/Darkmode-readabilityissue
2 parents 8f658a0 + 503c385 commit 5496389

1 file changed

Lines changed: 22 additions & 2 deletions

File tree

src/css/custom.css

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2170,16 +2170,22 @@ html[data-theme="dark"] {
21702170
max-width: 280px !important;
21712171
padding-left: 0 !important;
21722172
padding-right: 0.5rem !important;
2173-
border-left: 2px solid var(--ifm-toc-border-color) !important;
21742173
align-self: stretch !important;
21752174
}
21762175

2177-
/* TOC inner wrapper — sticky */
2176+
/* TOC inner wrapper — sticky; border-left here so the vertical line
2177+
only spans the height of the TOC content, not the full page */
21782178
.blog-wrapper .col.col--2>div {
21792179
position: sticky !important;
21802180
top: calc(var(--ifm-navbar-height, 60px) + 1rem) !important;
21812181
max-height: calc(100vh - var(--ifm-navbar-height, 60px) - 2rem) !important;
21822182
overflow-y: auto !important;
2183+
border-left: 2px solid var(--ifm-toc-border-color) !important;
2184+
scrollbar-width: none !important;
2185+
}
2186+
2187+
.blog-wrapper .col.col--2>div::-webkit-scrollbar {
2188+
display: none !important;
21832189
}
21842190

21852191
/* TOC list — vertical left border track */
@@ -2236,6 +2242,20 @@ html[data-theme="dark"] .blog-post-page .markdown {
22362242
margin-bottom: 0.5rem !important;
22372243
}
22382244

2245+
.blog-post-page .markdown h1,
2246+
.blog-post-page .markdown h2,
2247+
.blog-post-page .markdown h3,
2248+
.blog-post-page .markdown h4 {
2249+
color: #1F2937 !important;
2250+
}
2251+
2252+
html[data-theme="dark"] .blog-post-page .markdown h1,
2253+
html[data-theme="dark"] .blog-post-page .markdown h2,
2254+
html[data-theme="dark"] .blog-post-page .markdown h3,
2255+
html[data-theme="dark"] .blog-post-page .markdown h4 {
2256+
color: #D1D5DB !important;
2257+
}
2258+
22392259
/* ── Large desktop (≥1400px) — wider content ── */
22402260
@media (min-width: 1400px) {
22412261
.blog-wrapper .container>.row>.col.col--3 {

0 commit comments

Comments
 (0)