MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 15: | Line 15: | ||
/* Top scientific name bar */ | /* Top scientific name bar */ | ||
.infobox-title { | .infobox-title { | ||
background: #f2f2ce; | background: #f2f2ce; | ||
font-size: 110%; | font-size: 110%; | ||
font-weight: bold; | font-weight: bold; | ||
text-align: center; | text-align: center; | ||
padding: 4px | padding: 6px 4px; /* vertical + horizontal padding inside bar */ | ||
} | } | ||
/* Section headers */ | /* Section headers */ | ||
.infobox-header { | .infobox-header { | ||
background: #e6e6cc; | background: #e6e6cc; | ||
font-weight: bold; | font-weight: bold; | ||
text-align: center; | text-align: center; | ||
padding: | padding: 4px 4px; /* vertical + horizontal padding */ | ||
font-size: 95%; | font-size: 95%; | ||
} | } | ||
/* Table cells */ | /* Table cells */ | ||
.infobox td { | .infobox td { | ||
padding: | padding: 2px 6px; /* space inside each table cell */ | ||
vertical-align: top; | vertical-align: top; | ||
} | } | ||
| Line 57: | Line 51: | ||
.infobox-image { | .infobox-image { | ||
text-align: center; | text-align: center; | ||
background: #f9f9f9; | background: #f9f9f9; /* same as table background */ | ||
padding: | padding: 0; /* no extra box around image */ | ||
} | } | ||
| Line 73: | Line 67: | ||
text-align: center; | text-align: center; | ||
font-size: 105%; | font-size: 105%; | ||
font-style: italic; /* match Wikipedia style */ | |||
padding: 2px 0; | |||
} | } | ||
| Line 79: | Line 74: | ||
.infobox-authority { | .infobox-authority { | ||
font-size: 90%; | font-size: 90%; | ||
text-align: center; | |||
padding-bottom: 2px; | |||
} | } | ||
Revision as of 18:27, 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;
line-height: 1.2;
}
/* Top scientific name bar */
.infobox-title {
background: #f2f2ce;
font-size: 110%;
font-weight: bold;
text-align: center;
padding: 6px 4px; /* vertical + horizontal padding inside bar */
}
/* Section headers */
.infobox-header {
background: #e6e6cc;
font-weight: bold;
text-align: center;
padding: 4px 4px; /* vertical + horizontal padding */
font-size: 95%;
}
/* Table cells */
.infobox td {
padding: 2px 6px; /* space inside each table cell */
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 table background */
padding: 0; /* no extra box around image */
}
/* 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%;
font-style: italic; /* match Wikipedia style */
padding: 2px 0;
}
/* Authority text */
.infobox-authority {
font-size: 90%;
text-align: center;
padding-bottom: 2px;
}