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 390: | Line 390: | ||
/* ========================================================================== | /* ========================================================================== | ||
7) SCHEMA 2 SKILL SCALING DASHBOARD | 7) SCHEMA 2 — SKILL SCALING DASHBOARD (TemplateStyles-safe refactor) | ||
-------------------------------------------------------------------------- | |||
Row 1: [cluster][side] | |||
- cluster = ONE UNIT (damage + 2×3 stat chips) | |||
- side = reserved future block (empty for now) | |||
Row 2: core spans full width (for now) | |||
REQUIRES: | |||
.sv_skill_scaling__cluster wrapper around primary+stats | |||
========================================================================== */ | ========================================================================== */ | ||
| Line 427: | Line 423: | ||
} | } | ||
/* Row 1: | /* OUTER GRID: | ||
Row 1: cluster + side | |||
Row 2: core spans both | |||
*/ | |||
.sv_skill_scaling__body { | .sv_skill_scaling__body { | ||
display: grid; | display: grid; | ||
grid-template-columns: | grid-template-columns: auto minmax(0, 1fr); | ||
grid-template-rows: auto auto; | grid-template-rows: auto auto; | ||
column-gap: 16px; | column-gap: 16px; | ||
| Line 437: | Line 436: | ||
} | } | ||
/* Cluster | /* Cluster is ONE grid item (contains primary + stats side-by-side) */ | ||
.sv_skill_scaling__cluster { | .sv_skill_scaling__cluster { | ||
grid-column: 1; | grid-column: 1; | ||
| Line 448: | Line 447: | ||
} | } | ||
/* | /* Reserved right column */ | ||
.sv_skill_scaling__side { | .sv_skill_scaling__side { | ||
grid-column: 2; | grid-column: 2; | ||
| Line 455: | Line 454: | ||
} | } | ||
/* Core | /* Core remains row 2 spanning full width (for now) */ | ||
.sv_skill_scaling__column--core { | .sv_skill_scaling__column--core { | ||
grid-column: 1 / -1; | grid-column: 1 / -1; | ||
grid-row: 2; | grid-row: 2; | ||
} | } | ||
/* Section wrappers | /* Section wrappers: visual no-ops */ | ||
.sv_skill_scaling__column { | .sv_skill_scaling__column { | ||
min-width: 0; | min-width: 0; | ||
| Line 473: | Line 471: | ||
} | } | ||
/* | /* PRIMARY (Damage Mod) */ | ||
.sv_skill_scaling__column--primary { | .sv_skill_scaling__column--primary { | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
| Line 483: | Line 480: | ||
} | } | ||
.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: 54px; | ||
line-height: 0. | line-height: 0.92; | ||
letter-spacing: -0. | letter-spacing: -0.70px; | ||
color: rgba(245,249,255,0.99); | color: rgba(245,249,255,0.99); | ||
} | } | ||
| Line 509: | Line 505: | ||
.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 515: | Line 510: | ||
row-gap: 8px; | row-gap: 8px; | ||
column-gap: 12px; | column-gap: 12px; | ||
grid-template-areas: | grid-template-areas: | ||
"str agi" | "str agi" | ||
| Line 546: | Line 540: | ||
} | } | ||
/* Shared pill shell (core uses this | /* Shared pill shell (core uses this too) */ | ||
.sv_skill_scaling__pill { | .sv_skill_scaling__pill { | ||
position: relative; | position: relative; | ||
| Line 557: | Line 551: | ||
} | } | ||
/* Stat | /* Stat chip sizing (fixed; shrinks in media queries) */ | ||
.sv_skill_scaling__stat-pill { | .sv_skill_scaling__stat-pill { | ||
border-radius: 999px; | border-radius: 999px; | ||
width: | width: 92px; | ||
min-height: 24px; | min-height: 24px; | ||
padding: 4px 10px; | padding: 4px 10px; | ||
| Line 566: | Line 560: | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
white-space: nowrap; | white-space: nowrap; | ||
} | } | ||
/* Flatten inner structure | /* Flatten inner structure */ | ||
.sv_skill_scaling__stat-main { | .sv_skill_scaling__stat-main { | ||
min-width: 0; | min-width: 0; | ||
display: flex; | display: flex; | ||
| Line 582: | Line 574: | ||
min-width: 0; | min-width: 0; | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
| Line 588: | Line 579: | ||
} | } | ||
.sv_skill_scaling__stat-label { | .sv_skill_scaling__stat-label { | ||
display: none; | display: none; | ||
| Line 630: | Line 620: | ||
} | } | ||
/* Full-pill Definitions | /* Full-pill Definitions hit overlay */ | ||
.sv_skill_scaling__stat-hit { | .sv_skill_scaling__stat-hit { | ||
position: absolute; | position: absolute; | ||
| Line 735: | Line 725: | ||
/* -------------------------------------------------------------------------- | /* -------------------------------------------------------------------------- | ||
7B) CORE PILLS ( | 7B) CORE PILLS (deduped) | ||
-------------------------------------------------------------------------- */ | -------------------------------------------------------------------------- */ | ||
| Line 801: | Line 791: | ||
/* -------------------------------------------------------------------------- | /* -------------------------------------------------------------------------- | ||
RESPONSIVE — keep cluster as one unit; shrink on smaller screens | |||
-------------------------------------------------------------------------- */ | -------------------------------------------------------------------------- */ | ||
. | @media (max-width:850px) { | ||
.sv_skill_scaling__primary-value { | |||
grid-template-columns: repeat( | font-size: 46px; | ||
letter-spacing: -0.55px; | |||
} | |||
.sv_skill_scaling__stat-pill { | |||
width: 88px; | |||
min-height: 24px; | |||
padding: 4px 9px; | |||
} | |||
.sv_skill_scaling__stats-grid { | |||
column-gap: 10px; | |||
row-gap: 8px; | |||
} | |||
.sv_skill_scaling__core-grid { | |||
grid-template-columns: repeat(3, minmax(0, 1fr)); | |||
} | |||
} | } | ||
. | @media (max-width:500px) { | ||
/* Collapse outer layout so nothing can overflow */ | |||
.sv_skill_scaling__body { | |||
grid-template-columns: 1fr; | |||
grid-template-rows: auto auto auto; | |||
} | |||
.sv_skill_scaling__cluster { | |||
} | grid-column: 1; | ||
grid-row: 1; | |||
gap: 12px; | |||
} | |||
.sv_skill_scaling__side { | |||
grid-column: 1; | |||
grid-row: 2; | |||
} | |||
.sv_skill_scaling__column--core { | |||
grid-column: 1; | |||
grid-row: 3; | |||
} | |||
.sv_skill_scaling__primary-value { | |||
font-size: 40px; | |||
letter-spacing: -0.45px; | |||
} | |||
.sv_skill_scaling__primary-label { | |||
font-size: 11px; | |||
} | |||
.sv_skill_scaling__stat-pill { | |||
width: 82px; | |||
min-height: 22px; | |||
padding: 4px 8px; | |||
} | |||
.sv_skill_scaling__stat-icon { | |||
width: 13px; | |||
height: 13px; | |||
} | |||
.sv_skill_scaling__stat-icon .sv-img img { | |||
width: 13px; | |||
height: 13px; | |||
} | |||
.sv_skill_scaling__stat-value { | |||
font-size: 14px; | |||
} | |||
. | .sv_skill_scaling__stat-pill.is-inactive::before { | ||
font-size: 14px; | |||
} | |||
} | |||
.sv_skill_scaling__core- | .sv_skill_scaling__core-grid { | ||
grid-template-columns: repeat(3, minmax(0, 1fr)); | |||
} | |||
} | } | ||
@media (max-width:360px) { | |||
.sv_skill_scaling__cluster { | |||
gap: 10px; | |||
} | |||
} | |||
. | .sv_skill_scaling__primary-value { | ||
font-size: 34px; | |||
} | |||
} | |||
. | .sv_skill_scaling__stat-pill { | ||
width: 76px; | |||
} | |||
} | |||
.sv_skill_scaling__core- | .sv_skill_scaling__core-grid { | ||
grid-template-columns: repeat(2, minmax(0, 1fr)); | |||
} | } | ||
} | |||
/* ========================================================================== | /* ========================================================================== | ||
8) TAB PANELS AND CONTENT BLOCKS | |||
Tabs themselves are global; these are module-owned content layouts | Tabs themselves are global; these are module-owned content layouts | ||
========================================================================== */ | ========================================================================== */ | ||
| Line 920: | Line 949: | ||
/* ========================================================================== | /* ========================================================================== | ||
9) EFFECT / EVENT CARDS | |||
========================================================================== */ | ========================================================================== */ | ||
| Line 1,006: | Line 1,035: | ||
/* ========================================================================== | /* ========================================================================== | ||
10) RESPONSIVE | |||
Breakpoints: | Breakpoints: | ||
- 850px: tablet / compact desktop transition | - 850px: tablet / compact desktop transition | ||