Skip to content

Commit 32b0c2e

Browse files
authored
Merge pull request #1689 from recodehive/copilot/make-vertical-line-relative
fix: constrain TOC vertical divider height to TOC content on blog post pages
2 parents 12d1b6e + ef7f99a commit 32b0c2e

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/css/custom.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2094,16 +2094,22 @@ html[data-theme="dark"] {
20942094
max-width: 280px !important;
20952095
padding-left: 0 !important;
20962096
padding-right: 0.5rem !important;
2097-
border-left: 2px solid var(--ifm-toc-border-color) !important;
20982097
align-self: stretch !important;
20992098
}
21002099

2101-
/* TOC inner wrapper — sticky */
2100+
/* TOC inner wrapper — sticky; border-left here so the vertical line
2101+
only spans the height of the TOC content, not the full page */
21022102
.blog-wrapper .col.col--2 > div {
21032103
position: sticky !important;
21042104
top: calc(var(--ifm-navbar-height, 60px) + 1rem) !important;
21052105
max-height: calc(100vh - var(--ifm-navbar-height, 60px) - 2rem) !important;
21062106
overflow-y: auto !important;
2107+
border-left: 2px solid var(--ifm-toc-border-color) !important;
2108+
scrollbar-width: none !important;
2109+
}
2110+
2111+
.blog-wrapper .col.col--2 > div::-webkit-scrollbar {
2112+
display: none !important;
21072113
}
21082114

21092115
/* TOC list — vertical left border track */

0 commit comments

Comments
 (0)