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: | ||
-------------------------------------------------------------------------- | -------------------------------------------------------------------------- | ||
Common.css owns shared components and tokens: | Common.css owns shared components and tokens: | ||
- surface tokens / text tokens / border tokens | |||
- slider anatomy | - slider anatomy | ||
- tabs | - tabs | ||
- tips / discloses / popups | - tips / discloses / popups | ||
- shared card / tile / pill primitives | |||
This file owns GameInfo-family presentation only: | This file owns GameInfo-family presentation only: | ||
- card shell | - card shell sizing / layout | ||
- section layout | - section layout | ||
- skill-specific display blocks | - skill-specific display blocks | ||
- stat accent colors for scaling pills | |||
*/ | */ | ||
| Line 21: | Line 24: | ||
max-width:600px; | max-width:600px; | ||
margin:18px auto; | margin:18px auto; | ||
border-radius:22px; | border-radius:22px; | ||
overflow:visible; | |||
/* Outer shell uses the site’s darkest surface step */ | |||
background | background:var(--sv-ui-bg0); | ||
background-image:none; | |||
color: | color:var(--sv-ui-text2); | ||
font-size:15px; | font-size:15px; | ||
line-height:1.35; | line-height:1.35; | ||
| Line 55: | Line 52: | ||
padding:10px 12px; | padding:10px 12px; | ||
overflow-wrap:anywhere; | |||
word-break:break-word; | |||
} | } | ||
| Line 97: | Line 91: | ||
line-height:1; | line-height:1; | ||
} | } | ||
/* ========================================================================== | /* ========================================================================== | ||
| Line 116: | Line 107: | ||
width:64px; | width:64px; | ||
height:64px; | height:64px; | ||
display:flex; | display:flex; | ||
| Line 125: | Line 112: | ||
justify-content:center; | justify-content:center; | ||
overflow:hidden; | overflow:hidden; | ||
border-radius:16px; | |||
} | } | ||
| Line 146: | Line 135: | ||
line-height:1.10; | line-height:1.10; | ||
letter-spacing:0.2px; | letter-spacing:0.2px; | ||
color: | color:var(--sv-ui-text1); | ||
} | } | ||
| Line 155: | Line 144: | ||
font-size:14px; | font-size:14px; | ||
line-height:1.35; | line-height:1.35; | ||
color: | color:var(--sv-ui-text2); | ||
} | } | ||
| Line 183: | Line 172: | ||
border-radius:999px; | border-radius:999px; | ||
font-weight:900; | font-weight:900; | ||
| Line 193: | Line 178: | ||
letter-spacing:0.08px; | letter-spacing:0.08px; | ||
text-transform:none; | text-transform:none; | ||
} | } | ||
| Line 210: | Line 194: | ||
border-radius:999px; | border-radius:999px; | ||
border:1px solid | border:1px solid var(--sv-ui-line2); | ||
background: | background:var(--sv-ui-bg2); | ||
background-image: | background-image:none; | ||
color:var(--sv-ui-text1); | |||
} | } | ||
.sv-gi-card .sv-meta-card:hover, | .sv-gi-card .sv-meta-card:hover, | ||
.sv-skill-card .sv-meta-card:hover{ background: | .sv-skill-card .sv-meta-card:hover{ background:var(--sv-ui-bg3); } | ||
.sv-gi-card .sv-meta-icon, | .sv-gi-card .sv-meta-icon, | ||
| Line 231: | Line 215: | ||
border-radius:999px; | border-radius:999px; | ||
background: | /* small inner bubble contrast */ | ||
background:var(--sv-ui-bg1); | |||
background-image:none; | |||
} | } | ||
| Line 251: | Line 237: | ||
line-height:1.02; | line-height:1.02; | ||
letter-spacing:0.08px; | letter-spacing:0.08px; | ||
color: | color:var(--sv-ui-text1); | ||
} | } | ||
| Line 269: | Line 255: | ||
.sv-skill-card .sv-meta-text .sv-meta-lines span + span{ | .sv-skill-card .sv-meta-text .sv-meta-lines span + span{ | ||
margin-top:1px; | margin-top:1px; | ||
font-size:10px; | font-size:10px; | ||
font-weight:800; | font-weight:800; | ||
letter-spacing:0.12px; | letter-spacing:0.12px; | ||
color:var(--sv-ui-text3); | |||
} | } | ||
| Line 330: | Line 316: | ||
border-radius:16px; | border-radius:16px; | ||
background: | /* section surface */ | ||
background-image: | background:var(--sv-ui-bg1); | ||
box-shadow: | background-image:none; | ||
box-shadow:none; | |||
} | } | ||
| Line 361: | Line 348: | ||
line-height:1.25; | line-height:1.25; | ||
letter-spacing:0.15px; | letter-spacing:0.15px; | ||
color: | color:var(--sv-ui-text1); | ||
} | } | ||
/* ========================================================================== | /* ========================================================================== | ||
7) SKILL SCALING | 7) SKILL SCALING (native schema) | ||
========================================================================== */ | ========================================================================== */ | ||
| Line 373: | Line 360: | ||
border-radius:18px; | border-radius:18px; | ||
background: | /* section surface */ | ||
background-image: | background:var(--sv-ui-bg1); | ||
box-shadow: | background-image:none; | ||
box-shadow:none; | |||
} | } | ||
| Line 388: | Line 376: | ||
background:transparent; | background:transparent; | ||
box-shadow:none; | box-shadow:none; | ||
border-bottom:1px solid | border-bottom:1px solid var(--sv-ui-line1); | ||
} | } | ||
| Line 398: | Line 386: | ||
row-gap:12px; | row-gap:12px; | ||
align-items:start; | align-items:start; | ||
justify-items:center; | justify-items:center; | ||
} | } | ||
| Line 411: | Line 397: | ||
grid-row:1; | grid-row:1; | ||
display:inline-flex; | display:inline-flex; | ||
align-items:center; | align-items:center; | ||
justify-content:center; | justify-content:center; | ||
| Line 461: | Line 447: | ||
line-height:0.95; | line-height:0.95; | ||
letter-spacing:-0.50px; | letter-spacing:-0.50px; | ||
color: | color:var(--sv-ui-text1); | ||
} | } | ||
| Line 472: | Line 458: | ||
letter-spacing:0.22px; | letter-spacing:0.22px; | ||
text-transform:uppercase; | text-transform:uppercase; | ||
color: | color:var(--sv-ui-text3); | ||
} | } | ||
| Line 503: | Line 489: | ||
border-radius:14px; | border-radius:14px; | ||
border:1px solid | border:1px solid var(--sv-ui-line2); | ||
background: | background:var(--sv-ui-bg2); | ||
background-image: | background-image:none; | ||
box-shadow: | box-shadow:none; | ||
} | } | ||
| Line 573: | Line 559: | ||
line-height:1; | line-height:1; | ||
letter-spacing:-0.10px; | letter-spacing:-0.10px; | ||
color: | color:var(--sv-ui-text1); | ||
} | } | ||
| Line 590: | Line 576: | ||
.sv_skill_scaling__stat-pill.is-inactive{ | .sv_skill_scaling__stat-pill.is-inactive{ | ||
background:var(--sv-ui-bg1); | |||
background-image:none; | background-image:none; | ||
box-shadow:none; | box-shadow:none; | ||
| Line 604: | Line 589: | ||
font-size:12px; | font-size:12px; | ||
line-height:1; | line-height:1; | ||
color: | color:var(--sv-ui-text3); | ||
} | } | ||
.sv_skill_scaling__stat-pill.is-active{ | .sv_skill_scaling__stat-pill.is-active{ | ||
box-shadow: | box-shadow:none; | ||
} | } | ||
/* per-stat colors */ | /* per-stat colors (intentionally local / semantic) */ | ||
.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); | ||
background:#32131d; | background:#32131d; | ||
background-image: | background-image:none; | ||
} | } | ||
.sv_skill_scaling__stat-pill--str.is-active .sv_skill_scaling__stat-value{ color:#ffdce5; } | .sv_skill_scaling__stat-pill--str.is-active .sv_skill_scaling__stat-value{ color:#ffdce5; } | ||
| Line 624: | Line 607: | ||
border-color:rgba(158,112,22,0.96); | border-color:rgba(158,112,22,0.96); | ||
background:#352609; | background:#352609; | ||
background-image: | background-image:none; | ||
} | } | ||
.sv_skill_scaling__stat-pill--vit.is-active .sv_skill_scaling__stat-value{ color:#ffefc9; } | .sv_skill_scaling__stat-pill--vit.is-active .sv_skill_scaling__stat-value{ color:#ffefc9; } | ||
| Line 631: | Line 614: | ||
border-color:rgba(118,146,24,0.96); | border-color:rgba(118,146,24,0.96); | ||
background:#243208; | background:#243208; | ||
background-image: | background-image:none; | ||
} | } | ||
.sv_skill_scaling__stat-pill--dex.is-active .sv_skill_scaling__stat-value{ color:#edf8cc; } | .sv_skill_scaling__stat-pill--dex.is-active .sv_skill_scaling__stat-value{ color:#edf8cc; } | ||
| Line 638: | Line 621: | ||
border-color:rgba(125,62,152,0.96); | border-color:rgba(125,62,152,0.96); | ||
background:#2b1438; | background:#2b1438; | ||
background-image: | background-image:none; | ||
} | } | ||
.sv_skill_scaling__stat-pill--agi.is-active .sv_skill_scaling__stat-value{ color:#f0dcff; } | .sv_skill_scaling__stat-pill--agi.is-active .sv_skill_scaling__stat-value{ color:#f0dcff; } | ||
| Line 645: | Line 628: | ||
border-color:rgba(45,118,191,0.96); | border-color:rgba(45,118,191,0.96); | ||
background:#11263d; | background:#11263d; | ||
background-image: | background-image:none; | ||
} | } | ||
.sv_skill_scaling__stat-pill--int.is-active .sv_skill_scaling__stat-value{ color:#d8eeff; } | .sv_skill_scaling__stat-pill--int.is-active .sv_skill_scaling__stat-value{ color:#d8eeff; } | ||
| Line 652: | Line 635: | ||
border-color:rgba(183,150,22,0.96); | border-color:rgba(183,150,22,0.96); | ||
background:#3a2f07; | background:#3a2f07; | ||
background-image: | background-image:none; | ||
} | } | ||
.sv_skill_scaling__stat-pill--luk.is-active .sv_skill_scaling__stat-value{ color:#fff2ba; } | .sv_skill_scaling__stat-pill--luk.is-active .sv_skill_scaling__stat-value{ color:#fff2ba; } | ||
| Line 661: | Line 644: | ||
grid-template-columns:repeat(3, minmax(0, 1fr)); | grid-template-columns:repeat(3, minmax(0, 1fr)); | ||
gap:8px; | gap:8px; | ||
justify-items:center; | justify-items:center; | ||
} | } | ||
| Line 677: | Line 658: | ||
align-items:center; | align-items:center; | ||
text-align:center; | text-align:center; | ||
} | |||
.sv_skill_scaling__core-pill.is-active{ | |||
background: | background:var(--sv-ui-bg2); | ||
background-image:none; | background-image:none; | ||
} | } | ||
.sv_skill_scaling__core-main{ | .sv_skill_scaling__core-main{ | ||
| Line 702: | Line 681: | ||
font-size:14px; | font-size:14px; | ||
line-height:1.02; | line-height:1.02; | ||
color: | color:var(--sv-ui-text1); | ||
} | } | ||
| Line 709: | Line 688: | ||
font-size:10px; | font-size:10px; | ||
line-height:1.05; | line-height:1.05; | ||
color: | color:var(--sv-ui-text3); | ||
} | } | ||
| Line 720: | Line 699: | ||
letter-spacing:0.14px; | letter-spacing:0.14px; | ||
text-transform:uppercase; | text-transform:uppercase; | ||
color: | color:var(--sv-ui-text3); | ||
} | } | ||
.sv_skill_scaling__core-pill.is-inactive{ | .sv_skill_scaling__core-pill.is-inactive{ | ||
background:var(--sv-ui-bg1); | |||
} | } | ||
| Line 731: | Line 709: | ||
.sv_skill_scaling__core-pill.is-inactive .sv_skill_scaling__core-unit, | .sv_skill_scaling__core-pill.is-inactive .sv_skill_scaling__core-unit, | ||
.sv_skill_scaling__core-pill.is-inactive .sv_skill_scaling__core-label{ | .sv_skill_scaling__core-pill.is-inactive .sv_skill_scaling__core-label{ | ||
color: | color:var(--sv-ui-text3); | ||
} | } | ||
| Line 790: | Line 768: | ||
/* ========================================================================== | /* ========================================================================== | ||
8) TAB PANELS AND CONTENT BLOCKS | 8) LEGACY SCHEMA BLOCKS (kept for compatibility) | ||
========================================================================== */ | |||
.sv-skill-scaling, | |||
.sv-skill-core{ | |||
margin:8px 0 10px; | |||
padding:10px 12px; | |||
border-radius:16px; | |||
background:var(--sv-ui-bg1); | |||
background-image:none; | |||
box-shadow:none; | |||
} | |||
.sv-scaling-row, | |||
.sv-core-row{ width:100%; } | |||
.sv-scaling-grid{ | |||
display:grid; | |||
grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); | |||
gap:12px; | |||
align-items:start; | |||
} | |||
.sv-scaling-col{ min-width:0; } | |||
.sv-scaling-value{ | |||
font-weight:900; | |||
font-size:34px; | |||
line-height:0.95; | |||
letter-spacing:-0.50px; | |||
text-align:center; | |||
color:var(--sv-ui-text1); | |||
} | |||
.sv-scaling-label{ | |||
margin-top:6px; | |||
text-align:center; | |||
font-weight:900; | |||
font-size:10px; | |||
line-height:1.05; | |||
letter-spacing:0.22px; | |||
text-transform:uppercase; | |||
color:var(--sv-ui-text3); | |||
} | |||
.sv-scaling-list{ | |||
display:flex; | |||
flex-direction:column; | |||
gap:8px; | |||
} | |||
.sv-scaling-item{ | |||
min-width:0; | |||
padding:8px 10px; | |||
border-radius:12px; | |||
border:1px solid var(--sv-ui-line2); | |||
background:var(--sv-ui-bg2); | |||
background-image:none; | |||
color:var(--sv-ui-text1); | |||
overflow-wrap:anywhere; | |||
word-break:break-word; | |||
} | |||
.sv-scaling-item--stat{ | |||
display:flex; | |||
align-items:center; | |||
justify-content:space-between; | |||
gap:8px; | |||
} | |||
.sv-scale-stat{ | |||
font-weight:900; | |||
color:var(--sv-ui-text1); | |||
} | |||
.sv-scale-val{ | |||
font-weight:900; | |||
color:var(--sv-ui-text2); | |||
} | |||
.sv-core-grid{ | |||
display:grid; | |||
grid-template-columns:repeat(3, minmax(0, 1fr)); | |||
gap:8px; | |||
} | |||
.sv-core-cell{ | |||
min-width:0; | |||
padding:8px 6px; | |||
text-align:center; | |||
border-radius:12px; | |||
} | |||
.sv-core-top{ | |||
min-width:0; | |||
display:flex; | |||
align-items:baseline; | |||
justify-content:center; | |||
flex-wrap:wrap; | |||
gap:4px; | |||
} | |||
.sv-core-num{ | |||
font-weight:900; | |||
font-size:14px; | |||
line-height:1.02; | |||
color:var(--sv-ui-text1); | |||
} | |||
.sv-core-unit{ | |||
font-weight:900; | |||
font-size:10px; | |||
line-height:1.05; | |||
color:var(--sv-ui-text3); | |||
} | |||
.sv-core-label{ | |||
margin-top:5px; | |||
font-weight:900; | |||
font-size:10px; | |||
line-height:1.10; | |||
letter-spacing:0.14px; | |||
text-transform:uppercase; | |||
color:var(--sv-ui-text3); | |||
} | |||
.sv-core-label--tight{ letter-spacing:0.08px; } | |||
@media (max-width:500px){ | |||
.sv-scaling-grid{ grid-template-columns:1fr; } | |||
.sv-core-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); } | |||
} | |||
/* ========================================================================== | |||
9) TAB PANELS AND CONTENT BLOCKS | |||
========================================================================== */ | ========================================================================== */ | ||
| Line 803: | Line 916: | ||
.sv-skill-tabs .sv-tabpanel{ | .sv-skill-tabs .sv-tabpanel{ | ||
min-width:0; | min-width:0; | ||
/* keep site tab panel colors, just flatten */ | |||
background-image:none; | |||
box-shadow:none; | |||
} | } | ||
| Line 810: | Line 927: | ||
border-radius:14px; | border-radius:14px; | ||
background:var(--sv-ui-bg2); | |||
font-weight:900; | font-weight:900; | ||
font-size:13px; | font-size:13px; | ||
color: | color:var(--sv-ui-text3); | ||
} | } | ||
| Line 831: | Line 947: | ||
letter-spacing:0.22px; | letter-spacing:0.22px; | ||
text-transform:uppercase; | text-transform:uppercase; | ||
color: | color:var(--sv-ui-text3); | ||
} | } | ||
| Line 888: | Line 1,004: | ||
border-radius:12px; | border-radius:12px; | ||
background-image:none; | |||
box-shadow:none; | |||
background-image: | |||
box-shadow: | |||
} | } | ||
| Line 900: | Line 1,014: | ||
letter-spacing:0.12px; | letter-spacing:0.12px; | ||
text-transform:uppercase; | text-transform:uppercase; | ||
color: | color:var(--sv-ui-text3); | ||
} | } | ||
| Line 911: | Line 1,025: | ||
font-size:13px; | font-size:13px; | ||
line-height:1.02; | line-height:1.02; | ||
color: | color:var(--sv-ui-text1); | ||
} | } | ||
| Line 935: | Line 1,049: | ||
border-radius:13px; | border-radius:13px; | ||
} | } | ||
| Line 949: | Line 1,059: | ||
font-size:13px; | font-size:13px; | ||
line-height:1.10; | line-height:1.10; | ||
color: | color:var(--sv-ui-text1); | ||
text-align:center; | text-align:center; | ||
} | } | ||
| Line 984: | Line 1,094: | ||
/* ========================================================================== | /* ========================================================================== | ||
10) EFFECT CARDS | |||
========================================================================== */ | ========================================================================== */ | ||
| Line 1,003: | Line 1,113: | ||
border-radius:16px; | border-radius:16px; | ||
background-image:none; | |||
box-shadow:none; | |||
background-image: | |||
box-shadow: | |||
color: | color:var(--sv-ui-text2); | ||
} | } | ||
| Line 1,023: | Line 1,131: | ||
border-radius:16px; | border-radius:16px; | ||
} | } | ||
| Line 1,040: | Line 1,146: | ||
font-size:15px; | font-size:15px; | ||
line-height:1.15; | line-height:1.15; | ||
color: | color:var(--sv-ui-text1); | ||
} | } | ||
| Line 1,053: | Line 1,159: | ||
.sv-gi-card .sv-ref-stat, | .sv-gi-card .sv-ref-stat, | ||
.sv-skill-card .sv-ref-stat{ | .sv-skill-card .sv-ref-stat{ | ||
font-weight:900; | font-weight:900; | ||
font-size:12px; | font-size:12px; | ||
color: | color:var(--sv-ui-text1); | ||
} | } | ||
| Line 1,073: | Line 1,169: | ||
font-weight:900; | font-weight:900; | ||
font-size:13px; | font-size:13px; | ||
color: | color:var(--sv-ui-text3); | ||
} | } | ||
/* ========================================================================== | /* ========================================================================== | ||
11) RESPONSIVE (card/layout) | |||
========================================================================== */ | ========================================================================== */ | ||
| Line 1,145: | Line 1,241: | ||
.sv-skill-title{ font-size:18px; } | .sv-skill-title{ font-size:18px; } | ||
.sv-skill-desc{ font-size:13px; } | .sv-skill-desc{ font-size:13px; } | ||
.sv-skill-tabs .sv-mech-panel{ | .sv-skill-tabs .sv-mech-panel{ | ||