Jump to content

MediaWiki:Mobile.css: Difference between revisions

No edit summary
No edit summary
Line 7: Line 7:
}
}


/* give some padding to the infobox field names on mobile */
table.infobox tr td:nth-child(1) {
table.infobox tr td:nth-child(1) {
   padding: 5px!important;
   padding: 5px!important;
Line 12: Line 13:
   padding-right: 10px!important;
   padding-right: 10px!important;
}
}
/* Old Infobox template style - NOT WORKING on Mobile*/
.infobox {
  border: 1px solid #020202;
  background-color: #f9f9f9;
  color: black;
  margin-bottom: 0.1em!important;
  margin-left: 1em;
  padding: 0.2em;
  float: right;
  clear: right;
}
.infobox td,
.infobox th,
.infobox tr,
.infobox tbody {
  vertical-align: top; 
}
.content .infobox tbody > tr > td, .content .infobox tbody > tr > th{
  flex: inherit!important;
  border-bottom:none!important;
}
.infobox  tr  th{
  text-align:center!important;
}
.infobox tbody > tr {
  border-bottom:1px solid #eaecf0!important;
}
.infobox caption {
  font-size: larger;
  margin-left: inherit;
}
.infobox.bordered {
  border-collapse: collapse;
}
.infobox.bordered td,
.infobox.bordered th {
  border: 1px solid #020202;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
  border: 0;
}