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 952: | Line 952: | ||
@media (max-width: 500px) { | @media (max-width: 500px) { | ||
/* | /* ------------------------------------------------------------------------ | ||
MOBILE | MOBILE CONTRAST + VISIBILITY (NO change to main card background) | ||
- | - Standardize + brighten EVERY bubble/panel surface | ||
- | - Stronger borders/dividers so sections don’t blend together | ||
------------------------------------------------------------------------ */ | |||
/* One standard mobile surface for ALL “bubble-like” components */ | |||
.sv-skill-level, | .sv-skill-level, | ||
.sv-scaling-row, | .sv-scaling-row, | ||
.sv-core-row, | .sv-core-row, | ||
.sv-tabs { | .sv-tabs, | ||
.sv-kw-cell, | |||
.sv-pill, | |||
.sv-ref-card, | |||
.sv-disclose > summary, | |||
.sv-disclose-btn, | |||
.sv-meta-icon { | |||
background: rgba(255,255,255,0.22) !important; | |||
border-color: rgba(255,255,255,0.26) !important; | |||
box-shadow: | box-shadow: | ||
inset 0 1px 0 rgba(255,255,255,0. | inset 0 1px 0 rgba(255,255,255,0.14), | ||
0 | 0 10px 18px rgba(0,0,0,0.14) !important; | ||
} | |||
/* Meta strip containers read as segmented boxes */ | |||
.sv-skill-meta, | |||
.sv-meta-card { | |||
border-color: rgba(255,255,255,0.22) !important; | |||
} | } | ||
/* | /* Stronger separators inside segmented rows */ | ||
.sv-scaling-col + .sv-scaling-col, | .sv-scaling-col + .sv-scaling-col, | ||
.sv-core-cell + .sv-core-cell, | .sv-core-cell + .sv-core-cell, | ||
.sv-tabs-list, | .sv-tabs-list, | ||
.sv-tab + .sv-tab, | .sv-tab + .sv-tab, | ||
.sv-core-cell, | .sv-core-cell, | ||
.sv-scaling-col { | .sv-scaling-col, | ||
border-color: rgba(255,255,255,0. | .sv-meta-card { | ||
border-color: rgba(255,255,255,0.20) !important; | |||
} | |||
/* Tabs: more visible by default + stronger selected state */ | |||
.sv-tab { | |||
background: rgba(255,255,255,0.22) !important; | |||
color: rgba(255,255,255,0.94) !important; | |||
} | |||
.sv-tab[aria-selected="true"] { | |||
background: rgba(255,255,255,0.30) !important; | |||
color: rgba(248,252,255,0.99) !important; | |||
box-shadow: | |||
inset 0 1px 0 rgba(255,255,255,0.16), | |||
0 10px 18px rgba(0,0,0,0.14) !important; | |||
} | |||
/* Icons inside cards: lift a touch so they don’t sink */ | |||
.sv-ref-ico, | |||
.sv-meta-icon { | |||
background: rgba(255,255,255,0.24) !important; | |||
border-color: rgba(255,255,255,0.26) !important; | |||
} | |||
/* Level slider: keep shell flush, but make TRACK bright and readable */ | |||
.sv-level-range--custom { | |||
background: transparent !important; | |||
border: 0 !important; | |||
} | |||
.sv-level-track { | |||
border: 1px solid rgba(255,255,255,0.26) !important; | |||
background: | |||
linear-gradient(180deg, rgba(255,255,255,0.30), rgba(255,255,255,0.22)), | |||
repeating-linear-gradient( | |||
to right, | |||
transparent 0, | |||
transparent 10.8%, | |||
rgba(255,255,255,0.62) 10.8%, | |||
rgba(255,255,255,0.62) 11.11% | |||
) !important; | |||
} | } | ||
/* ------------------------------------------------------------------------ | |||
MOBILE LAYOUT (your existing mobile adjustments) | |||
------------------------------------------------------------------------ */ | |||
/* Header: phone proportions */ | /* Header: phone proportions */ | ||
| Line 1,011: | Line 1,047: | ||
height: 68px; | height: 68px; | ||
border-radius: 12px; | border-radius: 12px; | ||
} | } | ||
| Line 1,021: | Line 1,054: | ||
font-size: 15px; | font-size: 15px; | ||
line-height: 1.28; | line-height: 1.28; | ||
} | } | ||
| Line 1,042: | Line 1,074: | ||
height: 28px; | height: 28px; | ||
border-radius: 9px; | border-radius: 9px; | ||
} | } | ||
| Line 1,049: | Line 1,079: | ||
font-size: 12px; | font-size: 12px; | ||
line-height: 1.10; | line-height: 1.10; | ||
} | } | ||
| Line 1,064: | Line 1,093: | ||
max-width: 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 */ | /* Level label slightly smaller on phone */ | ||
.sv-level-label { | .sv-level-label { font-size: 13px; } | ||
/* Slider: | /* Slider: keep flush, but keep thumb inside track */ | ||
.sv-level-range--custom { height: 22px; } | .sv-level-range--custom { height: 22px; } | ||
| Line 1,088: | Line 1,105: | ||
left: 8px; | left: 8px; | ||
right: 8px; | right: 8px; | ||
} | } | ||
| Line 1,109: | Line 1,112: | ||
margin-top: -8px; | margin-top: -8px; | ||
margin-left: -8px; | margin-left: -8px; | ||
} | } | ||
/* | /* Scaling becomes “stacked-left + tall-right” */ | ||
.sv-scaling-grid { grid-template-columns: 1fr 1fr; } | .sv-scaling-grid { grid-template-columns: 1fr 1fr; } | ||
| Line 1,132: | Line 1,120: | ||
grid-column: 1; | grid-column: 1; | ||
grid-row: 1; | grid-row: 1; | ||
border-right: 1px solid rgba(255,255,255,0. | border-right: 1px solid rgba(255,255,255,0.20); | ||
} | } | ||
| Line 1,138: | Line 1,126: | ||
grid-column: 1; | grid-column: 1; | ||
grid-row: 2; | grid-row: 2; | ||
border-top: 1px solid rgba(255,255,255,0. | border-top: 1px solid rgba(255,255,255,0.20); | ||
border-right: 1px solid rgba(255,255,255,0. | border-right: 1px solid rgba(255,255,255,0.20); | ||
} | } | ||
| Line 1,149: | Line 1,137: | ||
justify-content: center; | justify-content: center; | ||
} | } | ||
/* Core becomes 3x2 */ | /* Core becomes 3x2 */ | ||
.sv-core-grid { grid-template-columns: repeat(3, 1fr); } | .sv-core-grid { grid-template-columns: repeat(3, 1fr); } | ||
.sv-core-cell { border-left: 0; border-top: 1px solid rgba(255,255,255,0. | .sv-core-cell { border-left: 0; border-top: 1px solid rgba(255,255,255,0.20); } | ||
.sv-core-cell:nth-child(-n+3) { border-top: 0; } | .sv-core-cell:nth-child(-n+3) { border-top: 0; } | ||
.sv-core-cell:nth-child(3n+2), | .sv-core-cell:nth-child(3n+2), | ||
.sv-core-cell:nth-child(3n+3) { border-left: 1px solid rgba(255,255,255,0. | .sv-core-cell:nth-child(3n+3) { border-left: 1px solid rgba(255,255,255,0.20); } | ||
/* Tabs | /* Tabs become 2x2 segmented */ | ||
.sv-tabs-list { grid-template-columns: repeat(2, 1fr); } | .sv-tabs-list { grid-template-columns: repeat(2, 1fr); } | ||
.sv-tab { | .sv-tab { padding: 9px 6px; } | ||
.sv-tab + .sv-tab { border-left: 1px solid rgba(255,255,255,0.20); } | |||
.sv-tab + .sv-tab { border-left: 1px solid rgba(255,255,255,0. | |||
.sv-tab:nth-child(2n+1) { border-left: 0; } | .sv-tab:nth-child(2n+1) { border-left: 0; } | ||
.sv-tab:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0. | .sv-tab:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0.20); } | ||
/* Mechanics grid becomes 2-col */ | |||
/* Mechanics */ | |||
.sv-kw-grid { grid-template-columns: repeat(2, 1fr); } | .sv-kw-grid { grid-template-columns: repeat(2, 1fr); } | ||
/* Keywords grid follows mechanics on mobile */ | |||
/* Keywords */ | |||
.sv-tab-pills { grid-template-columns: repeat(2, 1fr); } | .sv-tab-pills { grid-template-columns: repeat(2, 1fr); } | ||
.sv-pill { font-size: 14px; } | |||
/* Effects/Events become 1-col */ | |||
/* Effects/Events */ | |||
.sv-ref-grid { grid-template-columns: 1fr; } | .sv-ref-grid { grid-template-columns: 1fr; } | ||
.sv-ref-card { grid-template-columns: 52px 1fr; } | |||
.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,233: | Line 1,171: | ||
} | } | ||
} | } | ||
/* -------------------------------------------------------------------------- | /* -------------------------------------------------------------------------- | ||
PATCH: Level selector final lockdown (wins even if markup uses spans/inline) | PATCH: Level selector final lockdown (wins even if markup uses spans/inline) | ||