keroosha.cybergulag.today/quartz/components/styles/toc.scss

40 lines
591 B
SCSS
Raw Normal View History

2023-06-10 09:06:02 +03:00
details.toc {
& summary {
cursor: pointer;
2023-06-17 05:41:59 +03:00
list-style: none;
&::marker, &::-webkit-details-marker {
display: none;
2023-06-10 09:06:02 +03:00
}
& > * {
display: inline-block;
margin: 0;
}
2023-06-17 05:41:59 +03:00
& > h3 {
font-size: 1rem;
}
2023-06-10 09:06:02 +03:00
}
& ul {
list-style: none;
2023-06-17 05:41:59 +03:00
margin: 0.5rem 0;
2023-06-10 09:06:02 +03:00
padding: 0;
2023-06-17 05:41:59 +03:00
& > li > a {
color: var(--dark);
opacity: 0.35;
transition: 0.5s ease opacity;
&.in-view {
opacity: 0.75;
}
}
2023-06-10 09:06:02 +03:00
}
2023-06-17 05:41:59 +03:00
@for $i from 0 through 6 {
2023-06-10 09:06:02 +03:00
& .depth-#{$i} {
padding-left: calc(1rem * #{$i});
}
}
}