:lipsstick: Added supports rule for frame
This commit is contained in:
parent
6dd2e536fc
commit
a65ffef9cf
|
@ -3,13 +3,6 @@
|
|||
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 > * {
|
||||
align-items: center;
|
||||
bottom: 0;
|
||||
|
@ -23,9 +16,15 @@
|
|||
}
|
||||
|
||||
.frame > img,
|
||||
.frame > video,
|
||||
.frame > iframe {
|
||||
.frame > video {
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
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