mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-27 23:04:05 -06:00
Fix: restore former scrollbar behavior for overflow lists (https://github.com/jackyzha0/quartz/issues/1437)
This commit is contained in:
parent
20f7422922
commit
5fb90c835d
@ -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: "";
|
||||
@ -17,10 +18,6 @@
|
||||
background: linear-gradient(transparent 0px, var(--light));
|
||||
}
|
||||
|
||||
&:has(> .overflow) {
|
||||
position: unset;
|
||||
}
|
||||
|
||||
& > h3 {
|
||||
font-size: 1rem;
|
||||
margin: 0;
|
||||
@ -39,10 +36,6 @@
|
||||
}
|
||||
|
||||
& > .overflow {
|
||||
max-height: unset;
|
||||
& > li:last-of-type {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
&:after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@ -3,10 +3,6 @@
|
||||
&.desktop-only {
|
||||
max-height: 40%;
|
||||
}
|
||||
> #toc-content > .overflow {
|
||||
max-height: unset;
|
||||
overflow-y: unset;
|
||||
}
|
||||
}
|
||||
|
||||
button#toc {
|
||||
|
||||
@ -537,6 +537,7 @@ video {
|
||||
}
|
||||
|
||||
div:has(> .overflow) {
|
||||
display: flex;
|
||||
position: relative;
|
||||
overflow-y: auto;
|
||||
max-height: 100%;
|
||||
@ -544,7 +545,7 @@ div:has(> .overflow) {
|
||||
|
||||
ul.overflow,
|
||||
ol.overflow {
|
||||
max-height: 400;
|
||||
max-height: 100%;
|
||||
overflow-y: auto;
|
||||
|
||||
// clearfix
|
||||
@ -554,10 +555,6 @@ ol.overflow {
|
||||
& > li:last-of-type {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
}
|
||||
|
||||
*:has(> * > ul.overflow),
|
||||
*:has(> * > ol.overflow) {
|
||||
&:after {
|
||||
pointer-events: none;
|
||||
content: "";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user