Widget:Video: Difference between revisions

From The Midnight Wiki
No edit summary
No edit summary
Line 2: Line 2:


== Sample result ==
== Sample result ==
{{#widget:Video|url=/images/4/46/SheWasDreaminOfBoys.mp4|caption=She Was Dreamin' of Boys}}
 
{{#widget:Video|url=/images/8/84/EarlyEndlessSummer.mp4}|caption=Early Endless Summer}}
</noinclude>
</noinclude>


Line 10: Line 9:
<head>
<head>
<style>
<style>
.video-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}
  .video-outer {
  .video-outer {
     background-position: center;
     background-position: center;
Line 48: Line 52:
}
}


#video-outer video:fullscreen, #video-outer video:-webkit-full-screen {
.video-outer video:fullscreen, .video-outer video:-webkit-full-screen {
     object-fit: contain !important;
     object-fit: contain !important;
}
}

Revision as of 15:54, 25 June 2023


Sample result