MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
Line 342: Line 342:
}
}


/* Compact infobox rows */
/* Make infobox cells hug the text tightly */
.infobox th,
.infobox th,
.infobox td {
.infobox td {
Line 348: Line 348:
   line-height: 1.1em !important;
   line-height: 1.1em !important;
   vertical-align: middle;
   vertical-align: middle;
  border: none;
}
}


/* Make background alternating cleaner and not add extra height */
/* remove default div/p margins in cells */
.infobox tr:nth-child(even) td {
.infobox td > div,
   background-color: #f9f9f9;
.infobox td > p {
  margin: 0 !important;
  padding: 0 !important;
  display: inline !important;
}
 
/* fix any row background spacing weirdness */
.infobox tr {
   height: auto !important;
}
}


/* Prevent the whole infobox from forcing extra internal spacing */
/* overall structure */
.infobox {
.infobox {
   border-collapse: collapse !important;
   border-collapse: collapse !important;
   width: 300px;
   width: 300px;
   font-size: 90%;
   font-size: 90%;
}
.infobox td p {
  margin: 0 !important;
  padding: 0 !important;
}
}