MediaWiki:Minerva.css: Difference between revisions

Import from wiki-src
 
Import from wiki-src
Line 186: Line 186:
/* ------------------------------------------------------------- Phones */
/* ------------------------------------------------------------- Phones */
@media screen and (max-width: 720px) {
@media screen and (max-width: 720px) {
   .infobox { float: none; width: 100%; margin: 0 0 1em; }
   .infobox { float: none; width: auto; max-width: 100%; margin: 0 0 1em; box-sizing: border-box; }
   .navbox-group { white-space: normal; }
   .navbox-group { white-space: normal; }
}
}


/* Minerva only: full-width infobox with a caption bar, as on Wikipedia mobile */
/* Minerva only: let the infobox fill the screen width without overflowing it */
.infobox { float: none !important; width: 100% !important; margin: 0 0 1em !important; }
.infobox { float: none !important; width: auto !important; max-width: 100% !important; margin: 0 0 1em !important; box-sizing: border-box; }
.infobox img { max-width: 100%; height: auto; }
#mp-left, #mp-right { float: none; width: auto; }
#mp-left, #mp-right { float: none; width: auto; }