fix: sticky header on overview

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-12-08 22:12:53 +01:00
parent 315e4a59a3
commit e22a5b3237
3 changed files with 57 additions and 27 deletions

View File

@@ -373,4 +373,30 @@ button {
.scrollarea-content:hover::-webkit-scrollbar-thumb,
.scrollarea-content:active::-webkit-scrollbar-thumb {
background: rgba(0, 0, 0, 0.4); /* darken on hover/scroll */
}
/* Scroll-driven animation for sticky header */
@keyframes sticky-shadow {
0% {
box-shadow: none;
border-bottom-color: transparent;
border-bottom-width: 1px;
background-color: transparent;
}
100% {
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
border-bottom-color: var(--color-border);
border-bottom-width: 1px;
background-color: var(--color-def-100);
}
}
.sticky-header {
position: sticky;
top: 0;
z-index: 10;
border-bottom: 1px solid transparent;
animation: sticky-shadow linear both;
animation-timeline: scroll();
animation-range: 0 1px;
}