Template:StatTable/styles.css: Difference between revisions

From I-Pixelmon
Jump to navigation Jump to search
No edit summary
No edit summary
 
(22 intermediate revisions by 2 users not shown)
Line 1: Line 1:
/* frame & table */
/* ── frame ─────────────────────────────────────────── */
.statbox table{
.statbox table{
   border:3px solid;
   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-top: 10px;
   max-width:620px;
   max-width:620px;
  width:100%;
   font-family:inherit;
   font-family:inherit;
}
}
.statbox th{
 
   width:110px;
.statnumber{
   padding:6px 4px;
  display:inline-block;      /* reserve space even for 2-digit # */
   text-align:left;
   width:3ch;                 /* enough for 000-255              */
   text-align:right;          /* flush against the right edge    */
}
 
/* ── first column: label + value ───────────────────── */
.lab{
  display:flex;
   justify-content:space-between;
  align-items:center;
   font-weight:700;
   font-weight:700;
   font-size:110%;
   font-size:110%;
  white-space:nowrap;
  min-width: 100px;
  padding:0 4px;              /* tiny gap left/right              */
}
/* ── 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.val{
 
   width:48px;
.statbox td.bar {
  text-align:right;
   width: 255px;
  padding-right:6px;
  font-weight:700;
}
}
.statbox td.bar{padding:0}


/* row colours + bar colours */
/* row colours + bar colours */
.row-hp  {background:#ff9a9a} .row-hp  .fill{background:#ff5757}
.row-hp  {background:#9EE865} .row-hp  .fill{background:#69DC12}
.row-atk {background:#f6c19e} .row-atk .fill{background:#e48a39}
.row-atk {background:#F5DE69} .row-atk .fill{background:#EFCC18}
.row-def {background:#fff2b3} .row-def .fill{background:#f2cf45}
.row-def {background:#F09A65} .row-def .fill{background:#E86412}
.row-spa {background:#bcd0ff} .row-spa .fill{background:#6d93ff}
.row-spa {background:#66D8F6} .row-spa .fill{background:#14C3F1}
.row-spd {background:#cfe8c4} .row-spd .fill{background:#62b455}
.row-spd {background:#899EEA} .row-spd .fill{background:#4A6ADF}
.row-spe {background:#f8bfd8} .row-spe .fill{background:#f27ab0}
.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}


.fill{
/* centre the two “Range” cells */
   height:20px;
.statbox td.range{
   border:1px solid rgba(0,0,0,.25);
   text-align:center;     /* horizontal */
   vertical-align:middle; /* vertical  */
}
}


.total-lab{padding:6px;font-weight:700;background:#d7d8e8}
/* make the small sub-headers a bit smaller */
.total-val{padding:6px;text-align:right;background:#fff;font-weight:700}
.statbox th.hdr-sub{
  font-size:85%;
  font-weight:600;       /* keep them bold-ish */
}

Latest revision as of 05:28, 2 June 2025

/* ── frame ─────────────────────────────────────────── */
.statbox table{
  border:3px solid #444;      /* colour is overridden inline in the template */
  border-radius:10px;
  background:#d7d8e8;
  border-collapse:separate;
  margin-top: 10px;
  max-width:620px;
  font-family:inherit;
}

.statnumber{
  display:inline-block;       /* reserve space even for 2-digit # */
  width:3ch;                  /* enough for 000-255               */
  text-align:right;           /* flush against the right edge     */
}

/* ── first column: label + value ───────────────────── */
.lab{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-weight:700;
  font-size:110%;
  white-space:nowrap;
  min-width: 100px;
  padding:0 4px;              /* tiny gap left/right              */
}

/* ── 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}

/* centre the two “Range” cells */
.statbox td.range{
  text-align:center;     /* horizontal */
  vertical-align:middle; /* vertical   */
}

/* make the small sub-headers a bit smaller */
.statbox th.hdr-sub{
  font-size:85%;
  font-weight:600;       /* keep them bold-ish */
}