MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 10: | Line 10: | ||
border-spacing: 0; | border-spacing: 0; | ||
border-collapse: collapse; | border-collapse: collapse; | ||
line-height: 1.2; | |||
} | } | ||
/* Top scientific name bar */ | /* Top scientific name bar */ | ||
.infobox-title { | .infobox-title { | ||
display: inline-block; /* shrink to content + padding */ | |||
background: #f2f2ce; | background: #f2f2ce; | ||
font-size: 110%; | font-size: 110%; | ||
font-weight: bold; | font-weight: bold; | ||
text-align: center; | text-align: center; | ||
padding: | padding: 4px 10px; /* vertical + horizontal spacing */ | ||
border-radius: 2px; | |||
margin: 4px 0; /* spacing from top and bottom */ | |||
} | } | ||
/* Section headers */ | /* Section headers */ | ||
.infobox-header { | .infobox-header { | ||
display: inline-block; | |||
background: #e6e6cc; | background: #e6e6cc; | ||
font-weight: bold; | font-weight: bold; | ||
text-align: center; | text-align: center; | ||
padding: | padding: 3px 8px; | ||
border-radius: 2px; | |||
font-size: 95%; | font-size: 95%; | ||
margin: 3px 0; | |||
} | } | ||
| Line 50: | Line 57: | ||
.infobox-image { | .infobox-image { | ||
text-align: center; | text-align: center; | ||
background: #f9f9f9; /* | background: #f9f9f9; /* same as table background */ | ||
padding: 2px 0; | padding: 2px 0; | ||
} | } | ||
| Line 66: | Line 73: | ||
text-align: center; | text-align: center; | ||
font-size: 105%; | font-size: 105%; | ||
margin: 2px 0; | |||
} | } | ||
Revision as of 18:26, 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 {
display: inline-block; /* shrink to content + padding */
background: #f2f2ce;
font-size: 110%;
font-weight: bold;
text-align: center;
padding: 4px 10px; /* vertical + horizontal spacing */
border-radius: 2px;
margin: 4px 0; /* spacing from top and bottom */
}
/* Section headers */
.infobox-header {
display: inline-block;
background: #e6e6cc;
font-weight: bold;
text-align: center;
padding: 3px 8px;
border-radius: 2px;
font-size: 95%;
margin: 3px 0;
}
/* 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 table background */
padding: 2px 0;
}
/* 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%;
margin: 2px 0;
}
/* Authority text */
.infobox-authority {
font-size: 90%;
}