Template:Speciesbox/styles.css: Difference between revisions
Appearance
mNo edit summary |
mNo edit summary |
||
| Line 10: | Line 10: | ||
background: #eaecf0; | background: #eaecf0; | ||
text-align: left; | text-align: left; | ||
width: 40%; | width: 40%; | ||
white-space: nowrap; | white-space: nowrap; | ||
| Line 18: | Line 17: | ||
.speciesbox td { | .speciesbox td { | ||
vertical-align: middle; | vertical-align: middle; | ||
width: 60%; | width: 60%; | ||
| Line 31: | Line 29: | ||
font-weight: bold; | font-weight: bold; | ||
background-color: #eef2d6; | background-color: #eef2d6; | ||
} | } | ||
| Line 48: | Line 46: | ||
font-weight: bold; | font-weight: bold; | ||
background-color: #eef2d6; | background-color: #eef2d6; | ||
border-top: 1px solid #a2a9b1; | border-top: 1px solid #a2a9b1; | ||
} | } | ||
| Line 59: | Line 56: | ||
/* Optional: tighten spacing below headers */ | /* Optional: tighten spacing below headers */ | ||
.speciesbox-section + tr td { | .speciesbox-section + tr td { | ||
} | } | ||
Revision as of 20:55, 29 January 2026
.speciesbox {
width: 100%;
max-width: 300px;
border: 1px solid #a2a9b1;
background: #f8f9fa;
font-size: 90%;
}
.speciesbox th {
background: #eaecf0;
text-align: left;
width: 40%;
white-space: nowrap;
text-align: left;
vertical-align: top;
}
.speciesbox td {
vertical-align: middle;
width: 60%;
text-align: left;
}
/* === Speciesbox main title (name) === */
.speciesbox-title {
text-align: center;
font-size: 125%;
font-weight: bold;
background-color: #eef2d6;
}
.speciesbox-image {
text-align: center;
}
.speciesbox-status-system {
font-size: 85%;
color: #54595d;
}
/* === Section headers (Conservation status, Scientific classification, etc.) === */
.speciesbox-section {
text-align: center;
font-weight: bold;
background-color: #eef2d6;
border-top: 1px solid #a2a9b1;
}
/* Ensure section headers look like headers, not data */
.speciesbox-section {
border-bottom: 1px solid #a2a9b1;
}
/* Optional: tighten spacing below headers */
.speciesbox-section + tr td {
}
.speciesbox td .iucn-status,
.speciesbox td img {
display: block;
margin-left: auto;
margin-right: auto;
text-align: center;
}