Moved scroll padding/margin inside the classes

This commit is contained in:
Ivelin Megdanov 2025-02-17 15:21:06 +02:00
parent 6e806d5c84
commit 91ed45625b
2 changed files with 2 additions and 12 deletions

View file

@ -9,6 +9,7 @@
border-radius: var(--border-radius);
border: 0.15rem solid transparent;
transition: border-color 0.1s ease-out;
scroll-margin-block-start: 2px;
.heading {
flex: none;
@ -95,10 +96,4 @@
&:not(.active):hover {
border-color: var(--overlay-color);
}
}
@supports (scroll-margin-block-start: 2px) {
.item {
scroll-margin-block-start: 2px;
}
}

View file

@ -10,6 +10,7 @@
width: 20rem;
padding: 0 1rem;
overflow-y: auto;
scroll-padding-block-start: 2px;
}
@media only screen and (max-width: @small) and (orientation: portrait) {
@ -34,10 +35,4 @@
.list {
display: none;
}
}
@supports (scroll-padding-block-start: 2px) {
.list {
scroll-padding-block-start: 2px;
}
}