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 389: | Line 389: | ||
} | } | ||
/* | /* Skill scaling dashboard (2-column layout; mobile stacks) */ | ||
.sv_skill_scaling { | .sv_skill_scaling { | ||
| Line 416: | Line 401: | ||
} | } | ||
/* Absorb the level selector | /* Absorb the level selector into the scaling surface */ | ||
.sv_skill_scaling .sv-skill-level, | .sv_skill_scaling .sv-skill-level, | ||
.sv_skill_scaling__level { | .sv_skill_scaling__level { | ||
| Line 428: | Line 413: | ||
} | } | ||
/* | /* Desktop/tablet: two columns (left cluster, right core grid) */ | ||
*/ | |||
.sv_skill_scaling__body { | .sv_skill_scaling__body { | ||
display: grid; | display: grid; | ||
grid-template-columns: minmax(0, | grid-template-columns: minmax(0, 1fr) minmax(0, 252px); | ||
column-gap: 16px; | column-gap: 16px; | ||
row-gap: 12px; | row-gap: 12px; | ||
align-items: | align-items: start; | ||
} | |||
/* Keep the placeholder out of the way (core is now column 2) */ | |||
.sv_skill_scaling__side { | |||
display: none; | |||
} | } | ||
.sv_skill_scaling__cluster { | .sv_skill_scaling__cluster { | ||
grid-column: 1; | grid-column: 1; | ||
| Line 451: | Line 434: | ||
justify-content: flex-start; | justify-content: flex-start; | ||
gap: 12px; | gap: 12px; | ||
/* | /* allows cluster to reflow if left column gets tight */ | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
min-width: 0; | min-width: 0; | ||
} | } | ||
.sv_skill_scaling__column--core { | |||
. | |||
grid-column: 2; | grid-column: 2; | ||
grid-row: 1; | grid-row: 1; | ||
| Line 464: | Line 445: | ||
} | } | ||
/* | /* Neutral wrappers */ | ||
.sv_skill_scaling__column { | .sv_skill_scaling__column { | ||
min-width: 0; | min-width: 0; | ||
| Line 482: | Line 456: | ||
} | } | ||
/* | /* Damage */ | ||
.sv_skill_scaling__column--primary { | .sv_skill_scaling__column--primary { | ||
display: flex; | display: flex; | ||
| Line 493: | Line 467: | ||
.sv_skill_scaling__primary-value { | .sv_skill_scaling__primary-value { | ||
word-wrap: break-word; | word-wrap: break-word; | ||
overflow-wrap: anywhere; | |||
font-weight: 900; | font-weight: 900; | ||
font-size: | font-size: 40px; | ||
line-height: 0. | line-height: 0.94; | ||
letter-spacing: -0. | letter-spacing: -0.55px; | ||
color: rgba(245,249,255,0.99); | color: rgba(245,249,255,0.99); | ||
} | } | ||
| Line 503: | Line 478: | ||
margin-top: 6px; | margin-top: 6px; | ||
font-weight: 900; | font-weight: 900; | ||
font-size: | font-size: 10px; | ||
line-height: 1.05; | line-height: 1.05; | ||
letter-spacing: 0.22px; | letter-spacing: 0.22px; | ||
| Line 510: | Line 485: | ||
} | } | ||
/* | /* Attribute chips (2×3) */ | ||
.sv_skill_scaling__stats-grid { | .sv_skill_scaling__stats-grid { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(2, max-content); | grid-template-columns: repeat(2, max-content); | ||
justify-content: start; | justify-content: start; | ||
| Line 522: | Line 493: | ||
row-gap: 8px; | row-gap: 8px; | ||
column-gap: 10px; | column-gap: 10px; | ||
grid-template-areas: | grid-template-areas: | ||
"str agi" | "str agi" | ||
| Line 553: | Line 523: | ||
} | } | ||
/* Shared | /* Shared shell (stat chips still use this) */ | ||
.sv_skill_scaling__pill { | .sv_skill_scaling__pill { | ||
position: relative; | position: relative; | ||
| Line 564: | Line 534: | ||
} | } | ||
.sv_skill_scaling__stat-pill { | .sv_skill_scaling__stat-pill { | ||
border-radius: 999px; | border-radius: 999px; | ||
width: | width: 80px; | ||
min-height: 22px; | min-height: 22px; | ||
padding: 4px 8px; | padding: 4px 8px; | ||
| Line 576: | Line 545: | ||
} | } | ||
.sv_skill_scaling__stat-main { | .sv_skill_scaling__stat-main { | ||
min-width: 0; | min-width: 0; | ||
| Line 592: | Line 560: | ||
} | } | ||
.sv_skill_scaling__stat-label { | .sv_skill_scaling__stat-label { | ||
display: none; | display: none; | ||
} | } | ||
.sv_skill_scaling__stat-icon { | .sv_skill_scaling__stat-icon { | ||
width: 12px; | width: 12px; | ||
| Line 625: | Line 591: | ||
} | } | ||
.sv_skill_scaling__stat-value { | .sv_skill_scaling__stat-value { | ||
font-weight: 900; | font-weight: 900; | ||
font-size: | font-size: 12px; | ||
line-height: 1; | line-height: 1; | ||
letter-spacing: -0. | letter-spacing: -0.10px; | ||
color: rgba(245,249,255,0.98); | color: rgba(245,249,255,0.98); | ||
} | } | ||
.sv_skill_scaling__stat-hit { | .sv_skill_scaling__stat-hit { | ||
position: absolute; | position: absolute; | ||
| Line 651: | Line 615: | ||
} | } | ||
.sv_skill_scaling__stat-pill.is-inactive { | .sv_skill_scaling__stat-pill.is-inactive { | ||
border-color: rgba(59,75,99,0.72); | border-color: rgba(59,75,99,0.72); | ||
| Line 667: | Line 630: | ||
content: "—"; | content: "—"; | ||
font-weight: 900; | font-weight: 900; | ||
font-size: | font-size: 12px; | ||
line-height: 1; | line-height: 1; | ||
color: rgba(140,156,184,0.78); | color: rgba(140,156,184,0.78); | ||
} | } | ||
.sv_skill_scaling__stat-pill.is-active { | .sv_skill_scaling__stat-pill.is-active { | ||
box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 0 0 1px rgba(255,255,255,0.01); | box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 0 0 1px rgba(255,255,255,0.01); | ||
} | } | ||
/* Per-stat | /* Per-stat colors */ | ||
.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 738: | Line 700: | ||
} | } | ||
/* | /* Core (3×2 grid; no pill/bubble look) */ | ||
.sv_skill_scaling__core-grid { | .sv_skill_scaling__core-grid { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat( | grid-template-columns: repeat(3, minmax(0, 1fr)); | ||
gap: 8px; | gap: 8px; | ||
} | } | ||
/* Override the shared shell so core reads as a tight grid, not pills */ | |||
.sv_skill_scaling__core-pill { | .sv_skill_scaling__core-pill { | ||
min-height: | border-radius: 12px; | ||
padding: | min-height: 54px; | ||
padding: 8px 6px; | |||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
| Line 756: | Line 717: | ||
align-items: center; | align-items: center; | ||
text-align: center; | text-align: center; | ||
border: 1px solid rgba(59,75,99,0.85); | |||
background: #182130; | |||
background-image: none; | |||
box-shadow: none; | |||
} | } | ||
.sv_skill_scaling__core-pill.is-active { | |||
background: #1a2434; | |||
} | |||
.sv_skill_scaling__core-main { | .sv_skill_scaling__core-main { | ||
| Line 764: | Line 733: | ||
justify-content: center; | justify-content: center; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
gap: | gap: 4px; | ||
} | } | ||
| Line 771: | Line 740: | ||
word-wrap: break-word; | word-wrap: break-word; | ||
font-weight: 900; | font-weight: 900; | ||
font-size: | font-size: 14px; | ||
line-height: 1.02; | line-height: 1.02; | ||
color: rgba(245,249,255,0.98); | color: rgba(245,249,255,0.98); | ||
| Line 778: | Line 747: | ||
.sv_skill_scaling__core-unit { | .sv_skill_scaling__core-unit { | ||
font-weight: 900; | font-weight: 900; | ||
font-size: | font-size: 10px; | ||
line-height: 1.05; | line-height: 1.05; | ||
color: rgba(182,198,224,0.95); | color: rgba(182,198,224,0.95); | ||
| Line 784: | Line 753: | ||
.sv_skill_scaling__core-label { | .sv_skill_scaling__core-label { | ||
margin-top: | margin-top: 5px; | ||
font-weight: 900; | font-weight: 900; | ||
font-size: | font-size: 10px; | ||
line-height: 1. | line-height: 1.10; | ||
letter-spacing: 0. | letter-spacing: 0.14px; | ||
text-transform: uppercase; | text-transform: uppercase; | ||
color: rgba(182,198,224,0.95); | color: rgba(182,198,224,0.95); | ||
| Line 804: | Line 773: | ||
} | } | ||
/* | /* Responsive */ | ||
@media (max-width:850px) { | @media (max-width:850px) { | ||
.sv_skill_scaling__body { | .sv_skill_scaling__body { | ||
grid-template-columns: minmax(0, | grid-template-columns: minmax(0, 1fr) minmax(0, 236px); | ||
} | } | ||
.sv_skill_scaling__primary-value { | .sv_skill_scaling__primary-value { | ||
font-size: | font-size: 36px; | ||
} | } | ||
.sv_skill_scaling__stat-pill { | .sv_skill_scaling__stat-pill { | ||
width: | width: 76px; | ||
} | } | ||
| Line 827: | Line 791: | ||
} | } | ||
.sv_skill_scaling__core- | .sv_skill_scaling__core-pill { | ||
min-height: 52px; | |||
} | |||
.sv_skill_scaling__core-value { | |||
font-size: 13px; | |||
} | |||
.sv_skill_scaling__core-label { | |||
font-size: 9px; | |||
} | } | ||
} | } | ||
@media (max-width:500px) { | @media (max-width:500px) { | ||
/* Stack: cluster on top, core below (no second row concept) */ | |||
.sv_skill_scaling { | .sv_skill_scaling { | ||
padding: 9px 10px 10px; | padding: 9px 10px 10px; | ||
| Line 842: | Line 815: | ||
} | } | ||
.sv_skill_scaling__body { | .sv_skill_scaling__body { | ||
grid-template-columns: 1fr; | grid-template-columns: 1fr; | ||
row-gap: 12px; | |||
} | } | ||
| Line 854: | Line 826: | ||
} | } | ||
. | .sv_skill_scaling__column--core { | ||
grid-column: 1; | grid-column: 1; | ||
grid-row: 2; | grid-row: 2; | ||
} | } | ||
.sv_skill_scaling__primary-value { | .sv_skill_scaling__primary-value { | ||
font-size: | font-size: 32px; | ||
} | } | ||
.sv_skill_scaling__primary-label { | .sv_skill_scaling__primary-label { | ||
font-size: | font-size: 10px; | ||
} | } | ||
.sv_skill_scaling__stat-pill { | .sv_skill_scaling__stat-pill { | ||
width: | width: 70px; | ||
} | } | ||
.sv_skill_scaling__stat- | .sv_skill_scaling__stat-value { | ||
font-size: 12px; | |||
} | |||
.sv_skill_scaling__core-grid { | |||
grid-template-columns: repeat(3, minmax(0, 1fr)); | |||
} | } | ||
.sv_skill_scaling__core-pill { | |||
min-height: 50px; | |||
padding: 7px 6px; | |||
} | |||
. | .sv_skill_scaling__core-value { | ||
font-size: | font-size: 13px; | ||
} | } | ||
. | .sv_skill_scaling__core-unit { | ||
font-size: | font-size: 10px; | ||
} | } | ||
.sv_skill_scaling__core- | .sv_skill_scaling__core-label { | ||
font-size: 9px; | |||
} | } | ||
} | } | ||
| Line 904: | Line 871: | ||
@media (max-width:360px) { | @media (max-width:360px) { | ||
.sv_skill_scaling__primary-value { | .sv_skill_scaling__primary-value { | ||
font-size: | font-size: 28px; | ||
} | } | ||
.sv_skill_scaling__stat-pill { | .sv_skill_scaling__stat-pill { | ||
width: | width: 66px; | ||
} | } | ||