Don't touch the closed cards header

This commit is contained in:
Andy Smith
2025-08-20 14:37:41 -05:00
parent e6e2401f2f
commit c46cf485b6
+6 -4
View File
@@ -131,14 +131,16 @@
inset-block-start: 0;
justify-content: center;
margin-block-start: 1px;
margin-inline: calc(-1 * var(--cards-gap) - var(--reserved-bubble-space) - var(--main-padding)); /* cover bubbles and cards */
margin-inline: -8px; /* enough to cover card shadows, but avoid overlapping bubbles */
padding-block: var(--cards-gap);
position: sticky;
z-index: 2;
background: gold !important;
@media (min-width: 640px) {
margin-inline: -8px; /* enough to cover card shadows, but avoid overlapping bubbles */
/* Cover bubbles and cards on small viewports */
@media (max-width: 639px) {
&:not(.cards--closed &) {
margin-inline: calc(-1 * var(--cards-gap) - var(--reserved-bubble-space) - var(--main-padding));
}
}
&, .cards__filter {