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 1: | Line 1: | ||
/* Module:GameInfo/styles.css */ | /* Module:GameInfo/styles.css */ | ||
/* GameInfo Box v1 — TemplateStyles-safe (no CSS vars / no var()) */ | /* GameInfo Box v1 — TemplateStyles-safe (no CSS vars / no var()) */ | ||
/* Phase 4.1 — | /* Phase 4.1 — Reuse Pass 1 (consume shared Common.css components) */ | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
| Line 14: | Line 14: | ||
border: 1px solid rgba(255, 255, 255, 0.085); | border: 1px solid rgba(255, 255, 255, 0.085); | ||
background-color: #0f1b33; | background-color: #0f1b33; | ||
background-image: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)), linear-gradient(180deg, #0f1b33, #0c162b); | background-image: | ||
linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)), | |||
linear-gradient(180deg, #0f1b33, #0c162b); | |||
box-shadow: 0 16px 38px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.04); | box-shadow: 0 16px 38px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.04); | ||
overflow: visible; | overflow: visible; | ||
| Line 57: | Line 59: | ||
} | } | ||
/* | /* Simple error capsule */ | ||
.sv-gi-error { | .sv-gi-error { | ||
max-width: 600px; | max-width: 600px; | ||
| Line 67: | Line 69: | ||
} | } | ||
/* | /* NOTE: | ||
.sv-hidden | .sv-hidden + [hidden] are now provided globally by Common.css | ||
.sv-miss is now provided globally by Common.css | |||
*/ | |||
[hidden] | |||
/* Remove default details marker (safe even if no <details> used) */ | /* Remove default details marker (safe even if no <details> used) */ | ||
| Line 80: | Line 78: | ||
.sv-skill-card summary { | .sv-skill-card summary { | ||
list-style: none; | list-style: none; | ||
} | } | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
HARDEN ICON BOXES (prevents clipped link/text inside icon squares) | HARDEN ICON BOXES (prevents clipped link/text inside icon squares) | ||
(Works with global .sv-miss) | |||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
| Line 113: | Line 98: | ||
} | } | ||
/* Size bumps for “?” badge inside icon boxes */ | |||
.sv-skill-icon .sv-miss { | .sv-skill-icon .sv-miss { | ||
width: 22px; | width: 22px; | ||
| Line 129: | Line 115: | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
SCOPED GENERIC PRIMITIVES ( | SCOPED GENERIC PRIMITIVES (still module-owned for now) | ||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
| Line 143: | Line 129: | ||
} | } | ||
/* | /* NOTE: | ||
.sv- | .sv-img wrapper + base image rounding now provided globally by Common.css. | ||
Keep this small, module-specific enhancement only (shadow for card imagery). | |||
*/ | |||
.sv-gi-card .sv-img img, | .sv-gi-card .sv-img img, | ||
.sv-skill-card .sv-img img { | .sv-skill-card .sv-img img { | ||
box-shadow: 0 10px 18px rgba(0,0,0,0.35); | box-shadow: 0 10px 18px rgba(0,0,0,0.35); | ||
} | } | ||
/* | /* Focus ring stays module-scoped (safe regardless of global components) */ | ||
.sv-gi-card .sv-tip-btn:focus, | .sv-gi-card .sv-tip-btn:focus, | ||
.sv-skill-card .sv-tip-btn:focus, | .sv-skill-card .sv-tip-btn:focus, | ||
| Line 223: | Line 203: | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
NOTES TIP ( | NOTES TIP (span button + div popover) — module-owned (not yet global) | ||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
| Line 250: | Line 230: | ||
} | } | ||
.sv-gi-card .sv-tip-btn[aria-expanded="true"], | .sv-gi-card .sv-tip-btn[aria-expanded="true"], | ||
.sv-skill-card .sv-tip | .sv-skill-card .sv-tip-btn[aria-expanded="true"] { | ||
background: rgba(255,255,255,0.07); | background: rgba(255,255,255,0.07); | ||
border-color: rgba(255,255,255,0.10); | border-color: rgba(255,255,255,0.10); | ||
| Line 275: | Line 252: | ||
} | } | ||
/* IMPORTANT: do NOT use display:none | /* IMPORTANT: do NOT use display:none; JS controls via .sv-hidden + [hidden] */ | ||
.sv-gi-card .sv-tip-pop, | .sv-gi-card .sv-tip-pop, | ||
.sv-skill-card .sv-tip-pop { | .sv-skill-card .sv-tip-pop { | ||
| Line 287: | Line 264: | ||
border-radius: 16px; | border-radius: 16px; | ||
border: 1px solid rgba(255,255,255,0.08); | border: 1px solid rgba(255,255,255,0.08); | ||
background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)), rgba(10, 14, 24, 0.92); | background: | ||
linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)), | |||
rgba(10, 14, 24, 0.92); | |||
box-shadow: 0 18px 40px rgba(0,0,0,0.60); | box-shadow: 0 18px 40px rgba(0,0,0,0.60); | ||
overflow: hidden; | overflow: hidden; | ||
| Line 327: | Line 306: | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
META ROW (4 CARDS) | META ROW (4 CARDS) | ||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
| Line 391: | Line 370: | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
REQUIREMENTS / USERS ROW ( | REQUIREMENTS / USERS ROW (layout stays here; component styling is global) | ||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
| Line 404: | Line 383: | ||
.sv-gi-card .sv-disclose, | .sv-gi-card .sv-disclose, | ||
.sv-skill-card .sv-disclose { | .sv-skill-card .sv-disclose { | ||
flex: 1 1 220px; | flex: 1 1 220px; | ||
min-width: 220px; | min-width: 220px; | ||
} | } | ||
/* NOTE: | |||
.sv-disclose*, .sv-disclose-btn, .sv-disclose-pop*, etc. now come from Common.css | |||
*/ | |||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
LEVEL SELECTOR | LEVEL SELECTOR (module-owned; not yet global) | ||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
| Line 552: | Line 429: | ||
} | } | ||
.sv-gi-card .sv-level-range, | .sv-gi-card .sv-level-range, | ||
.sv-skill-card .sv-level-range { | .sv-skill-card .sv-level-range { | ||
| Line 559: | Line 435: | ||
} | } | ||
.sv-gi-card .sv-level-range--custom, | .sv-gi-card .sv-level-range--custom, | ||
.sv-skill-card .sv-level-range--custom { | .sv-skill-card .sv-level-range--custom { | ||
| Line 590: | Line 465: | ||
width: 0%; | width: 0%; | ||
border-radius: 999px; | border-radius: 999px; | ||
background: linear-gradient( 90deg, rgba(170,220,255,0.60), rgba(255,255,255,0.22) ); | background: linear-gradient(90deg, rgba(170,220,255,0.60), rgba(255,255,255,0.22)); | ||
} | } | ||
| Line 614: | Line 489: | ||
} | } | ||
.sv-gi-card .sv-level-ticklabels, | .sv-gi-card .sv-level-ticklabels, | ||
.sv-skill-card .sv-level-ticklabels { | .sv-skill-card .sv-level-ticklabels { | ||
| Line 629: | Line 503: | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
SCALING TOP | SCALING TOP | ||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
| Line 695: | Line 569: | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
CORE STATS GRID | CORE STATS GRID | ||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
| Line 767: | Line 641: | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
TABS — | TABS — now global (Common.css). Keep only module wrapper spacing. | ||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
| Line 774: | Line 648: | ||
} | } | ||
/* Mechanics grid (tabpanel content) */ | |||
/* Mechanics grid */ | |||
.sv-gi-card .sv-kw-grid, | .sv-gi-card .sv-kw-grid, | ||
.sv-skill-card .sv-kw-grid { | .sv-skill-card .sv-kw-grid { | ||
| Line 857: | Line 691: | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
EFFECT / EVENT CARDS | EFFECT / EVENT CARDS | ||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
| Line 945: | Line 779: | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
RESPONSIVE ( | RESPONSIVE (keep popover repositioning, since it is card-layout specific) | ||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||