MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
Tag: Manual revert
 
(24 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Wikipedia-style mobile infobox behavior */
/* ============================= */
@media screen and (max-width: 720px) {
/* Wikipedia-style Infobox Look */
   .infobox {
/* ============================= */
    float: none !important;
 
    width: 100% !important;
.infobox {
    margin: 0 0 1em 0 !important;
  background: #f8f9fa;
   }
  border: 1px solid #a2a9b1;
  border-collapse: collapse;
  color: #202122;
   font-size: 90%;
}
 
.infobox-above {
  background: #eaecf0;
  font-size: 125%;
  font-weight: bold;
   text-align: center;
  padding: 8px;
}
 
.infobox th,
.infobox td {
  padding: 6px 8px;
  vertical-align: top;
}
 
.infobox th {
  background: #eaecf0;
  text-align: left;
}
}


/* Infobox images responsive */
.infobox img {
.infobox img {
   max-width: 100%;
   max-width: 100%;
   height: auto;
   height: auto;
}
}
@media screen and (max-width: 720px) {


/* ============================= */
/* Desktop infobox alignment */
/* ============================= */
@media screen and (min-width: 721px) {
   .infobox {
   .infobox {
    float: none !important;
     width: 22em;
     width: 100vw !important;
     float: right;
     max-width: 100vw !important;
     margin: 0 0 1em 1em;
     margin: 0 -16px 16px -16px !important;
    border-left: none !important;
    border-right: none !important;
   }
   }
}
/* ============================= */
/* Mobile infobox (let Minerva handle width) */
/* ============================= */


   .infobox img {
@media screen and (max-width: 720px) {
     width: 100% !important;
   .infobox {
     height: auto !important;
     width: auto;
    float: none;
     margin: 0 0 1em 0;
   }
   }
}
}
/* Remove ugly gaps */
.infobox tr + tr th, .infobox tr + tr td { border-top: 1px solid #a2a9b1; }