fix: aspect ratio

This commit is contained in:
Cory Dransfeldt 2024-06-27 12:50:44 -07:00
parent 46bcbc6617
commit 742d7c111f
No known key found for this signature in database
3 changed files with 13 additions and 7 deletions

View file

@ -18,7 +18,11 @@
overflow: hidden;
aspect-ratio: var(--aspect-ratio-banner);
div.meta-text {
& img {
aspect-ratio: var(--aspect-ratio-banner);
}
& div.meta-text {
color: white;
position: absolute;
left: var(--sizing-sm);
@ -48,11 +52,11 @@
position: absolute;
z-index: 1;
content: '';
bottom: 0;
bottom: 1px;
left: 1px;
box-shadow: inset 0 -70px 75px -40px #000;
width: calc(100% - 2px);
height: 100%;
height: calc(100% - 1px);
}
}