Jump to content

MediaWiki:Common.css: Difference between revisions

From WikiChilopoda
No edit summary
Tag: Reverted
No edit summary
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
.infobox {
.infobox {
   float: right;
   float: right;
   clear: right;
   clear: right;
   margin: 0 0 1em 1em;
   margin: 0.5em;
   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;
  padding: 0.2em;
}
.infobox-title {
  background: #f2f2ce;
  text-align: center;
  font-weight: bold;
  font-size: 110%;
}


   border-collapse: collapse;
.infobox-image {
  background: #f8f9fa;
   text-align: center;
  width: 250px;
  margin: 0 auto;
}
}


/* Reset all table spacing */
.infobox-image img {
.infobox th,
  width: 250px;
.infobox td {
  height: auto;
   padding: 0.35em 0.4em;
   display: block;
   vertical-align: top;
   margin: 0 auto;
}
}


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


/* Top title should not double-border */
.infobox td {
.infobox-title {
   vertical-align: top;
   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 {
.infobox td:first-child {
   width: 40%;
   width: 40%;
Line 53: Line 48:
}
}


/* 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;
 
   font-size: 110%;
   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;
  font-size: 90%;
}
}

Latest revision as of 04:23, 31 December 2025

.infobox {
  float: right;
  clear: right;
  margin: 0.5em;
  width: 260px;
  border: 1px solid #a2a9b1;
  background: #f8f9fa;
  font-size: 88%;
  line-height: 1.45;
  padding: 0.2em;
}

.infobox-title {
  background: #f2f2ce;
  text-align: center;
  font-weight: bold;
  font-size: 110%;
}

.infobox-image {
  background: #f8f9fa;
  text-align: center;
  width: 250px;
  margin: 0 auto;
}

.infobox-image img {
  width: 250px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.infobox-section {
  background: #f2f2ce;
  text-align: center;
  font-weight: bold;
  font-size: 110%
}

.infobox td {
  vertical-align: top;
}

.infobox td:first-child {
  width: 40%;
  white-space: nowrap;
}

.binomial-name {
  text-align: center;
  font-style: italic;
  font-weight: bold;
  font-size: 110%;
}

.binomial-name .authority {
  font-style: normal;
  font-weight: normal;
}