Module:GameInfo/styles.css: Difference between revisions
From SpiritVale Wiki
More actions
No edit summary |
No edit summary Tags: Mobile edit Mobile web edit |
||
| Line 121: | Line 121: | ||
.sv-skill-head { | .sv-skill-head { | ||
display: grid; | display: grid; | ||
grid-template-columns: 92px 1fr; | grid-template-columns: 92px 1fr; | ||
gap: 12px; | gap: 12px; | ||
align-items: start; | align-items: start; | ||
| Line 128: | Line 128: | ||
.sv-skill-icon { | .sv-skill-icon { | ||
width: 92px; | width: 92px; | ||
height: 92px; | height: 92px; | ||
border-radius: 12px; | border-radius: 12px; | ||
border: 1px solid rgba(255,255,255,0.050); | border: 1px solid rgba(255,255,255,0.050); | ||
| Line 159: | Line 159: | ||
.sv-skill-desc { | .sv-skill-desc { | ||
margin-top: 8px; | margin-top: 8px; | ||
max-width: none; | max-width: none; | ||
width: 100%; | width: 100%; | ||
font-size: 18px; | font-size: 18px; | ||
line-height: 1.30; | line-height: 1.30; | ||
color: rgba(210,224,245,0.86); | color: rgba(210,224,245,0.86); | ||
word-wrap: break-word; | word-wrap: break-word; | ||
} | } | ||
| Line 219: | Line 216: | ||
} | } | ||
.sv-tip-pop { | .sv-tip-pop { top: 40px; right: 0; } | ||
.sv-disclose-pop { top: 46px; left: 0; } | |||
} | |||
.sv-tip-pop:before, | .sv-tip-pop:before, | ||
.sv-disclose-pop:before { | .sv-disclose-pop:before { | ||
| Line 331: | Line 320: | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
REQUIREMENTS / USERS (COMPACT, CENTERED, SHRINK-TO-FIT) | REQUIREMENTS / USERS (COMPACT, CENTERED, SHRINK-TO-FIT) | ||
- Desktop: narrow pills | |||
- Desktop: | - Mobile: still side-by-side, but even tighter | ||
- Mobile: | |||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
| Line 344: | Line 332: | ||
} | } | ||
.sv-reqrow > * { | .sv-reqrow > * { | ||
flex: 0 1 140px; | flex: 0 1 140px; | ||
max-width: 140px; | max-width: 140px; | ||
min-width: 0; | min-width: 0; | ||
} | } | ||
.sv-reqrow > *:only-child { | .sv-reqrow > *:only-child { | ||
flex: 0 1 280px; | flex: 0 1 280px; | ||
| Line 396: | Line 382: | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
LEVEL + SCALING + CORE (ONE GROUPED BUBBLE) | LEVEL + SCALING + CORE (ONE GROUPED BUBBLE) | ||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
.sv-skill-level { | .sv-skill-level { | ||
margin-top: 10px; | margin-top: 10px; | ||
padding: 6px 10px 6px; | padding: 6px 10px 6px; | ||
border-radius: 12px 12px 0 0; | border-radius: 12px 12px 0 0; | ||
border-bottom: 0; | border-bottom: 0; | ||
} | } | ||
.sv-skill-scaling { margin-top: 0; } | .sv-skill-scaling { margin-top: 0; } | ||
.sv-skill-core { margin-top: 0; } | .sv-skill-core { margin-top: 0; } | ||
.sv-scaling-row { | .sv-scaling-row { | ||
border-radius: 0; | border-radius: 0; | ||
| Line 420: | Line 400: | ||
} | } | ||
.sv-core-row { | .sv-core-row { | ||
border-radius: 0 0 12px 12px; | border-radius: 0 0 12px 12px; | ||
| Line 426: | Line 405: | ||
} | } | ||
.sv-level-ui { | .sv-level-ui { | ||
width: 100%; | width: 100%; | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
gap: 4px; | gap: 4px; | ||
align-items: center; | align-items: center; | ||
} | } | ||
| Line 440: | Line 418: | ||
font-weight: 800; | font-weight: 800; | ||
opacity: 0.95; | opacity: 0.95; | ||
font-size: 14px; | font-size: 14px; | ||
white-space: nowrap; | white-space: nowrap; | ||
} | } | ||
.sv-level-label br { display: none; } | .sv-level-label br { display: none; } | ||
.sv-level-label span, | .sv-level-label span, | ||
.sv-level-label b, | .sv-level-label b, | ||
| Line 463: | Line 439: | ||
} | } | ||
.sv-level-range--custom { | .sv-level-range--custom { | ||
display: block; | display: block; | ||
| Line 471: | Line 446: | ||
margin: 0 auto; | margin: 0 auto; | ||
height: 22px; | height: 22px; | ||
border-radius: 999px; | border-radius: 999px; | ||
border: 0; | border: 0; | ||
background: transparent; | background: transparent; | ||
cursor: pointer; | cursor: pointer; | ||
} | } | ||
.sv-level-track { | .sv-level-track { | ||
position: absolute; | position: absolute; | ||
left: 0; | left: 0; | ||
right: 0; | right: 0; | ||
top: 50%; | top: 50%; | ||
margin-top: -5px; | margin-top: -5px; | ||
| Line 501: | Line 475: | ||
} | } | ||
.sv-level-fill { | .sv-level-fill { | ||
display: block; | display: block; | ||
| Line 510: | Line 483: | ||
} | } | ||
.sv-level-thumb { | .sv-level-thumb { | ||
position: absolute; | position: absolute; | ||
| Line 525: | Line 497: | ||
} | } | ||
.sv-level-ticklabels { | .sv-level-ticklabels { | ||
display: flex; | display: flex; | ||
| Line 545: | Line 516: | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
SKILL SCALING | SKILL SCALING | ||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
.sv-scaling-row { overflow: hidden; } | .sv-scaling-row { overflow: hidden; } | ||
| Line 567: | Line 536: | ||
.sv-scaling-value { | .sv-scaling-value { | ||
font-weight: 800; | font-weight: 800; | ||
font-size: 15px; | font-size: 15px; | ||
line-height: 1.05; | line-height: 1.05; | ||
color: rgba(235,244,255,0.92); | color: rgba(235,244,255,0.92); | ||
| Line 596: | Line 565: | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
CORE STATS | CORE STATS | ||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
.sv-core-row { overflow: hidden; } | .sv-core-row { overflow: hidden; } | ||
| Line 626: | Line 593: | ||
.sv-core-num { | .sv-core-num { | ||
font-weight: 800; | font-weight: 800; | ||
font-size: 15px; | font-size: 15px; | ||
line-height: 1.05; | line-height: 1.05; | ||
color: rgba(235,244,255,0.92); | color: rgba(235,244,255,0.92); | ||
| Line 655: | Line 622: | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
TABS | TABS | ||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
| Line 705: | Line 672: | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
KEYWORDS TAB ( | KEYWORDS TAB (Mechanics-style bubbles + 3-col) | ||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
.sv-tab-pills { | .sv-tab-pills { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(3, 1fr); | grid-template-columns: repeat(3, 1fr); | ||
gap: 8px; | gap: 8px; | ||
| Line 722: | Line 688: | ||
gap: 8px; | gap: 8px; | ||
padding: 6px 8px; | padding: 6px 8px; | ||
border-radius: 12px; | border-radius: 12px; | ||
border: 1px solid rgba(255,255,255,0.050); | border: 1px solid rgba(255,255,255,0.050); | ||
background: rgba(255,255,255,0.03); | background: rgba(255,255,255,0.03); | ||
| Line 729: | Line 695: | ||
color: rgba(235,244,255,0.92); | color: rgba(235,244,255,0.92); | ||
font-weight: 800; | font-weight: 800; | ||
font-size: 15px; | font-size: 15px; | ||
line-height: 1.05; | line-height: 1.05; | ||
text-align: center; | text-align: center; | ||
white-space: normal; | white-space: normal; | ||
word-wrap: break-word; | word-wrap: break-word; | ||
} | } | ||
| Line 739: | Line 705: | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
MECHANICS GRID (value-on-top like Core) + ~20% shorter tiles | MECHANICS GRID (value-on-top like Core) + ~20% shorter tiles | ||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
| Line 754: | Line 719: | ||
border: 1px solid rgba(255,255,255,0.050); | border: 1px solid rgba(255,255,255,0.050); | ||
background: rgba(255,255,255,0.03); | background: rgba(255,255,255,0.03); | ||
padding: 6px 8px 6px; | |||
padding: 6px 8px 6px; | |||
min-width: 0; | min-width: 0; | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
| Line 766: | Line 728: | ||
} | } | ||
.sv-kw-label { | .sv-kw-label { | ||
order: 2; | order: 2; | ||
| Line 772: | Line 733: | ||
font-weight: 800; | font-weight: 800; | ||
font-size: 12px; | font-size: 12px; | ||
letter-spacing: 0.06em; | letter-spacing: 0.06em; | ||
text-transform: uppercase; | text-transform: uppercase; | ||
color: rgba(255,255,255,0.62); | color: rgba(255,255,255,0.62); | ||
| Line 782: | Line 743: | ||
} | } | ||
.sv-kw-value { | .sv-kw-value { | ||
order: 1; | order: 1; | ||
margin-top: 0; | margin-top: 0; | ||
font-weight: 800; | font-weight: 800; | ||
font-size: 15px; | font-size: 15px; | ||
line-height: 1.05; | line-height: 1.05; | ||
| Line 860: | Line 820: | ||
} | } | ||
.sv-ref-title-row--stacked { | .sv-ref-title-row--stacked { | ||
flex-direction: column; | flex-direction: column; | ||
| Line 886: | Line 845: | ||
.sv-ref-stat { white-space: nowrap; } | .sv-ref-stat { white-space: nowrap; } | ||
.sv-ref-pop { display: none; } | .sv-ref-pop { display: none; } | ||
.sv-ref-card:hover .sv-ref-pop { display: block; } | .sv-ref-card:hover .sv-ref-pop { display: block; } | ||
| Line 917: | Line 875: | ||
} | } | ||
.sv-skill-head { | .sv-skill-head { | ||
grid-template-columns: 84px 1fr; | grid-template-columns: 84px 1fr; | ||
| Line 931: | Line 888: | ||
} | } | ||
.sv-skill-meta { grid-template-columns: repeat(2, 1fr); } | .sv-skill-meta { grid-template-columns: repeat(2, 1fr); } | ||
| Line 946: | Line 902: | ||
.sv-tabs-panels { padding: 9px 9px 10px; } | .sv-tabs-panels { padding: 9px 9px 10px; } | ||
.sv-level-range--custom, | .sv-level-range--custom, | ||
.sv-level-ticklabels { | .sv-level-ticklabels { | ||
| Line 955: | Line 910: | ||
/* Mobile */ | /* Mobile */ | ||
@media (max-width: 520px) { | @media (max-width: 520px) { | ||
/* Header: phone proportions */ | |||
.sv-skill-head { | .sv-skill-head { | ||
grid-template-columns: | grid-template-columns: 68px 1fr; | ||
gap: 10px; | gap: 10px; | ||
} | } | ||
.sv-skill-icon { | .sv-skill-icon { | ||
width: | width: 68px; | ||
height: | height: 68px; | ||
border-radius: 12px; | border-radius: 12px; | ||
} | } | ||
.sv-skill-title { font-size: 18px; } | |||
.sv-skill-desc { | .sv-skill-desc { | ||
font-size: | font-size: 15px; | ||
line-height: 1.28; | line-height: 1.28; | ||
} | } | ||
.sv-skill-title-row { | .sv-skill-title-row { | ||
display: grid; | display: grid; | ||
| Line 980: | Line 938: | ||
} | } | ||
/* Requirements / Users: | /* Meta: tighten vertical space */ | ||
.sv-meta-card { | |||
min-height: 44px; | |||
padding: 4px 6px; | |||
} | |||
.sv-meta-icon { | |||
width: 28px; | |||
height: 28px; | |||
border-radius: 9px; | |||
} | |||
.sv-meta-text { | |||
font-size: 12px; | |||
line-height: 1.10; | |||
} | |||
/* Requirements/Users: compact pills, still side-by-side */ | |||
.sv-reqrow { gap: 8px; } | .sv-reqrow { gap: 8px; } | ||
.sv-reqrow > * { | |||
flex: 0 1 120px; | |||
max-width: 120px; | |||
} | |||
.sv-reqrow > *:only-child { | |||
flex: 0 1 240px; | |||
max-width: 240px; | |||
} | |||
.sv-disclose-pop { left: auto; right: 0; max-width: 92%; } | .sv-disclose-pop { left: auto; right: 0; max-width: 92%; } | ||
/* Level label slightly smaller on phone */ | |||
.sv-level-label { font-size: 13px; } | |||
/* Slider: keep flush, but keep thumb inside track */ | |||
.sv-level-range--custom { height: 22px; } | |||
.sv-level-track { | |||
left: 8px; | |||
right: 8px; | |||
} | |||
.sv-level-thumb { | |||
width: 16px; | |||
height: 16px; | |||
margin-top: -8px; | |||
margin-left: -8px; | |||
} | |||
/* Scaling becomes “stacked-left + tall-right” */ | /* Scaling becomes “stacked-left + tall-right” */ | ||
| Line 1,039: | Line 1,040: | ||
.sv-ref-ico { width: 52px; height: 52px; border-radius: 13px; } | .sv-ref-ico { width: 52px; height: 52px; border-radius: 13px; } | ||
.sv-level-range--custom, | .sv-level-range--custom, | ||
.sv-level-ticklabels { | .sv-level-ticklabels { | ||
| Line 1,087: | Line 1,087: | ||
/* -------------------------------------------------------------------------- | /* -------------------------------------------------------------------------- | ||
PATCH: Remove click highlight on the level scale | PATCH: Remove click highlight on the level scale | ||
--------------------------------------------------------------------------- */ | --------------------------------------------------------------------------- */ | ||