MediaWiki:Common.css: Difference between revisions
Content deleted Content added
Created page with "→CSS placed here will be applied to all skins: →* This is the CSS common to all desktop skins on en.Wikipedia. * Styling inside .mw-parser-output should generally use TemplateStyles.: →Reset italic styling set by user agent: cite, dfn { font-style: inherit; } →Straight quote marks for <q>: q { quotes: '"' '"' "'" "'"; } →Avoid collision of blockquote with floating elements by swapping margin and padding: blockquote { overflow: hidden; margin:..." |
No edit summary |
||
Line 411:
background-image: none;
}
}
/* 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: 720px; /* "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 */
}
| |||