:lipsstick: Added supports rule for frame
This commit is contained in:
parent
6dd2e536fc
commit
a65ffef9cf
|
@ -3,13 +3,6 @@
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
@supports(aspect-ratio: var(--frame-denominator) / var(--frame-numerator)) {
|
|
||||||
.frame {
|
|
||||||
aspect-ratio: var(--frame-denominator) / var(--frame-numerator);
|
|
||||||
padding-bottom: var(--off);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.frame > * {
|
.frame > * {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
|
@ -23,9 +16,15 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.frame > img,
|
.frame > img,
|
||||||
.frame > video,
|
.frame > video {
|
||||||
.frame > iframe {
|
|
||||||
height: 100%;
|
height: 100%;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@supports(aspect-ratio: var(--frame-denominator) / var(--frame-numerator)) {
|
||||||
|
.frame {
|
||||||
|
aspect-ratio: var(--frame-denominator) / var(--frame-numerator);
|
||||||
|
padding-bottom: var(--off);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue