fix: aspect ratio
This commit is contained in:
parent
46bcbc6617
commit
742d7c111f
3 changed files with 13 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue