MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 9: | Line 9: | ||
font-size: 90%; | font-size: 90%; | ||
border-spacing: 0; | border-spacing: 0; | ||
border-collapse: collapse; | border-collapse: collapse; | ||
} | } | ||
| Line 18: | Line 18: | ||
font-weight: bold; | font-weight: bold; | ||
text-align: center; | text-align: center; | ||
padding: 4px; | padding: 6px 4px; /* vertical padding a bit bigger, horizontal smaller */ | ||
} | } | ||
| Line 29: | Line 26: | ||
font-weight: bold; | font-weight: bold; | ||
text-align: center; | text-align: center; | ||
padding: 4px; | padding: 4px 4px; /* same idea */ | ||
font-size: 95%; | font-size: 95%; | ||
} | } | ||
| Line 56: | Line 50: | ||
.infobox-image { | .infobox-image { | ||
text-align: center; | text-align: center; | ||
background: #f9f9f9; /* | background: #f9f9f9; /* match the main box */ | ||
padding: 2px 0; | padding: 2px 0; /* minimal padding around image */ | ||
} | } | ||
Revision as of 18:24, 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;
}
/* Top scientific name bar */
.infobox-title {
background: #f2f2ce;
font-size: 110%;
font-weight: bold;
text-align: center;
padding: 6px 4px; /* vertical padding a bit bigger, horizontal smaller */
}
/* Section headers */
.infobox-header {
background: #e6e6cc;
font-weight: bold;
text-align: center;
padding: 4px 4px; /* same idea */
font-size: 95%;
}
/* 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; /* match the main box */
padding: 2px 0; /* minimal padding 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%;
}
/* Authority text */
.infobox-authority {
font-size: 90%;
}