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 BRIGHTNESS OVERRIDE (Citizen + MobileFrontend friendly) | ||
- | Goal: | ||
- Card background lighter | |||
- ALL bubbles/panels standardized + brighter | |||
- Dividers/borders more visible | |||
- Tabs more visible | |||
======================================================================== */ | |||
/* | /* 1) LIGHTEN THE CARD ITSELF (this is the biggest difference vs desktop) */ | ||
.sv-skill-card, | |||
.sv-gi-card { | |||
background-color: #162a4e !important; | |||
background-image: | |||
radial-gradient(1100px 520px at 50% -20%, rgba(120,190,255,0.34), transparent 58%), | |||
linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05)), | |||
radial-gradient(900px 360px at 50% 0, rgba(255,255,255,0.10), transparent 58%), | |||
linear-gradient(180deg, #162a4e, #122444) !important; | |||
border-color: rgba(255,255,255,0.16) !important; | |||
box-shadow: 0 16px 34px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06) !important; | |||
color: rgba(245,250,255,0.95) !important; | |||
} | |||
/* 2) STANDARD MOBILE SURFACE FOR ALL “BUBBLES” */ | |||
.sv-skill-level, | .sv-skill-level, | ||
.sv-scaling-row, | .sv-scaling-row, | ||
| Line 968: | Line 987: | ||
.sv-disclose > summary, | .sv-disclose > summary, | ||
.sv-disclose-btn, | .sv-disclose-btn, | ||
.sv-meta-icon { | .sv-meta-icon, | ||
background: rgba(255,255,255,0. | .sv-meta-card { | ||
border-color: rgba(255,255,255,0. | background: rgba(255,255,255,0.30) !important; | ||
border-color: rgba(255,255,255,0.24) !important; | |||
box-shadow: | box-shadow: | ||
inset 0 1px 0 rgba(255,255,255,0.14), | inset 0 1px 0 rgba(255,255,255,0.14), | ||
0 10px 18px rgba(0,0,0,0. | 0 10px 18px rgba(0,0,0,0.16) !important; | ||
} | } | ||
/* | /* 3) DIVIDERS / GRIDLINES (make separation obvious) */ | ||
.sv-skill-meta, | .sv-skill-meta, | ||
.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-meta-card, | |||
.sv-core-cell, | .sv-core-cell, | ||
.sv-scaling-col | .sv-scaling-col { | ||
border-color: rgba(255,255,255,0.18) !important; | |||
border-color: rgba(255,255,255,0. | |||
} | } | ||
/* | /* 4) TABS: more “button” by default + stronger selected */ | ||
.sv-tab { | .sv-tab { | ||
background: rgba(255,255,255,0. | background: rgba(255,255,255,0.28) !important; | ||
color: rgba( | color: rgba(250,252,255,0.95) !important; | ||
} | } | ||
.sv-tab[aria-selected="true"] { | .sv-tab[aria-selected="true"] { | ||
background: rgba(255,255,255,0. | background: rgba(255,255,255,0.38) !important; | ||
color: rgba( | color: rgba(255,255,255,0.99) !important; | ||
box-shadow: | box-shadow: inset 0 1px 0 rgba(255,255,255,0.16) !important; | ||
} | } | ||
/* | /* 5) LABELS: a touch brighter so the “second line” reads */ | ||
.sv- | .sv-scaling-label, | ||
.sv- | .sv-core-label, | ||
.sv-kw-label, | |||
.sv-tip-pop-title, | |||
.sv-disclose-pop-title { | |||
color: rgba(255,255,255,0.78) !important; | |||
} | } | ||
/* | /* 6) LEVEL SLIDER: brighten the track and ticks (your screenshot shows this too dark) */ | ||
.sv-level-range--custom { | .sv-level-range--custom { | ||
background: transparent !important; | background: transparent !important; | ||
| Line 1,021: | Line 1,036: | ||
.sv-level-track { | .sv-level-track { | ||
border: 1px solid rgba(255,255,255,0. | border: 1px solid rgba(255,255,255,0.22) !important; | ||
background: | background: | ||
linear-gradient(180deg, rgba(255,255,255,0. | linear-gradient(180deg, rgba(255,255,255,0.38), rgba(255,255,255,0.26)), | ||
repeating-linear-gradient( | repeating-linear-gradient( | ||
to right, | to right, | ||
transparent 0, | transparent 0, | ||
transparent 10.8%, | transparent 10.8%, | ||
rgba(255,255,255,0. | rgba(255,255,255,0.68) 10.8%, | ||
rgba(255,255,255,0. | rgba(255,255,255,0.68) 11.11% | ||
) !important; | ) !important; | ||
} | } | ||
.sv-level-fill { | |||
background: linear-gradient(90deg, rgba(190,235,255,0.55), rgba(255,255,255,0.22)) !important; | |||
.sv- | |||
} | } | ||
/* 7) Keep your existing mobile layout rules (unchanged structure) */ | |||
.sv-skill-head { grid-template-columns: 68px 1fr; gap: 10px; } | |||
.sv-skill-icon { width: 68px; height: 68px; border-radius: 12px; } | |||
.sv-skill-title { font-size: 18px; } | .sv-skill-title { font-size: 18px; } | ||
.sv-skill-desc { font-size: 15px; line-height: 1.28; } | |||
.sv-skill-desc { | |||
.sv-skill-title-row { | .sv-skill-title-row { | ||
| Line 1,064: | Line 1,066: | ||
} | } | ||
.sv-meta-card { min-height: 44px; padding: 4px 6px; } | |||
.sv-meta-card { | .sv-meta-icon { width: 28px; height: 28px; border-radius: 9px; } | ||
.sv-meta-text { font-size: 12px; line-height: 1.10; } | |||
} | |||
.sv-reqrow { gap: 8px; } | .sv-reqrow { gap: 8px; } | ||
.sv-reqrow > * { flex: 0 1 120px; max-width: 120px; } | |||
.sv-reqrow > * { | .sv-reqrow > *:only-child { flex: 0 1 240px; max-width: 240px; } | ||
.sv-reqrow > *:only-child { | |||
.sv-disclose-pop { left: auto; right: 0; max-width: 92%; } | .sv-disclose-pop { left: auto; right: 0; max-width: 92%; } | ||
.sv-level-label { font-size: 13px; } | .sv-level-label { font-size: 13px; } | ||
.sv-level-range--custom { height: 22px; } | .sv-level-range--custom { height: 22px; } | ||
.sv-level-track { | .sv-level-track { left: 8px; right: 8px; } | ||
.sv-level-thumb { | .sv-level-thumb { | ||
| Line 1,114: | Line 1,088: | ||
} | } | ||
.sv-scaling-grid { grid-template-columns: 1fr 1fr; } | .sv-scaling-grid { grid-template-columns: 1fr 1fr; } | ||
| Line 1,120: | Line 1,093: | ||
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.18); | ||
} | } | ||
| Line 1,126: | Line 1,099: | ||
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.18); | ||
border-right: 1px solid rgba(255,255,255,0. | border-right: 1px solid rgba(255,255,255,0.18); | ||
} | } | ||
| Line 1,138: | Line 1,111: | ||
} | } | ||
.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.18); } | |||
.sv-core-cell { border-left: 0; border-top: 1px solid rgba(255,255,255,0. | |||
.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.18); } | ||
.sv-tabs-list { grid-template-columns: repeat(2, 1fr); } | .sv-tabs-list { grid-template-columns: repeat(2, 1fr); } | ||
.sv-tab { padding: 9px 6px; } | .sv-tab { padding: 9px 6px; } | ||
.sv-tab + .sv-tab { border-left: 1px solid rgba(255,255,255,0. | .sv-tab + .sv-tab { border-left: 1px solid rgba(255,255,255,0.18); } | ||
.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.18); } | ||
.sv-kw-grid { grid-template-columns: repeat(2, 1fr); } | .sv-kw-grid { grid-template-columns: repeat(2, 1fr); } | ||
.sv-tab-pills { grid-template-columns: repeat(2, 1fr); } | .sv-tab-pills { grid-template-columns: repeat(2, 1fr); } | ||
.sv-pill { font-size: 14px; } | .sv-pill { font-size: 14px; } | ||
.sv-ref-grid { grid-template-columns: 1fr; } | .sv-ref-grid { grid-template-columns: 1fr; } | ||
.sv-ref-card { grid-template-columns: 52px 1fr; } | .sv-ref-card { grid-template-columns: 52px 1fr; } | ||
| Line 1,167: | Line 1,132: | ||
.sv-level-range--custom, | .sv-level-range--custom, | ||
.sv-level-ticklabels { | .sv-level-ticklabels { max-width: 100%; } | ||
} | } | ||