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 3: | Line 3: | ||
/* Phase 4.1 — Unified + Reusable (Layout restored, scoped) */ | /* Phase 4.1 — Unified + Reusable (Layout restored, scoped) */ | ||
/* NOTE: | /* NOTE (ownership): | ||
- | - Common.css owns shared components (slider/tabs/tips/discloses/popups) + tokens. | ||
- This file owns only GameInfo-family layout/presentation (card + sections). | |||
- Transitional fallbacks are guarded with :not([data-...]) so Common can take over | |||
as Lua/JS emit neutral attributes over time. | |||
*/ | */ | ||
| Line 77: | Line 78: | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
2) ICON-TEXT HARDENING | 2) ICON-TEXT HARDENING | ||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
| Line 169: | Line 170: | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
4) META ROW | |||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
| Line 304: | Line 305: | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
5) REQUIREMENTS / USERS ROW (layout only; component styling lives in Common.css) | |||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
| Line 322: | Line 323: | ||
} | } | ||
/* | /* Transitional: until Lua emits .sv-disclose-btn--compact everywhere, | ||
keep the compact pill look in this row only. */ | |||
.sv-gi-card .sv-reqrow .sv-disclose-btn, | .sv-gi-card .sv-reqrow .sv-disclose-btn, | ||
.sv-skill-card .sv-reqrow .sv-disclose-btn{ | .sv-skill-card .sv-reqrow .sv-disclose-btn{ | ||
| Line 332: | Line 333: | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
6) LEVEL SELECTOR SECTION (module wrapper; slider anatomy lives in Common.css) | |||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
| Line 344: | Line 345: | ||
box-shadow:inset 0 1px 0 rgba(255,255,255,0.04); | box-shadow:inset 0 1px 0 rgba(255,255,255,0.04); | ||
display:flex; | display:flex; | ||
flex-direction:column; | flex-direction:column; | ||
| Line 350: | Line 350: | ||
} | } | ||
/* | /* Default policy for Skills: hide tick labels (end-value replaces them). | ||
.sv-skill-level .sv-level-ticklabels{ | Future modules can opt out by setting data-sv-level-hide-ticks="0". */ | ||
.sv-skill-level:not([data-sv-level-hide-ticks="0"]) .sv-level-ticklabels{ | |||
display:none; | display:none; | ||
} | } | ||
/* | /* Transitional helper label: | ||
- If Lua adds data-sv-helper-text, Common.css owns the label content. | |||
- Otherwise, fall back to the old “Slide to set level” helper. */ | |||
.sv-gi-card .sv-level-label:not([data-sv-helper-text]), | |||
.sv-skill-card .sv-level-label:not([data-sv-helper-text]){ | |||
. | |||
.sv- | |||
.sv- | |||
font-size:0; | font-size:0; | ||
line-height:0; | line-height:0; | ||
margin:0; | margin:0; | ||
padding:0; | padding:0; | ||
display:inline-block; | display:inline-block; | ||
position:static; | position:static; | ||
left:auto; | left:auto; | ||
| Line 422: | Line 374: | ||
} | } | ||
.sv-gi-card .sv-level-label:after, | .sv-gi-card .sv-level-label:not([data-sv-helper-text])::after, | ||
.sv-skill-card .sv-level-label:after{ | .sv-skill-card .sv-level-label:not([data-sv-helper-text])::after{ | ||
content:"Slide to set level"; | content:"Slide to set level"; | ||
display:inline-block; | display:inline-block; | ||
font-weight:900; | font-weight:900; | ||
font-size:13px; | font-size:13px; | ||
line-height:1.25; | line-height:1.25; | ||
letter-spacing:0.15px; | letter-spacing:0.15px; | ||
color:rgba(245,249,255,0.94); | color:rgba(245,249,255,0.94); | ||
} | } | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
7) SCALING TOP (module-owned presentation) | |||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
| Line 571: | Line 442: | ||
} | } | ||
.sv-gi-card .sv-scaling-item, | .sv-gi-card .sv-scaling-item, | ||
.sv-skill-card .sv-scaling-item | .sv-skill-card .sv-scaling-item{ | ||
border:1px solid rgba(59,75,99,0.85); | border:1px solid rgba(59,75,99,0.85); | ||
background:#273449; | background:#273449; | ||
| Line 585: | Line 449: | ||
box-shadow:inset 0 1px 0 rgba(255,255,255,0.04); | box-shadow:inset 0 1px 0 rgba(255,255,255,0.04); | ||
color:rgba(215,226,244,0.92); | color:rgba(215,226,244,0.92); | ||
padding:8px 10px; | padding:8px 10px; | ||
border-radius:14px; | border-radius:14px; | ||
| Line 596: | Line 456: | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
8) CORE STATS GRID (module-owned presentation) | |||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
| Line 672: | Line 532: | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
9) TABS + PANELS CONTENT (tabs component is global; content layouts are module-owned) | |||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
| Line 724: | Line 584: | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
10) EFFECT / EVENT CARDS (module-owned presentation) | |||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
| Line 810: | Line 670: | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
11) RESPONSIVE (layout tightening) | |||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
| Line 839: | Line 699: | ||
.sv-gi-card .sv-ref-grid, | .sv-gi-card .sv-ref-grid, | ||
.sv-skill-card .sv-ref-grid{ grid-template-columns:1fr; } | .sv-skill-card .sv-ref-grid{ grid-template-columns:1fr; } | ||
} | } | ||
| Line 914: | Line 766: | ||
font-size:9px; | font-size:9px; | ||
margin-top:1px; | margin-top:1px; | ||
} | |||
.sv-skill-level{ | |||
padding:9px 10px; | |||
} | |||
.sv-gi-card .sv-level-label:not([data-sv-helper-text])::after, | |||
.sv-skill-card .sv-level-label:not([data-sv-helper-text])::after{ | |||
font-size:12px; | |||
} | } | ||