Module:GameInfo/styles.css: Difference between revisions
From SpiritVale Wiki
More actions
No edit summary Tags: Mobile edit Mobile web edit |
No edit summary Tags: Mobile edit Mobile web edit |
||
| Line 415: | Line 415: | ||
/* ========================================================================== | /* ========================================================================== | ||
7) SCHEMA 2 SKILL SCALING DASHBOARD | 7) SCHEMA 2 SKILL SCALING DASHBOARD | ||
Goal (match mockup): | |||
- Row 1: | - The outer scaling card is one cohesive surface (no inner section panels). | ||
- Row 2: Core pills | - Row 1: LEFT cluster = (big damage + 2x3 attribute chips), centered together. | ||
RIGHT side reserved for future content (empty for now). | |||
- Row 2: Core pills across the full width. | |||
Attribute chips: | |||
- Active: icon + value (single line), no label | - Active: icon + value (single line), no label | ||
- Inactive: en dash only | - Inactive: en dash only (no icon/value/label) | ||
Chip order (2 columns x 3 rows): | |||
- | - Col 1: STR, VIT, DEX | ||
- | - Col 2: AGI, INT, LUK | ||
========================================================================== */ | ========================================================================== */ | ||
| Line 452: | Line 454: | ||
} | } | ||
/* Two-row | /* Two-row layout with a reserved right-side column on row 1: | ||
col 1: damage | |||
col 2: attribute chips | |||
col 3: reserved (future block) | |||
*/ | */ | ||
.sv_skill_scaling__body{ | .sv_skill_scaling__body{ | ||
display:grid; | display:grid; | ||
grid-template-columns: | grid-template-columns:max-content max-content minmax(0, 1fr); | ||
grid-template-rows:auto auto; | grid-template-rows:auto auto; | ||
column-gap: | |||
column-gap:14px; | |||
row-gap:12px; | row-gap:12px; | ||
align-items:center; | align-items:center; | ||
} | } | ||
| Line 488: | Line 493: | ||
align-items:flex-start; | align-items:flex-start; | ||
text-align:left; | text-align:left; | ||
align-self:center; | |||
} | } | ||
| Line 496: | Line 503: | ||
} | } | ||
/* | /* Attribute chips: sit immediately beside the primary output */ | ||
.sv_skill_scaling__column--stats{ | .sv_skill_scaling__column--stats{ | ||
grid-column:2; | grid-column:2; | ||
grid-row:1; | grid-row:1; | ||
padding:0; | padding:0; | ||
align-self:center; | |||
justify-self:start; | |||
} | } | ||
| Line 520: | Line 530: | ||
} | } | ||
/* | /* Damage typography (match mockup scale) */ | ||
.sv_skill_scaling__primary-value{ | .sv_skill_scaling__primary-value{ | ||
word-wrap:break-word; | word-wrap:break-word; | ||
font-weight:900; | font-weight:900; | ||
font-size: | font-size:58px; | ||
line-height:0. | line-height:0.90; | ||
letter-spacing:-0. | letter-spacing:-0.85px; | ||
color:rgba(245,249,255,0.99); | color:rgba(245,249,255,0.99); | ||
} | } | ||
| Line 535: | Line 545: | ||
font-weight:900; | font-weight:900; | ||
font-size: | font-size:12px; | ||
line-height:1. | line-height:1.05; | ||
letter-spacing:0.22px; | letter-spacing:0.22px; | ||
text-transform:uppercase; | text-transform:uppercase; | ||
| Line 542: | Line 552: | ||
} | } | ||
/* | /* No extra padding inside these wrappers (outer card already provides it) */ | ||
.sv_skill_scaling__stats, | .sv_skill_scaling__stats, | ||
.sv_skill_scaling__core{ | .sv_skill_scaling__core{ | ||
| Line 549: | Line 559: | ||
/* -------------------------------------------------------------------------- | /* -------------------------------------------------------------------------- | ||
7A) | 7A) ATTRIBUTE CHIPS (2 columns x 3 rows) | ||
Fixed positions + compact sizing to prevent stretching. | |||
-------------------------------------------------------------------------- */ | -------------------------------------------------------------------------- */ | ||
.sv_skill_scaling__stats-grid{ | .sv_skill_scaling__stats-grid{ | ||
display:grid; | display:grid; | ||
/* | /* Prevent the “fills the whole row” stretch that caused the mismatch */ | ||
gap: | grid-template-columns:repeat(2, max-content); | ||
/* Row gap / column gap tuned for the mockup */ | |||
row-gap:10px; | |||
column-gap:12px; | |||
/* Hard ordering regardless of DOM | /* Hard ordering regardless of DOM order */ | ||
grid-template-areas: | grid-template-areas: | ||
"str agi" | "str agi" | ||
| Line 579: | Line 587: | ||
.sv_skill_scaling__stat-pill--luk{ grid-area:luk; } | .sv_skill_scaling__stat-pill--luk{ grid-area:luk; } | ||
/* Stat chips: | /* Shared pill shell (core uses this; stat chips override radius/size below) */ | ||
.sv_skill_scaling__pill{ | |||
position:relative; | |||
min-width:0; | |||
border-radius:14px; | |||
border:1px solid rgba(59,75,99,0.92); | |||
background:#1a2434; | |||
background-image:linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.00)); | |||
box-shadow:inset 0 1px 0 rgba(255,255,255,0.03); | |||
} | |||
/* Stat chips: compact capsules with a fixed, non-stretchy footprint */ | |||
.sv_skill_scaling__stat-pill{ | .sv_skill_scaling__stat-pill{ | ||
border-radius:999px; | border-radius:999px; | ||
/* | /* Fixed width prevents huge bars */ | ||
min-height: | width:132px; | ||
padding: | |||
min-height:28px; | |||
padding:6px 12px; | |||
display:flex; | display:flex; | ||
| Line 611: | Line 633: | ||
justify-content:center; | justify-content:center; | ||
gap:8px; | |||
gap: | |||
} | } | ||
| Line 620: | Line 641: | ||
} | } | ||
/* Icon sizing | /* Icon sizing */ | ||
.sv_skill_scaling__stat-icon{ | .sv_skill_scaling__stat-icon{ | ||
width: | width:14px; | ||
height: | height:14px; | ||
display:flex; | display:flex; | ||
| Line 642: | Line 663: | ||
.sv_skill_scaling__stat-icon .sv-miss{ | .sv_skill_scaling__stat-icon .sv-miss{ | ||
width: | width:12px; | ||
height: | height:12px; | ||
font-size: | font-size:9px; | ||
line-height:1; | line-height:1; | ||
} | } | ||
/* Value sizing | /* Value sizing */ | ||
.sv_skill_scaling__stat-value{ | .sv_skill_scaling__stat-value{ | ||
font-weight:900; | font-weight:900; | ||
font-size: | font-size:15px; | ||
line-height:1; | line-height:1; | ||
letter-spacing:-0.12px; | letter-spacing:-0.12px; | ||
| Line 690: | Line 711: | ||
content:"—"; | content:"—"; | ||
font-weight:900; | font-weight:900; | ||
font-size: | font-size:15px; | ||
line-height:1; | line-height:1; | ||
color:rgba(140,156,184,0.78); | color:rgba(140,156,184,0.78); | ||
| Line 702: | Line 723: | ||
} | } | ||
/* Per-stat color treatments | /* Per-stat color treatments */ | ||
.sv_skill_scaling__stat-pill--str.is-active{ | .sv_skill_scaling__stat-pill--str.is-active{ | ||
border-color:rgba(145,63,82,0.96); | border-color:rgba(145,63,82,0.96); | ||
| Line 708: | Line 729: | ||
background-image:linear-gradient(180deg, rgba(190,88,113,0.16), rgba(0,0,0,0.00)); | background-image:linear-gradient(180deg, rgba(190,88,113,0.16), rgba(0,0,0,0.00)); | ||
} | } | ||
.sv_skill_scaling__stat-pill--str.is-active .sv_skill_scaling__stat-value{ color:#ffdce5; } | .sv_skill_scaling__stat-pill--str.is-active .sv_skill_scaling__stat-value{ color:#ffdce5; } | ||
| Line 715: | Line 737: | ||
background-image:linear-gradient(180deg, rgba(210,144,18,0.15), rgba(0,0,0,0.00)); | background-image:linear-gradient(180deg, rgba(210,144,18,0.15), rgba(0,0,0,0.00)); | ||
} | } | ||
.sv_skill_scaling__stat-pill--vit.is-active .sv_skill_scaling__stat-value{ color:#ffefc9; } | .sv_skill_scaling__stat-pill--vit.is-active .sv_skill_scaling__stat-value{ color:#ffefc9; } | ||
| Line 722: | Line 745: | ||
background-image:linear-gradient(180deg, rgba(159,194,27,0.16), rgba(0,0,0,0.00)); | background-image:linear-gradient(180deg, rgba(159,194,27,0.16), rgba(0,0,0,0.00)); | ||
} | } | ||
.sv_skill_scaling__stat-pill--dex.is-active .sv_skill_scaling__stat-value{ color:#edf8cc; } | .sv_skill_scaling__stat-pill--dex.is-active .sv_skill_scaling__stat-value{ color:#edf8cc; } | ||
| Line 729: | Line 753: | ||
background-image:linear-gradient(180deg, rgba(165,82,198,0.17), rgba(0,0,0,0.00)); | background-image:linear-gradient(180deg, rgba(165,82,198,0.17), rgba(0,0,0,0.00)); | ||
} | } | ||
.sv_skill_scaling__stat-pill--agi.is-active .sv_skill_scaling__stat-value{ color:#f0dcff; } | .sv_skill_scaling__stat-pill--agi.is-active .sv_skill_scaling__stat-value{ color:#f0dcff; } | ||
| Line 736: | Line 761: | ||
background-image:linear-gradient(180deg, rgba(35,140,230,0.18), rgba(0,0,0,0.00)); | background-image:linear-gradient(180deg, rgba(35,140,230,0.18), rgba(0,0,0,0.00)); | ||
} | } | ||
.sv_skill_scaling__stat-pill--int.is-active .sv_skill_scaling__stat-value{ color:#d8eeff; } | .sv_skill_scaling__stat-pill--int.is-active .sv_skill_scaling__stat-value{ color:#d8eeff; } | ||
| Line 743: | Line 769: | ||
background-image:linear-gradient(180deg, rgba(234,194,9,0.16), rgba(0,0,0,0.00)); | background-image:linear-gradient(180deg, rgba(234,194,9,0.16), rgba(0,0,0,0.00)); | ||
} | } | ||
.sv_skill_scaling__stat-pill--luk.is-active .sv_skill_scaling__stat-value{ color:#fff2ba; } | .sv_skill_scaling__stat-pill--luk.is-active .sv_skill_scaling__stat-value{ color:#fff2ba; } | ||
/* -------------------------------------------------------------------------- | /* -------------------------------------------------------------------------- | ||
7B) CORE PILLS ( | 7B) CORE PILLS (current placement: row 2) | ||
-------------------------------------------------------------------------- */ | |||
.sv_skill_scaling__core-grid{ | .sv_skill_scaling__core-grid{ | ||
| Line 812: | Line 839: | ||
.sv_skill_scaling__core-pill.is-inactive .sv_skill_scaling__core-label{ | .sv_skill_scaling__core-pill.is-inactive .sv_skill_scaling__core-label{ | ||
color:rgba(140,156,184,0.78); | color:rgba(140,156,184,0.78); | ||
} | } | ||
| Line 1,170: | Line 1,188: | ||
} | } | ||
/* | /* Keep the damage+chips cluster intact; tighten sizes */ | ||
. | .sv_skill_scaling__primary-value{ | ||
font-size:48px; | |||
letter-spacing:-0.70px; | |||
} | } | ||
. | .sv_skill_scaling__stat-pill{ | ||
width:118px; | |||
min-height:26px; | |||
padding:6px 10px; | |||
} | } | ||
.sv_skill_scaling__stats-grid{ | .sv_skill_scaling__stats-grid{ | ||
row-gap:9px; | |||
column-gap:10px; | |||
} | } | ||
.sv_skill_scaling__core-grid{ | .sv_skill_scaling__core-grid{ | ||
grid-template-columns:repeat(3, minmax(0, 1fr)); | grid-template-columns:repeat(3, minmax(0, 1fr)); | ||
} | } | ||
} | } | ||
| Line 1,298: | Line 1,306: | ||
} | } | ||
/* Keep the cluster intact; scale down */ | |||
.sv_skill_scaling__primary-value{ | .sv_skill_scaling__primary-value{ | ||
font-size: | font-size:42px; | ||
letter-spacing:-0.60px; | |||
} | } | ||
.sv_skill_scaling__primary-label{ | .sv_skill_scaling__primary-label{ | ||
font-size:11px; | font-size:11px; | ||
} | } | ||
.sv_skill_scaling__stat-pill{ | .sv_skill_scaling__stat-pill{ | ||
min-height: | width:104px; | ||
min-height:24px; | |||
padding:5px 9px; | |||
} | } | ||
.sv_skill_scaling__stat- | .sv_skill_scaling__stat-icon{ | ||
width:13px; | |||
height:13px; | |||
} | } | ||
.sv_skill_scaling__stat- | .sv_skill_scaling__stat-value{ | ||
font-size:14px; | |||
} | } | ||
.sv_skill_scaling__stat- | .sv_skill_scaling__stat-pill.is-inactive::before{ | ||
font-size: | font-size:14px; | ||
} | } | ||
. | .sv_skill_scaling__stats-grid{ | ||
row-gap:8px; | |||
column-gap:10px; | |||
} | } | ||
.sv_skill_scaling__core-grid{ | .sv_skill_scaling__core-grid{ | ||
grid-template-columns:repeat(3, minmax(0, 1fr)); | grid-template-columns:repeat(3, minmax(0, 1fr)); | ||
} | } | ||
| Line 1,381: | Line 1,363: | ||
} | } | ||
. | /* Ultra-tight: preserve side-by-side cluster without overflow */ | ||
.sv_skill_scaling__primary-value{ | |||
font-size:36px; | |||
letter-spacing:-0.50px; | |||
} | |||
.sv_skill_scaling__body{ | |||
column-gap:10px; | |||
} | |||
.sv_skill_scaling__stat-pill{ | |||
width:92px; | |||
min-height:22px; | |||
padding:4px 8px; | |||
} | |||
.sv_skill_scaling__stat-value{ | |||
font-size:13px; | |||
} | |||
.sv_skill_scaling__stat-pill.is-inactive::before{ | |||
font-size:13px; | |||
} | } | ||