MediaWiki:Common.css: Difference between revisions

Content deleted Content added
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 424:
}
 
.video-frame {
/* Youtube thumbnail
display: inline-block;
.yt-thumb { max-width: 320px; margin:0.5em; }
background: #f0f0f0; /* grey rectangle */
.yt-thumb iframe,
padding: 8px; /* space between video and frame */
.yt-thumb .ext-YouTube-video,
border: 1px solid #ccc; /* optional border */
.yt-thumb img { width:100% !important; height:auto !important; aspect-ratio:16/9; display:block; }
border-radius: 6px; /* optional rounded corners */
max-width: 720px; /* cap width on big screens */
margin: 1em auto; /* center with margin */
}
 
.ytvideo-thumbframe iframe,
.ytvideo-thumbframe .ext-YouTube-video,
.video-frame .ext-YouTube-video img {
width: 100% !important;
height: auto !important;
aspect-ratio: 16/9;
display: block;
}