MediaWiki:Common.css: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 489:
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
}
/* Make <youtube> embeds fluid and capped on large screens */
.mw-parser-output iframe[src*="youtube.com"],
.mw-parser-output iframe[src*="youtube-nocookie.com"] {
width: 100% !important; /* fills the content width on phones */
max-width: 320px; /* "typical" max width on desktops (tweak as needed) */
height: auto !important;
aspect-ratio: 16 / 9; /* keeps 16:9 without extra markup */
display: block;
margin: 0 auto; /* center when narrower than the content column */
}
| |||