Revert previous changes and added margin/padding block

This commit is contained in:
Ivelin Megdanov 2025-02-17 14:11:28 +02:00
parent b4ac4b4db7
commit 6e806d5c84
2 changed files with 15 additions and 16 deletions

View file

@ -7,6 +7,8 @@
flex-direction: column;
background-color: var(--overlay-color);
border-radius: var(--border-radius);
border: 0.15rem solid transparent;
transition: border-color 0.1s ease-out;
.heading {
flex: none;
@ -80,19 +82,6 @@
}
}
&::before {
border: 0.15rem solid transparent;
border-radius: var(--border-radius);
box-sizing: border-box;
content: "";
width: 100%;
height: 100%;
position: absolute;
pointer-events: none;
z-index: 1;
transition: border-color 0.1s ease-out;
}
&.today {
.heading {
background-color: var(--primary-accent-color);
@ -100,12 +89,16 @@
}
&.active {
&::before {
border-color: var(--primary-foreground-color);
}
border-color: var(--primary-foreground-color);
}
&:not(.active):hover {
border-color: var(--overlay-color);
}
}
@supports (scroll-margin-block-start: 2px) {
.item {
scroll-margin-block-start: 2px;
}
}

View file

@ -35,3 +35,9 @@
display: none;
}
}
@supports (scroll-padding-block-start: 2px) {
.list {
scroll-padding-block-start: 2px;
}
}