Jump to content

Template:Speciesbox/styles.css: Difference between revisions

From Fifth Empire Wiki
mNo edit summary
mNo edit summary
Line 52: Line 52:
.speciesbox-section + tr td {
.speciesbox-section + tr td {
     padding-top: 0.5em;
     padding-top: 0.5em;
}
.speciesbox td {
    vertical-align: middle;
}
.speciesbox td .iucn-status,
.speciesbox td img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
}

Revision as of 20:27, 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;
    padding: 0.4em;
}

.speciesbox td {
    padding: 0.4em;
}

/* === Speciesbox main title (name) === */
.speciesbox-title {
    text-align: center;
    font-size: 125%;
    font-weight: bold;
    background-color: #eef2d6;
    padding: 0.5em;
}

.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;
    padding: 0.4em;
    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 {
    padding-top: 0.5em;
}

.speciesbox td {
    vertical-align: middle;
}

.speciesbox td .iucn-status,
.speciesbox td img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}