MediaWiki:Common.css: Difference between revisions

Created page with "→CSS placed here will be applied to all skins: →Mobile infobox fix: @media screen and (max-width: 720px) { .infobox { float: none !important; width: 100% !important; margin: 0 0 15px 0 !important; } } →Infobox image scaling: .infobox img { max-width: 100%; height: auto; }"
 
No edit summary
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* Wikipedia-style mobile infobox behavior */
/* Mobile infobox fix */
@media screen and (max-width: 720px) {
@media screen and (max-width: 720px) {
   .infobox {
   .infobox {
     float: none !important;
     float: none !important;
     width: 100% !important;
     width: 100% !important;
     margin: 0 0 15px 0 !important;
     margin: 0 0 1em 0 !important;
   }
   }
}
}


/* Infobox image scaling */
/* Infobox images responsive */
.infobox img {
.infobox img {
   max-width: 100%;
   max-width: 100%;
   height: auto;
   height: auto;
}
}