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 431: | Line 431: | ||
Row 1: cluster + side | Row 1: cluster + side | ||
Row 2: core spans both | Row 2: core spans both | ||
IMPORTANT: | |||
- Left column is capped so the cluster cannot consume the full row on desktop. | |||
*/ | */ | ||
.sv_skill_scaling__body { | .sv_skill_scaling__body { | ||
display: grid; | display: grid; | ||
grid-template-columns: | grid-template-columns: minmax(0, 360px) minmax(0, 1fr); | ||
grid-template-rows: auto auto; | grid-template-rows: auto auto; | ||
column-gap: 16px; | column-gap: 16px; | ||
| Line 449: | Line 451: | ||
justify-content: flex-start; | justify-content: flex-start; | ||
gap: 12px; | gap: 12px; | ||
/* Allows the cluster to reflow instead of forcing the column wider */ | |||
flex-wrap: wrap; | |||
min-width: 0; | min-width: 0; | ||
max-width: 100%; | |||
} | } | ||
| Line 489: | Line 494: | ||
word-wrap: break-word; | word-wrap: break-word; | ||
font-weight: 900; | font-weight: 900; | ||
font-size: | font-size: 44px; | ||
line-height: 0.92; | line-height: 0.92; | ||
letter-spacing: -0. | letter-spacing: -0.60px; | ||
color: rgba(245,249,255,0.99); | color: rgba(245,249,255,0.99); | ||
} | } | ||
| Line 498: | Line 503: | ||
margin-top: 6px; | margin-top: 6px; | ||
font-weight: 900; | font-weight: 900; | ||
font-size: | font-size: 11px; | ||
line-height: 1.05; | line-height: 1.05; | ||
letter-spacing: 0.22px; | letter-spacing: 0.22px; | ||
| Line 562: | Line 567: | ||
.sv_skill_scaling__stat-pill { | .sv_skill_scaling__stat-pill { | ||
border-radius: 999px; | border-radius: 999px; | ||
width: | width: 82px; | ||
min-height: 22px; | min-height: 22px; | ||
padding: 4px | padding: 4px 8px; | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
| Line 594: | Line 599: | ||
/* Icon sizing (force FILE render down to true micro size) */ | /* Icon sizing (force FILE render down to true micro size) */ | ||
.sv_skill_scaling__stat-icon { | .sv_skill_scaling__stat-icon { | ||
width: | width: 12px; | ||
height: | height: 12px; | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
| Line 608: | Line 613: | ||
.sv_skill_scaling__stat-icon .sv-img img { | .sv_skill_scaling__stat-icon .sv-img img { | ||
width: | width: 12px; | ||
height: | height: 12px; | ||
box-shadow: none; | box-shadow: none; | ||
} | } | ||
| Line 623: | Line 628: | ||
.sv_skill_scaling__stat-value { | .sv_skill_scaling__stat-value { | ||
font-weight: 900; | font-weight: 900; | ||
font-size: | font-size: 13px; | ||
line-height: 1; | line-height: 1; | ||
letter-spacing: -0.12px; | letter-spacing: -0.12px; | ||
| Line 662: | Line 667: | ||
content: "—"; | content: "—"; | ||
font-weight: 900; | font-weight: 900; | ||
font-size: | font-size: 13px; | ||
line-height: 1; | line-height: 1; | ||
color: rgba(140,156,184,0.78); | color: rgba(140,156,184,0.78); | ||
| Line 804: | Line 809: | ||
@media (max-width:850px) { | @media (max-width:850px) { | ||
/* Slightly smaller cap so the reserved column always exists */ | |||
.sv_skill_scaling__body { | |||
grid-template-columns: minmax(0, 320px) minmax(0, 1fr); | |||
} | |||
.sv_skill_scaling__primary-value { | .sv_skill_scaling__primary-value { | ||
font-size: | font-size: 40px; | ||
letter-spacing: -0.55px; | letter-spacing: -0.55px; | ||
} | } | ||
.sv_skill_scaling__stat-pill { | .sv_skill_scaling__stat-pill { | ||
width: | width: 78px; | ||
} | } | ||
.sv_skill_scaling__stat-value { | .sv_skill_scaling__stat-value { | ||
font-size: | font-size: 12px; | ||
} | } | ||
| Line 860: | Line 865: | ||
.sv_skill_scaling__primary-value { | .sv_skill_scaling__primary-value { | ||
font-size: | font-size: 34px; | ||
letter-spacing: -0.45px; | letter-spacing: -0.45px; | ||
} | } | ||
| Line 869: | Line 874: | ||
.sv_skill_scaling__stat-pill { | .sv_skill_scaling__stat-pill { | ||
width: | width: 72px; | ||
min-height: 22px; | min-height: 22px; | ||
padding: 4px 8px; | padding: 4px 8px; | ||
| Line 885: | Line 890: | ||
.sv_skill_scaling__stat-value { | .sv_skill_scaling__stat-value { | ||
font-size: | font-size: 12px; | ||
} | } | ||
.sv_skill_scaling__stat-pill.is-inactive::before { | .sv_skill_scaling__stat-pill.is-inactive::before { | ||
font-size: | font-size: 12px; | ||
} | } | ||
| Line 899: | Line 904: | ||
@media (max-width:360px) { | @media (max-width:360px) { | ||
.sv_skill_scaling__primary-value { | .sv_skill_scaling__primary-value { | ||
font-size: | font-size: 30px; | ||
} | } | ||
.sv_skill_scaling__stat-pill { | .sv_skill_scaling__stat-pill { | ||
width: | width: 68px; | ||
} | } | ||
| Line 910: | Line 915: | ||
} | } | ||
} | } | ||
/* ========================================================================== | /* ========================================================================== | ||