Jump to content

Template:Speciesbox/styles.css: Difference between revisions

From Fifth Empire Wiki
mNo edit summary
mNo edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
.speciesbox {
.speciesbox {
     width: 100%;
     width: 100%;
     max-width: 300px;
     max-width: 260px;
     border: 1px solid #a2a9b1;
     border: 1px solid #a2a9b1;
     background: #f8f9fa;
     background: #f8f9fa;
     font-size: 90%;
     font-size: 90%;
    float: right;                /* standard MediaWiki infobox behaviour */
    clear: right;
    margin: 0 0 1em 1em;          /* space between box and text */
}
}


Line 10: Line 13:
     background: #eaecf0;
     background: #eaecf0;
     text-align: left;
     text-align: left;
     padding: 0.4em;
     padding: 0.1em;
    width: 40%;
    white-space: nowrap;
    text-align: left;
    vertical-align: top;
}
}


.speciesbox td {
.speciesbox td {
     padding: 0.4em;
     padding: 0.1em;
    vertical-align: middle;
    width: 40%;
    text-align: left;
}
}


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


Line 32: Line 46:
}
}


 
/* === Section headers (Conservation status, Scientific classification, etc.) === */
/* === IUCN Red List colours (IUCN 3.1) === */
.speciesbox-section {
 
     text-align: center;
.iucn-ex {
     background: #000000;
    color: #ffffff;
     font-weight: bold;
     font-weight: bold;
     padding: 0.1em 0.4em;
    background-color: #eef2d6;
     padding: 0.1em;
    border-top: 1px solid #a2a9b1;
}
}


.iucn-ew {
/* Ensure section headers look like headers, not data */
     background: #5a0000;
.speciesbox-section {
    color: #ffffff;
     border-bottom: 1px solid #a2a9b1;
    font-weight: bold;
    padding: 0.1em 0.4em;
}
}


.iucn-cr {
/* Optional: tighten spacing below headers */
     background: #cc0000;
.speciesbox-section + tr td {
    color: #ffffff;
     padding-top: 0.1em;
    font-weight: bold;
    padding: 0.1em 0.4em;
}
}


.iucn-en {
    background: #e65100;
    color: #ffffff;
    font-weight: bold;
    padding: 0.1em 0.4em;
}


.iucn-vu {
.speciesbox td .iucn-status,
    background: #f9a825;
.speciesbox td img {
    color: #000000;
     display: block;
    font-weight: bold;
     margin-left: auto;
    padding: 0.1em 0.4em;
     margin-right: auto;
}
     text-align: center;
 
.iucn-nt {
    background: #c0ca33;
    color: #000000;
    font-weight: bold;
    padding: 0.1em 0.4em;
}
 
.iucn-lc {
     background: #2e7d32;
     color: #ffffff;
    font-weight: bold;
     padding: 0.1em 0.4em;
}
 
.iucn-dd {
    background: #9e9e9e;
    color: #000000;
    font-weight: bold;
     padding: 0.1em 0.4em;
}
 
.iucn-ne {
    background: #bdbdbd;
    color: #000000;
    font-weight: bold;
    padding: 0.1em 0.4em;
}
 
.iucn-unknown {
    background: #eeeeee;
    color: #000000;
    font-style: italic;
    padding: 0.1em 0.4em;
}
 
.iucn-chart {
    display: flex;
    justify-content: space-between;
    margin: 0.3em 0;
}
}

Latest revision as of 21:14, 29 January 2026

.speciesbox {
    width: 100%;
    max-width: 260px;
    border: 1px solid #a2a9b1;
    background: #f8f9fa;
    font-size: 90%;
    float: right;                 /* standard MediaWiki infobox behaviour */
    clear: right;
    margin: 0 0 1em 1em;           /* space between box and text */
}

.speciesbox th {
    background: #eaecf0;
    text-align: left;
    padding: 0.1em;
    width: 40%;
    white-space: nowrap;
    text-align: left;
    vertical-align: top;
}

.speciesbox td {
    padding: 0.1em;
    vertical-align: middle;
    width: 40%;
    text-align: left;
}


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

.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.1em;
    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.1em;
}


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