Files
blog/sass/_article.scss
daudix 3121386fd3 Don't duplicate icons in the resulting CSS
Intead, use CSS variables.
2024-08-26 21:43:56 +03:00

36 lines
580 B
SCSS

#banner-container {
--mask: linear-gradient(black, transparent);
-webkit-mask-image: var(--mask);
-webkit-user-select: none;
position: absolute;
top: 0;
left: 0;
z-index: -1;
mask-image: var(--mask);
width: 100vw;
height: 50vw; // hack to keep the aspect ratio 2:1
user-select: none;
#banner {
position: fixed;
top: 0;
left: 0;
transition: none;
margin: 0;
}
& + h1 {
margin-block-start: 35vw;
}
@media only screen and (max-width: 480px) {
body:has(&) #site-nav {
margin-block-start: 50vw;
}
& + h1 {
margin-block-start: 2rem;
}
}
}