FEATURE: Use full post width for Vimeo embeds (#17289)

This commit is contained in:
Rafael dos Santos Silva 2022-06-30 13:08:24 -03:00 committed by GitHub
parent 49905a4e6c
commit f130ec35d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 5 deletions

View File

@ -887,6 +887,19 @@ aside.onebox.mixcloud-preview {
}
}
iframe.vimeo-onebox {
width: 100%;
height: auto;
aspect-ratio: 16/9;
}
@supports not (aspect-ratio: auto) {
iframe.vimeo-onebox {
width: 690px;
height: 388px;
}
}
.video-container {
.notice {
background-color: var(--highlight-medium);

View File

@ -10,9 +10,6 @@ module Onebox
requires_iframe_origins "https://player.vimeo.com"
always_https
WIDTH ||= 640
HEIGHT ||= 360
def placeholder_html
::Onebox::Helpers.video_placeholder_html
end
@ -24,8 +21,7 @@ module Onebox
<<-HTML
<iframe
width="#{WIDTH}"
height="#{HEIGHT}"
class="vimeo-onebox"
src="#{video_src}"
data-original-href="#{link}"
frameborder="0"