MediaWiki:Common.css: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 1,528:
 
/* ======================================================= */
/* LOGO: FIT TO BODYCONTENT WIDTH */
/* FULL-SCREEN LOGO (Breaks out of #content container) */
/* ======================================================= */
.fullscreen-logo {
width: 100% !important;
/* Break out of the 900px max-width container */
width: 100vw !important;
position: relative !important;
left: 50% !important;
right: 50% !important;
margin-left: -50vw !important;
margin-right: -50vw !important;
 
/* Remove all internal spacing */
padding: 0 !important;
margin-top: 0 !important;
margin-bottom: 0 !important;
 
/* Prevent horizontal scrollbar */
overflow-x: hidden !important;
}
 
/* Make the image fill the container */
.fullscreen-logo img {
display: block !important;
width: 100% !important;
max-width: 100vw !important;
height: auto !important;
object-fit: contain !important;
margin: 0 auto !important;
 
/* Remove the <figure> wrapper padding MediaWiki adds */
.fullscreen-logo figure,
.fullscreen-logo .mw-default-size,
Line 1,566 ⟶ 1,543:
margin: 0 !important;
padding: 0 !important;
 
.fullscreen-logo imgfigure > span {
display: block !important;
max-width: 100vw100% !important;
}
 
.fullscreen-logo img.mw-file-element {
object-fitdisplay: containblock !important;
marginwidth: 0 auto100% !important;
marginmax-leftwidth: -50vw100% !important;
height: auto !important;
/* Override the hard-coded 300x300 from MediaWiki */
marginmin-rightwidth: -50vw0 !important;
}