MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
Line 13: Line 13:
   height: auto;
   height: auto;
}
}
/* === Wikipedia-style mobile infobox (full width) === */
@media screen and (max-width: 720px) {
@media screen and (max-width: 720px) {


  /* Infobox container */
   .infobox {
   .infobox {
     float: none !important;
     float: none !important;
Line 24: Line 22:
     border-left: none !important;
     border-left: none !important;
     border-right: none !important;
     border-right: none !important;
    box-sizing: border-box;
   }
   }


  /* Infobox title */
  .infobox th[colspan="2"] {
    font-size: 1.3em;
    padding: 12px 10px !important;
    text-align: center;
  }
  /* Infobox image */
   .infobox img {
   .infobox img {
     width: 100% !important;
     width: 100% !important;
     height: auto !important;
     height: auto !important;
    max-width: 100% !important;
    display: block;
    margin: 0 auto;
   }
   }


  /* Image caption */
  .infobox caption,
  .infobox .infobox-caption {
    padding: 8px 10px;
    font-size: 0.9em;
  }
  /* Table cells spacing */
  .infobox td,
  .infobox th {
    padding: 8px 10px !important;
  }
}
}