Jump to content

MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
Line 342: Line 342:
   box-shadow: none !important;
   box-shadow: none !important;
   -webkit-box-shadow: none !important;
   -webkit-box-shadow: none !important;
}
/* Infobox: character */
.infobox-character {
  border: 1px solid #6272a4;
  background: #101418;      /* dark background (night mode) */
  color: #f8f8f2;
  padding: 0.25em;
  margin: 0.6em 0;
  font-size: 0.92em;
  line-height:1.25;
  float: right;
  clear: right;
  max-width: 22em;
}
/* heading/title row in infobox (handled by template's inline style, but safe fallback) */
.infobox-character > caption,
.infobox-character .infobox-title,
.infobox-character th {
  color: #ff79c6;
  background: transparent;
  font-weight: bold;
}
/* label cells */
.infobox-character td:first-child,
.infobox-character th {
  background: transparent;
  color: #f8f8f2;
  vertical-align: top;
  padding-right: 0.4em;
  white-space: nowrap;
}
/* value cells */
.infobox-character td:nth-child(2) {
  background: transparent;
  color: #f8f8f2;
  padding-left: 0.4em;
}
/* image styling */
.infobox-character img,
.infobox-character .thumbimage {
  display:block;
  margin: 0.4em auto;
  max-width: 95%;
  height: auto;
}
/* Light-mode overrides (if you use the vector day/night selectors) */
html.skin-theme-clientpref-day .infobox-character {
  background: #f8f8f2;
  color: #101418;
  border: 1px solid #6272a4;
}
html.skin-theme-clientpref-day .infobox-character th {
  color: #ff79c6;
}
}