Merge pull request 'fix: sticky-header-border-effect' (#4) from sticky-header-fix into main

Reviewed-on: #4
This commit is contained in:
Fiona Lena Urban 2025-05-12 09:17:00 +02:00
commit 236397fc9c
3 changed files with 21 additions and 2 deletions

View file

@ -3,6 +3,7 @@
--padding-small: 0.5rem; --padding-small: 0.5rem;
--padding-large: 2rem; --padding-large: 2rem;
--radius-default: 3px; --radius-default: 3px;
--radius-border: 15px;
--transition-default: 150ms; --transition-default: 150ms;
--color-success: #328104; --color-success: #328104;

View file

@ -63,4 +63,24 @@
} }
} }
} }
&:after, &:before {
content: '';
display: block;
position: absolute;
bottom: calc(-1 * var(--radius-border));
background: var(--color-blue-darkest);
width: var(--radius-border);
height: var(--radius-border);
}
&:after {
right: 0;
mask: radial-gradient(var(--radius-border) at 0 100%,#0000 98%,#000);
}
&:before {
left: 0;
mask: radial-gradient(var(--radius-border) at 100% 100%,#0000 98%,#000);
}
} }

View file

@ -46,8 +46,6 @@
} }
.content { .content {
border-top-left-radius: 15px;
border-top-right-radius: 15px;
overflow: hidden; overflow: hidden;
background: var(--color-lightest); background: var(--color-lightest);
height: 100%; height: 100%;