Jump to content

MediaWiki:Common.css: Difference between revisions

From WikiChilopoda
Undo revision 119 by Mazmurlo (talk)
Tag: Undo
No edit summary
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */
/* Base infobox layout */
.infobox {
.infobox {
   float: right;
   float: right;
Line 10: Line 9:
   font-size: 90%;
   font-size: 90%;
   border-spacing: 0;
   border-spacing: 0;
  border-collapse: collapse; /* make spacing consistent */
}
}


Line 18: Line 18:
   font-weight: bold;
   font-weight: bold;
   text-align: center;
   text-align: center;
   padding: 4px 2px;
   padding: 4px;      /* more consistent padding */
  margin: 2px;        /* adds spacing between bar and border */
  border-radius: 2px; /* subtle rounding like Wikipedia */
  display: block;    /* ensures margin works */
}
}


Line 26: Line 29:
   font-weight: bold;
   font-weight: bold;
   text-align: center;
   text-align: center;
   padding: 3px 2px;
   padding: 4px;
  margin: 2px 0;     /* small spacing from surrounding cells */
   font-size: 95%;
   font-size: 95%;
  border-radius: 2px;
  display: block;
}
}


Line 50: Line 56:
.infobox-image {
.infobox-image {
   text-align: center;
   text-align: center;
   background: #fff;
   background: #f9f9f9; /* same as main box now */
   padding: 2px;
   padding: 2px 0;     /* minimal padding, no separate box */
}
}


Line 58: Line 64:
   font-size: 90%;
   font-size: 90%;
   line-height: 1.2;
   line-height: 1.2;
  text-align: center;
  padding-top: 2px;
}
}



Revision as of 18:22, 17 December 2025

/* CSS placed here will be applied to all skins */
.infobox {
  float: right;
  clear: right;
  width: 280px;
  margin: 0 0 1em 1em;
  border: 1px solid #aaa;
  background: #f9f9f9;
  font-size: 90%;
  border-spacing: 0;
  border-collapse: collapse; /* make spacing consistent */
}

/* Top scientific name bar */
.infobox-title {
  background: #f2f2ce;
  font-size: 110%;
  font-weight: bold;
  text-align: center;
  padding: 4px;       /* more consistent padding */
  margin: 2px;        /* adds spacing between bar and border */
  border-radius: 2px; /* subtle rounding like Wikipedia */
  display: block;     /* ensures margin works */
}

/* Section headers */
.infobox-header {
  background: #e6e6cc;
  font-weight: bold;
  text-align: center;
  padding: 4px;
  margin: 2px 0;      /* small spacing from surrounding cells */
  font-size: 95%;
  border-radius: 2px;
  display: block;
}

/* Table cells */
.infobox td {
  padding: 4px 6px;
  vertical-align: top;
}

/* Narrow label column */
.infobox td:first-child {
  width: 40%;
  font-weight: normal;
}

/* Value column */
.infobox td:last-child {
  width: 60%;
}

/* Image area */
.infobox-image {
  text-align: center;
  background: #f9f9f9; /* same as main box now */
  padding: 2px 0;      /* minimal padding, no separate box */
}

/* Image caption */
.infobox-caption {
  font-size: 90%;
  line-height: 1.2;
  text-align: center;
  padding-top: 2px;
}

/* Binomial section */
.infobox-binomial {
  text-align: center;
  font-size: 105%;
}

/* Authority text */
.infobox-authority {
  font-size: 90%;
}