Jump to content

MediaWiki:Common.css: Difference between revisions

From WikiChilopoda
No edit summary
No edit summary
Tag: Reverted
Line 1: Line 1:
.infobox {
.infobox {
   float: right;
   float: right;
Line 4: Line 5:
   margin: 0 0 1em 1em;
   margin: 0 0 1em 1em;
   width: 260px;
   width: 260px;
   border: 1px solid #a2a9b1;
   border: 1px solid #a2a9b1;
   background: #f8f9fa;
   background: #f8f9fa;
   font-size: 88%;
   font-size: 88%;
   line-height: 1.45;
   line-height: 1.45;
  border-collapse: collapse;
}
/* Reset all table spacing */
.infobox th,
.infobox td {
  padding: 0.35em 0.4em;
  vertical-align: top;
}
}


.infobox-title {
/* Header bars (yellow) */
.infobox-title,
.infobox-section {
   background: #f2f2ce;
   background: #f2f2ce;
   text-align: center;
   text-align: center;
   font-weight: bold;
   font-weight: bold;
  padding: 0.3em 0.25em;
  border-top: 1px solid #a2a9b1;
}
/* Top title should not double-border */
.infobox-title {
  border-top: none;
   font-size: 110%;
   font-size: 110%;
  padding: 0.2em 0.2em;
}
}


/* Image row */
.infobox-image {
.infobox-image {
   background: #f8f9fa;
   background: #ffffff;
   text-align: center;
   text-align: center;
   padding: 0.5em;
   padding: 0.5em;
}
}


.infobox-section {
/* Left column labels */
  background: #f2f2ce;
  text-align: center;
  font-weight: bold;
  padding: 0.5em 0.5em;
}
 
.infobox td {
  padding: 0.5em 0.4em;
  vertical-align: top;
}
 
.infobox td:first-child {
.infobox td:first-child {
   width: 40%;
   width: 40%;
Line 41: Line 53:
}
}


/* Binomial name block */
.binomial-name {
.binomial-name {
   text-align: center;
   text-align: center;
   font-style: italic;
   font-style: italic;
   font-weight: bold;
   font-weight: bold;
   padding: 0.5em 0.3em;
 
   padding: 0.45em 0.3em;
}
}


/* Authority line */
.binomial-name .authority {
.binomial-name .authority {
  display: block;
  margin-top: 0.15em;
   font-style: normal;
   font-style: normal;
   font-weight: normal;
   font-weight: normal;
   margin-top: 0.15em;
   font-size: 90%;
  display: block;
}
}

Revision as of 03:52, 31 December 2025


.infobox {
  float: right;
  clear: right;
  margin: 0 0 1em 1em;
  width: 260px;

  border: 1px solid #a2a9b1;
  background: #f8f9fa;

  font-size: 88%;
  line-height: 1.45;

  border-collapse: collapse;
}

/* Reset all table spacing */
.infobox th,
.infobox td {
  padding: 0.35em 0.4em;
  vertical-align: top;
}

/* Header bars (yellow) */
.infobox-title,
.infobox-section {
  background: #f2f2ce;
  text-align: center;
  font-weight: bold;

  padding: 0.3em 0.25em;

  border-top: 1px solid #a2a9b1;
}

/* Top title should not double-border */
.infobox-title {
  border-top: none;
  font-size: 110%;
}

/* Image row */
.infobox-image {
  background: #ffffff;
  text-align: center;
  padding: 0.5em;
}

/* Left column labels */
.infobox td:first-child {
  width: 40%;
  white-space: nowrap;
}

/* Binomial name block */
.binomial-name {
  text-align: center;
  font-style: italic;
  font-weight: bold;

  padding: 0.45em 0.3em;
}

/* Authority line */
.binomial-name .authority {
  display: block;
  margin-top: 0.15em;

  font-style: normal;
  font-weight: normal;
  font-size: 90%;
}