Difference between revisions of "MediaWiki:Common.css"

From collargoggle codex
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
 
/* Infoboxes */
 
/* Infoboxes */
 
.infobox {
 
.infobox {
 +
  max-width: 320px;
 
   border: 1px solid #aaaaaa;
 
   border: 1px solid #aaaaaa;
 
   background-color: #f9f9f9;
 
   background-color: #f9f9f9;
Line 18: Line 19:
 
.infobox th {
 
.infobox th {
 
   vertical-align: top;
 
   vertical-align: top;
 +
  text-align: left;
 
}
 
}
 
.infobox caption {
 
.infobox caption {
Line 37: Line 39:
 
.infobox .infobox_subtitle,
 
.infobox .infobox_subtitle,
 
.infobox .infobox_image,
 
.infobox .infobox_image,
.infobox .infobox_caption {
+
.infobox .infobox_caption,
 +
.infobox .infobox_heading {
 
   text-align: center;
 
   text-align: center;
 +
}
 +
.infobox .infobox__caption {
 +
  font-size: smaller;
 
}
 
}
  

Latest revision as of 12:57, 1 May 2021

/* CSS placed here will be applied to all skins */

/* Make reference lists smaller. */
.mw-references-wrap { font-size: small; } 

/* Infoboxes */
.infobox {
  max-width: 320px;
  border: 1px solid #aaaaaa;
  background-color: #f9f9f9;
  color: black;
  margin-bottom: 0.5em;
  margin-left: 1em;
  padding: 0.2em;
  float: right;
  clear: right;
}
.infobox td,
.infobox th {
  vertical-align: top;
  text-align: left;
}
.infobox caption {
  font-size: larger;
  margin-left: inherit;
}
.infobox.bordered {
  border-collapse: collapse;
}
.infobox.bordered td,
.infobox.bordered th {
  border: 1px solid #aaaaaa;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
  border: 0;
}
.infobox .infobox_title,
.infobox .infobox_subtitle,
.infobox .infobox_image,
.infobox .infobox_caption,
.infobox .infobox_heading {
  text-align: center;
}
.infobox .infobox__caption {
  font-size: smaller;
}

/* Documentation template */
#template-documentation {
  margin-top: 16px;
  padding: 16px;
  border-width: 3px;
  border-style: dashed;
}