wiki/quartz/components/styles/backlinks.scss

52 lines
877 B
SCSS
Raw Normal View History

@use "../../styles/variables.scss" as *;
2023-06-20 03:37:45 +00:00
.backlinks {
@media all and not ($desktop) {
overflow-y: auto;
display: initial;
&:after {
pointer-events: none;
content: "";
width: 100%;
height: 50px;
position: absolute;
left: 0;
bottom: 0;
opacity: 1;
transition: opacity 0.3s ease;
background: linear-gradient(transparent 0px, var(--light));
}
2023-07-13 07:19:35 +00:00
&:has(> .overflow) {
position: unset;
}
& > h3 {
font-size: 1rem;
margin: 0;
}
2023-06-20 03:37:45 +00:00
& > ul {
list-style: none;
padding: 0;
margin: 0.5rem 0;
2023-06-20 03:37:45 +00:00
& > li {
& > a {
background-color: transparent;
}
}
}
& > .overflow {
max-height: unset;
& > li:last-of-type {
margin-bottom: 0;
}
&:after {
display: none;
2023-06-20 03:37:45 +00:00
}
}
}
}