Closed dy closed 3 years ago
Answering my question. To limit height:
.v-vlite.v-video {
padding-top: min(56.25%, 61.8vh);
}
@yoriiis is it worth retaining initial container element and it's classes?
@dy The element is automatically replaced with an iframe only when the provider's APIs are used (Youtube and Vimeo), this is normal behavior as specified in the YouTube documentation. It's quite specific and there are no plans to handle this.
Right, but I rather meant retaining container classes provided by user
In fact, the element is not a container, it is a placeholder for the iframe. You can add the classes on a parent element if necessary, which will not be altered. This would require managing attributes (classes, identifiers, style, etc.) and rewriting them on the iframe, complicated for a fairly specific need.
I expected
to keep the
.player
class and just insert content. But it seems to be replaced with new element, anyways class gets lost.I need to limit video height to
50vh
for wide screens. What's the best way to accomplish that? Wrapping into a container doesn't seem to help.