Template:StatTable/styles.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tag: Reverted |
No edit summary Tags: Manual revert Reverted |
||
| Line 1: | Line 1: | ||
/* ── | /* ── frame ─────────────────────────────────────────── */ | ||
.statbox table { | .statbox table{ | ||
border: 3px solid #444; | border:3px solid #444; /* colour is overridden inline in the template */ | ||
border-radius: 10px; | border-radius:10px; | ||
background: #d7d8e8; | background:#d7d8e8; | ||
border-collapse: separate; | border-collapse:separate; | ||
margin: auto; | margin:auto; | ||
max-width: 620px; | max-width:620px; | ||
font-family:inherit; | |||
font-family: inherit; | |||
} | } | ||
/* ── | /* ── first column: label + value ───────────────────── */ | ||
.lab{ | |||
display:flex; | |||
justify-content:space-between; | |||
align-items:center; | |||
font-weight:700; | |||
display: flex; | font-size:110%; | ||
justify-content: space-between; | white-space:nowrap; | ||
align-items: center; | |||
font-weight: 700; | |||
font-size: 110%; | |||
white-space: nowrap; | |||
} | } | ||
/* ── | /* ── second column: bar background ─────────────────── */ | ||
td.bar{padding:0} | |||
.fill{ | |||
height:20px; | |||
border:1px solid rgba(0,0,0,.25); | |||
} | background:#777; /* replaced inline per-row */ | ||
. | |||
} | } | ||
.statbox td.bar { | |||
width: 255px; | |||
.statbox | |||
} | } | ||
/* | /* row colours + bar colours */ | ||
.row-hp {background:#9EE865} .row-hp .fill{background:#69DC12} | |||
.row-atk {background:#F5DE69} .row-atk .fill{background:#EFCC18} | |||
.row-def {background:#F09A65} .row-def .fill{background:#E86412} | |||
.row-spa {background:#66D8F6} .row-spa .fill{background:#14C3F1} | |||
.row-spd {background:#899EEA} .row-spd .fill{background:#4A6ADF} | |||
.row-spe {background:#E46CCA} .row-spe .fill{background:#D51DAD} | |||
/* | /* total row */ | ||
.total {background:#d7d8e8} | |||
.total .lab{padding:6px;font-weight:700} | |||
} | .total .bar{background:none} | ||
} | |||
} | |||
Revision as of 06:15, 19 May 2025
/* ── frame ─────────────────────────────────────────── */
.statbox table{
border:3px solid #444; /* colour is overridden inline in the template */
border-radius:10px;
background:#d7d8e8;
border-collapse:separate;
margin:auto;
max-width:620px;
font-family:inherit;
}
/* ── first column: label + value ───────────────────── */
.lab{
display:flex;
justify-content:space-between;
align-items:center;
font-weight:700;
font-size:110%;
white-space:nowrap;
}
/* ── second column: bar background ─────────────────── */
td.bar{padding:0}
.fill{
height:20px;
border:1px solid rgba(0,0,0,.25);
background:#777; /* replaced inline per-row */
}
.statbox td.bar {
width: 255px;
}
/* row colours + bar colours */
.row-hp {background:#9EE865} .row-hp .fill{background:#69DC12}
.row-atk {background:#F5DE69} .row-atk .fill{background:#EFCC18}
.row-def {background:#F09A65} .row-def .fill{background:#E86412}
.row-spa {background:#66D8F6} .row-spa .fill{background:#14C3F1}
.row-spd {background:#899EEA} .row-spd .fill{background:#4A6ADF}
.row-spe {background:#E46CCA} .row-spe .fill{background:#D51DAD}
/* total row */
.total {background:#d7d8e8}
.total .lab{padding:6px;font-weight:700}
.total .bar{background:none}