Skip to content

Commit

Permalink
Fix: restore former scrollbar behavior for overflow lists (jackyzha0#…
Browse files Browse the repository at this point in the history
  • Loading branch information
saberzero1 committed Sep 25, 2024
1 parent 20f7422 commit 5fb90c8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 18 deletions.
11 changes: 2 additions & 9 deletions quartz/components/styles/backlinks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
.backlinks {
@media all and not ($desktop) {
overflow-y: auto;
display: initial;
display: flex;
flex-direction: column;
&:after {
pointer-events: none;
content: "";
Expand All @@ -17,10 +18,6 @@
background: linear-gradient(transparent 0px, var(--light));
}

&:has(> .overflow) {
position: unset;
}

& > h3 {
font-size: 1rem;
margin: 0;
Expand All @@ -39,10 +36,6 @@
}

& > .overflow {
max-height: unset;
& > li:last-of-type {
margin-bottom: 0;
}
&:after {
display: none;
}
Expand Down
4 changes: 0 additions & 4 deletions quartz/components/styles/toc.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
&.desktop-only {
max-height: 40%;
}
> #toc-content > .overflow {
max-height: unset;
overflow-y: unset;
}
}

button#toc {
Expand Down
7 changes: 2 additions & 5 deletions quartz/styles/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -537,14 +537,15 @@ video {
}

div:has(> .overflow) {
display: flex;
position: relative;
overflow-y: auto;
max-height: 100%;
}

ul.overflow,
ol.overflow {
max-height: 400;
max-height: 100%;
overflow-y: auto;

// clearfix
Expand All @@ -554,10 +555,6 @@ ol.overflow {
& > li:last-of-type {
margin-bottom: 30px;
}
}

*:has(> * > ul.overflow),
*:has(> * > ol.overflow) {
&:after {
pointer-events: none;
content: "";
Expand Down

0 comments on commit 5fb90c8

Please sign in to comment.