Module:GameInfo/styles.css: Difference between revisions
From SpiritVale Wiki
More actions
No edit summary Tags: Manual revert Mobile edit Mobile web edit |
No edit summary Tags: Mobile edit Mobile web edit |
||
| Line 1: | Line 1: | ||
/* Module:GameInfo/styles.css */ | /* Module:GameInfo/styles.css */ | ||
/* | /* GameInfo Box v1 — TemplateStyles-safe (no CSS vars / no var()) */ | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
| Line 7: | Line 7: | ||
.sv-gi-card, | .sv-gi-card, | ||
.sv-skill-card { | .sv-skill-card | ||
{ | |||
max-width: 600px; | max-width: 600px; | ||
margin: 18px auto; | margin: 18px auto; | ||
border-radius: 22px; | border-radius: 22px; | ||
border: 1px solid rgba(255,255,255,0.085); | border: 1px solid rgba(255, 255, 255, 0.085); | ||
background-color: #0f1b33; | background-color: #0f1b33; | ||
background-image: | background-image: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)), linear-gradient(180deg, #0f1b33, #0c162b); | ||
box-shadow: 0 16px 38px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.04); | box-shadow: 0 16px 38px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.04); | ||
overflow: visible; | overflow: visible; | ||
color: rgba(235, 244, 255, 0.92); | |||
color: rgba(235,244,255,0.92); | font-size: 15px; | ||
font-size: | |||
line-height: 1.35; | line-height: 1.35; | ||
} | } | ||
/* Locked split zones */ | |||
.sv-gi-top, | .sv-gi-top, | ||
.sv-skill-top { | .sv-skill-top | ||
{ | |||
padding: 14px 14px 4px; | padding: 14px 14px 4px; | ||
border-radius: 22px 22px 0 0; | border-radius: 22px 22px 0 0; | ||
| Line 37: | Line 32: | ||
.sv-gi-bottom, | .sv-gi-bottom, | ||
.sv-skill-bottom { | .sv-skill-bottom | ||
{ | |||
padding: 10px 14px 12px; | padding: 10px 14px 12px; | ||
border-top: 1px solid rgba(255,255,255,0.050); | border-top: 1px solid rgba(255, 255, 255, 0.050); | ||
border-radius: 0 0 22px 22px; | border-radius: 0 0 22px 22px; | ||
background-image: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.08)); | background-image: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.08)); | ||
} | } | ||
/* Predictable sizing */ | |||
.sv-gi-card, | .sv-gi-card, | ||
.sv-gi-card *, | .sv-gi-card *, | ||
.sv-skill-card, | .sv-skill-card, | ||
.sv-skill-card * { | .sv-skill-card * | ||
{ | |||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
.sv-gi-card a, | .sv-gi-card a, | ||
.sv-skill-card a { | .sv-skill-card a | ||
color: rgba(170,220,255,0. | { | ||
color: rgba(170, 220, 255, 0.92); | |||
text-decoration: none; | text-decoration: none; | ||
} | } | ||
.sv-gi-card a:hover, | .sv-gi-card a:hover, | ||
.sv-skill-card a:hover { | .sv-skill-card a:hover | ||
{ | |||
text-decoration: underline; | text-decoration: underline; | ||
} | } | ||
/* | /* Simple error capsule (used by Lua when JSON missing / invalid) */ | ||
.sv-hidden { display: none !important; } | .sv-gi-error | ||
[hidden] { display: none !important; } | { | ||
padding: 10px 12px; | |||
border-radius: 14px; | |||
border: 1px solid rgba(255, 120, 120, 0.22); | |||
background: rgba(120, 30, 30, 0.18); | |||
color: rgba(255, 235, 235, 0.92); | |||
font-size: 14px; | |||
} | |||
/* IMPORTANT: Phase 4.1 hiding contract */ | |||
.sv-hidden | |||
{ | |||
display: none !important; | |||
} | |||
[hidden] | |||
{ | |||
display: none !important; | |||
} | |||
/* | /* Remove default details marker (safe even if no <details> used) */ | ||
.sv-gi-card summary, | .sv-gi-card summary, | ||
.sv-skill-card summary { | .sv-skill-card summary | ||
{ | |||
list-style: none; | list-style: none; | ||
} | } | ||
.sv-miss | |||
.sv- | { | ||
display: inline-flex; | |||
align-items: center; | |||
justify-content: center; | |||
width: 20px; | |||
height: 20px; | |||
border-radius: 999px; | |||
font-weight: 900; | |||
font-size: 12px; | |||
line-height: 1; | |||
border: 1px solid rgba(255,255,255,0.16); | |||
background: rgba(255,255,255,0.06); | |||
color: rgba(235,244,255,0.85); | |||
} | } | ||
/* | /* ---------------------------------------------------------------------------- | ||
.sv- | SHARED PILL (used across meta rows) | ||
display: inline- | ---------------------------------------------------------------------------- */ | ||
.sv-gi-card .sv-pill, | |||
.sv-skill-card .sv-pill | |||
{ | |||
display: inline-flex; | |||
align-items: center; | |||
padding: 3px 9px; | |||
border-radius: 999px; | border-radius: 999px; | ||
border: 1px solid rgba(255,255,255,0.050); | border: 1px solid rgba(255, 255, 255, 0.050); | ||
background: rgba(255,255,255,0. | background: rgba(255, 255, 255, 0.04); | ||
color: rgba(235, 244, 255, 0.88); | |||
font-size: 12px; | font-size: 12px; | ||
line-height: | line-height: 1.1; | ||
white-space: nowrap; | |||
} | |||
/* Generic image wrapper (keep inside card to avoid global collisions) */ | |||
.sv-gi-card .sv-img, | |||
.sv-skill-card .sv-img | |||
{ | |||
display: inline-flex; | |||
align-items: center; | |||
justify-content: center; | |||
} | } | ||
.sv-gi-card .sv-img img, | |||
.sv- | .sv-skill-card .sv-img img | ||
.sv-img img { | { | ||
display: block; | display: block; | ||
border-radius: 10px; | border-radius: 10px; | ||
| Line 102: | Line 143: | ||
} | } | ||
/* | /* Accessible focus for span-buttons */ | ||
.sv- | .sv-gi-card .sv-tip-btn:focus, | ||
.sv- | .sv-skill-card .sv-tip-btn:focus, | ||
.sv- | .sv-gi-card .sv-disclose-btn:focus, | ||
.sv- | .sv-skill-card .sv-disclose-btn:focus, | ||
.sv-gi-card .sv-tab:focus, | |||
.sv-skill-card .sv-tab:focus | |||
{ | |||
outline: 2px solid rgba(170, 220, 255, 0.55); | |||
outline-offset: 2px; | |||
} | } | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
HEADER (ICON + TITLE + NOTES + DESCRIPTION | SKILL HEADER (ICON + TITLE + NOTES + DESCRIPTION) | ||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
.sv-skill-head { | .sv-skill-head | ||
display: | { | ||
display: flex; | |||
align-items: flex-start; | |||
gap: 12px; | gap: 12px; | ||
padding: 2px 0 10px; | padding: 2px 0 10px; | ||
} | } | ||
.sv-skill-icon { | .sv-skill-icon | ||
width: | { | ||
height: | flex: 0 0 auto; | ||
border-radius: | width: 64px; | ||
border: 1px solid rgba(255,255,255,0. | height: 64px; | ||
background: rgba(255,255,255,0. | border-radius: 16px; | ||
border: 1px solid rgba(255,255,255,0.06); | |||
background: rgba(255,255,255,0.03); | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
.sv-skill- | .sv-skill-icon img | ||
{ | |||
width: 100%; | |||
height: 100%; | |||
object-fit: cover; | |||
display: block; | |||
} | |||
.sv-skill-head-main | |||
{ | |||
min-width: 0; | |||
flex: 1 1 auto; | |||
} | |||
.sv-skill-title-row { | .sv-skill-title-row | ||
{ | |||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
justify-content: space-between; | |||
gap: 10px; | gap: 10px; | ||
} | } | ||
.sv-skill-title { | .sv-skill-title | ||
{ | |||
font-size: 22px; | |||
font-weight: 900; | font-weight: 900; | ||
letter-spacing: 0.2px; | letter-spacing: 0.2px; | ||
color: rgba(245,250,255,0. | color: rgba(245, 250, 255, 0.96); | ||
margin: 0; | |||
} | } | ||
.sv-skill-desc { | .sv-skill-desc | ||
margin-top: | { | ||
margin-top: 6px; | |||
color: rgba(225, 238, 255, 0.82); | |||
font-size: 14px; | |||
color: rgba( | |||
} | } | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
NOTES TIP ( | NOTES TIP (PHASE 4.1: span button + div popover) | ||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
.sv-tip { position: relative; | .sv-gi-card .sv-tip, | ||
.sv-skill-card .sv-tip | |||
{ | |||
position: relative; | |||
flex: 0 0 auto; | |||
} | |||
.sv-tip-btn { | .sv-gi-card .sv-tip-btn, | ||
display: inline- | .sv-skill-card .sv-tip-btn | ||
width: | { | ||
height: | display: inline-flex; | ||
align-items: center; | |||
justify-content: center; | |||
width: 28px; | |||
height: 28px; | |||
border-radius: 999px; | border-radius: 999px; | ||
border: 1px solid rgba(255,255,255,0.06); | |||
border: 1px solid rgba(255,255,255,0. | background: rgba(255,255,255,0.04); | ||
cursor: pointer; | cursor: pointer; | ||
} | } | ||
.sv-tip-btn:hover { background: rgba(255,255,255,0. | .sv-gi-card .sv-tip-btn:hover, | ||
.sv-skill-card .sv-tip-btn:hover | |||
{ | |||
background: rgba(255,255,255,0.06); | |||
} | |||
.sv-ico, | /* Optional “active” feel */ | ||
.sv-ico-- | .sv-gi-card .sv-tip-btn[aria-expanded="true"], | ||
.sv-skill-card .sv-tip-btn[aria-expanded="true"], | |||
.sv-gi-card .sv-disclose-btn[aria-expanded="true"], | |||
.sv-skill-card .sv-disclose-btn[aria-expanded="true"] | |||
{ | |||
background: rgba(255,255,255,0.07); | |||
border-color: rgba(255,255,255,0.10); | |||
} | |||
.sv-gi-card .sv-ico, | |||
.sv-skill-card .sv-ico | |||
{ | |||
display: inline-flex; | |||
align-items: center; | |||
justify-content: center; | |||
width: 18px; | |||
height: 18px; | |||
border-radius: 999px; | |||
font-weight: 900; | font-weight: 900; | ||
font-size: 12px; | font-size: 12px; | ||
line-height: 1; | line-height: 1; | ||
background: rgba(0,0,0,0.12); | |||
border: 1px solid rgba(255,255,255,0.08); | |||
} | } | ||
/* | /* IMPORTANT: do NOT use display:none here; JS controls visibility via .sv-hidden + [hidden] */ | ||
.sv-tip-pop, | .sv-gi-card .sv-tip-pop, | ||
.sv- | .sv-skill-card .sv-tip-pop | ||
{ | |||
display: block; | |||
position: absolute; | position: absolute; | ||
z-index: | z-index: 50; | ||
top: 34px; | |||
right: 0; | |||
border-radius: | width: 360px; | ||
border: 1px solid rgba(255,255,255,0. | max-width: 92vw; | ||
background: | border-radius: 16px; | ||
border: 1px solid rgba(255,255,255,0.08); | |||
background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)), rgba(10, 14, 24, 0.92); | |||
box-shadow: 0 18px 40px rgba(0,0,0,0.60); | |||
box-shadow: 0 | overflow: hidden; | ||
} | } | ||
.sv-tip-pop-head, | .sv-gi-card .sv-tip-pop-head, | ||
.sv- | .sv-skill-card .sv-tip-pop-head | ||
{ | |||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
justify-content: space-between; | justify-content: space-between; | ||
padding: 10px 12px; | |||
border-bottom: 1px solid rgba(255,255,255,0.06); | |||
background: rgba(255,255,255,0.03); | |||
cursor: pointer; | |||
} | } | ||
.sv-tip-pop-title, | .sv-gi-card .sv-tip-pop-title, | ||
.sv- | .sv-skill-card .sv-tip-pop-title | ||
{ | |||
font-weight: 900; | font-weight: 900; | ||
font-size: | font-size: 13px; | ||
letter-spacing: 0. | letter-spacing: 0.2px; | ||
color: rgba(245,250,255,0.96); | |||
color: rgba( | |||
} | } | ||
.sv-tip-pop-hint, | .sv-gi-card .sv-tip-pop-hint, | ||
.sv- | .sv-skill-card .sv-tip-pop-hint | ||
{ | |||
font-size: 12px; | font-size: 12px; | ||
color: rgba( | color: rgba(210,224,245,0.65); | ||
} | } | ||
.sv-tip-pop-body { | .sv-gi-card .sv-tip-pop-body, | ||
.sv-skill-card .sv-tip-pop-body | |||
font-size: | { | ||
padding: 10px 12px; | |||
font-size: 13px; | |||
color: rgba(230,244,255,0.86); | |||
} | } | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
META ( | META ROW GRID (pills) | ||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
.sv-skill-meta { | .sv-skill-meta | ||
{ | |||
display: grid; | display: grid; | ||
grid-template-columns: repeat( | grid-template-columns: repeat(3, minmax(0, 1fr)); | ||
gap: | gap: 8px; | ||
margin: 6px 0 10px; | |||
} | } | ||
.sv-meta- | .sv-skill-meta .sv-pill | ||
{ | |||
justify-content: center; | |||
width: 100%; | |||
align-items: | } | ||
padding: | |||
border- | /* ---------------------------------------------------------------------------- | ||
META CARD (icon + text) | |||
---------------------------------------------------------------------------- */ | |||
.sv-gi-card .sv-meta-card, | |||
.sv-skill-card .sv-meta-card | |||
{ | |||
display: flex; | |||
align-items: flex-start; | |||
gap: 10px; | |||
padding: 10px 10px; | |||
border-radius: 16px; | |||
border: 1px solid rgba(255,255,255,0.055); | |||
background: rgba(255,255,255,0.03); | |||
margin: 6px 0 10px; | |||
} | } | ||
.sv-meta-icon { | .sv-gi-card .sv-meta-icon, | ||
.sv-skill-card .sv-meta-icon | |||
{ | |||
width: 34px; | width: 34px; | ||
height: 34px; | height: 34px; | ||
border-radius: | border-radius: 12px; | ||
border: 1px solid rgba(255,255,255,0.05); | |||
background: rgba(0,0,0,0.16); | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
.sv-meta- | .sv-gi-card .sv-meta-icon img, | ||
.sv-skill-card .sv-meta-icon img | |||
{ | |||
width: 100%; | |||
height: 100%; | |||
object-fit: cover; | |||
display: block; | |||
} | |||
.sv-gi-card .sv-meta-textwrap, | |||
.sv-skill-card .sv-meta-textwrap | |||
{ | |||
flex: 1 1 auto; | |||
min-width: 0; | min-width: 0; | ||
} | } | ||
.sv-meta-text { | .sv-gi-card .sv-meta-text, | ||
font- | .sv-skill-card .sv-meta-text | ||
{ | |||
font-size: 13px; | |||
color: rgba(232,244,255,0.86); | |||
} | |||
.sv-gi-card .sv-meta-lines span, | |||
.sv-skill-card .sv-meta-lines span | |||
{ | |||
display: inline-block; | |||
margin-right: 10px; | |||
color: rgba(210,224,245,0.72); | |||
font-size: 12px; | font-size: 12px; | ||
} | } | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
REQUIREMENTS / | REQUIREMENTS / DISCLOSURES (PHASE 4.1) | ||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
.sv-reqrow | .sv-gi-card .sv-reqrow, | ||
.sv-skill-card .sv-reqrow | |||
{ | |||
margin: 6px 0 10px; | |||
.sv-reqrow | |||
} | } | ||
.sv- | .sv-gi-card .sv-disclose, | ||
.sv-skill-card .sv-disclose | |||
{ | |||
position: relative; | |||
} | } | ||
.sv- | .sv-gi-card .sv-disclose-btn, | ||
.sv-disclose | .sv-skill-card .sv-disclose-btn | ||
{ | |||
.sv- | display: inline-flex; | ||
.sv-disclose-btn { | |||
align-items: center; | align-items: center; | ||
gap: 8px; | |||
padding: 7px 10px; | |||
border-radius: 999px; | |||
border: 1px solid rgba(255,255,255,0.06); | |||
background: rgba(255,255,255,0.04); | |||
cursor: pointer; | |||
font-size: 12px; | font-size: 12px; | ||
color: rgba(235,244,255,0.86); | |||
} | } | ||
.sv-disclose- | .sv-gi-card .sv-disclose-btn:hover, | ||
.sv-skill-card .sv-disclose-btn:hover | |||
{ | |||
background: rgba(255,255,255,0.06); | |||
} | } | ||
.sv-gi-card .sv-disclose-label, | |||
.sv-disclose- | .sv-skill-card .sv-disclose-label | ||
{ | |||
font-weight: 800; | |||
font- | |||
} | } | ||
.sv-gi-card .sv-disclose-count, | |||
.sv-skill-card .sv-disclose-count | |||
{ | |||
font-weight: 900; | |||
.sv- | opacity: 0.9; | ||
} | } | ||
.sv- | .sv-gi-card .sv-disclose-pop, | ||
.sv-skill- | .sv-skill-card .sv-disclose-pop | ||
{ | |||
display: block; | |||
border-radius: | position: absolute; | ||
border | z-index: 40; | ||
top: 34px; | |||
right: 0; | |||
width: 420px; | |||
max-width: 92vw; | |||
border-radius: 16px; | |||
border: 1px solid rgba(255,255,255,0.08); | |||
background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)), rgba(10, 14, 24, 0.92); | |||
box-shadow: 0 18px 40px rgba(0,0,0,0.60); | |||
overflow: hidden; | |||
} | } | ||
.sv- | .sv-gi-card .sv-disclose-pop-head, | ||
.sv-skill-card .sv-disclose-pop-head | |||
{ | |||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
justify-content: space-between; | |||
padding: 10px 12px; | |||
border-bottom: 1px solid rgba(255,255,255,0.06); | |||
background: rgba(255,255,255,0.03); | |||
cursor: pointer; | |||
} | } | ||
.sv- | .sv-gi-card .sv-disclose-pop-title, | ||
.sv-skill-card .sv-disclose-pop-title | |||
{ | |||
font- | font-weight: 900; | ||
font-size: 13px; | |||
letter-spacing: 0.2px; | |||
color: rgba(245,250,255,0.96); | |||
} | } | ||
.sv- | .sv-gi-card .sv-disclose-pop-hint, | ||
.sv-skill-card .sv-disclose-pop-hint | |||
{ | |||
font-size: 12px; | |||
color: rgba(210,224,245,0.65); | |||
} | |||
.sv- | .sv-gi-card .sv-disclose-list, | ||
.sv- | .sv-skill-card .sv-disclose-list | ||
.sv- | { | ||
.sv- | padding: 10px 12px 12px; | ||
margin: 0; | |||
list-style: none; | |||
font-size: 13px; | |||
color: rgba(230,244,255,0.86); | |||
} | } | ||
.sv- | .sv-gi-card .sv-disclose-list li, | ||
.sv-skill-card .sv-disclose-list li | |||
{ | |||
padding: 6px 0; | |||
border-bottom: 1px solid rgba(255,255,255,0.05); | |||
} | } | ||
.sv-gi-card .sv-disclose-list li:first-child, | |||
.sv-skill-card .sv-disclose-list li:first-child | |||
{ | |||
padding-top: 0; | |||
.sv- | |||
} | } | ||
.sv- | .sv-gi-card .sv-disclose-group-title, | ||
.sv-skill-card .sv-disclose-group-title | |||
{ | |||
margin: 8px 0 6px; | |||
font-weight: 900; | font-weight: 900; | ||
font-size: | font-size: 12px; | ||
color: rgba(210,224,245,0.85); | |||
} | } | ||
.sv-level- | /* ---------------------------------------------------------------------------- | ||
LEVEL UI (slider) | |||
---------------------------------------------------------------------------- */ | |||
.sv-gi-card .sv-level-ui, | |||
.sv-skill-card .sv-level-ui | |||
{ | |||
display: flex; | |||
align-items: baseline; | |||
justify-content: space-between; | |||
gap: 10px; | |||
margin: 6px 0 8px; | |||
} | |||
.sv-level- | .sv-gi-card .sv-level-label, | ||
.sv-skill-card .sv-level-label | |||
{ | |||
font-weight: 900; | |||
font-size: 12px; | |||
color: rgba(210,224,245,0.85); | |||
} | } | ||
.sv-level- | .sv-gi-card .sv-level-num, | ||
.sv-skill-card .sv-level-num | |||
{ | |||
font-weight: 900; | |||
color: rgba(245,250,255,0.96); | |||
} | } | ||
.sv-level- | .sv-gi-card .sv-level-slider, | ||
.sv-skill-card .sv-level-slider | |||
{ | |||
position: relative; | position: relative; | ||
height: 14px; | |||
height: | |||
border-radius: 999px; | border-radius: 999px; | ||
background: rgba(255,255,255,0.04); | |||
border: 1px solid rgba(255,255,255,0.06); | |||
overflow: hidden; | |||
} | } | ||
.sv-level-track { | .sv-gi-card .sv-level-track, | ||
.sv-skill-card .sv-level-track | |||
{ | |||
position: absolute; | position: absolute; | ||
left: 0; | left: 0; | ||
top: 0; | |||
bottom: 0; | |||
width: 100%; | |||
} | } | ||
.sv-level-fill { | .sv-gi-card .sv-level-fill, | ||
.sv-skill-card .sv-level-fill | |||
{ | |||
position: absolute; | |||
left: 0; | |||
top: 0; | |||
bottom: 0; | |||
width: 0%; | width: 0%; | ||
background: rgba(96,165,250,0.50); | |||
background: | |||
} | } | ||
.sv-level-thumb { | .sv-gi-card .sv-level-thumb, | ||
.sv-skill-card .sv-level-thumb | |||
{ | |||
position: absolute; | position: absolute; | ||
top: 50%; | top: 50%; | ||
transform: translate(-50%, -50%); | |||
width: 18px; | width: 18px; | ||
height: 18px; | height: 18px; | ||
border-radius: 999px; | border-radius: 999px; | ||
background: rgba( | background: rgba(245,250,255,0.92); | ||
border: 1px solid rgba(0,0,0,0.35); | border: 1px solid rgba(0,0,0,0.35); | ||
box-shadow: 0 | box-shadow: 0 8px 18px rgba(0,0,0,0.45); | ||
} | } | ||
.sv-level- | .sv-gi-card .sv-level-range, | ||
.sv-skill-card .sv-level-range | |||
{ | |||
width: 100%; | width: 100%; | ||
margin: 0; | |||
background: transparent; | |||
margin | height: 18px; | ||
} | } | ||
.sv-gi-card .sv-level-range--custom, | |||
.sv-skill-card .sv-level-range--custom | |||
{ | |||
display: block; | |||
width: 100%; | |||
opacity: 0; | |||
position: absolute; | |||
inset: 0; | |||
cursor: pointer; | |||
} | } | ||
.sv- | .sv-gi-card .sv-level-range--custom:focus, | ||
.sv-skill-card .sv-level-range--custom:focus | |||
{ | |||
outline: none; | |||
.sv- | |||
} | } | ||
.sv- | .sv-gi-card .sv-level-ticklabels, | ||
.sv-skill-card .sv-level-ticklabels | |||
{ | |||
display: flex; | |||
justify-content: space-between; | |||
gap: 8px; | |||
font-size: 11px; | |||
margin-top: 6px; | |||
color: rgba(210,224,245,0.65); | |||
.sv- | |||
font-size: | |||
color: rgba( | |||
} | } | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
CORE | CORE GRID | ||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
.sv-core- | .sv-gi-card .sv-core-grid, | ||
.sv-skill-card .sv-core-grid | |||
.sv-core-grid { | { | ||
display: grid; | display: grid; | ||
grid-template-columns: 1fr | grid-template-columns: repeat(3, minmax(0, 1fr)); | ||
gap: 0; | gap: 8px; | ||
margin: 8px 0 10px; | |||
} | } | ||
.sv-core-cell { | .sv-gi-card .sv-core-cell, | ||
padding: | .sv-skill-card .sv-core-cell | ||
{ | |||
border-radius: 16px; | |||
border: 1px solid rgba(255,255,255,0.055); | |||
background: rgba(255,255,255,0.03); | |||
padding: 10px 10px; | |||
min-width: 0; | min-width: 0; | ||
} | } | ||
.sv-core-top { | .sv-gi-card .sv-core-top, | ||
.sv-skill-card .sv-core-top | |||
{ | |||
display: flex; | display: flex; | ||
align-items: baseline; | align-items: baseline; | ||
justify-content: | justify-content: space-between; | ||
gap: 6px; | gap: 8px; | ||
margin-bottom: 6px; | |||
} | } | ||
.sv-core- | .sv-gi-card .sv-core-label, | ||
font-weight: | .sv-skill-card .sv-core-label | ||
font-size: | { | ||
font-weight: 900; | |||
color: rgba( | font-size: 12px; | ||
color: rgba(210,224,245,0.85); | |||
} | } | ||
.sv-core- | .sv-gi-card .sv-core-label--tight, | ||
.sv-skill-card .sv-core-label--tight | |||
{ | |||
letter-spacing: 0; | |||
letter-spacing: 0 | |||
} | } | ||
.sv-core- | .sv-gi-card .sv-core-num, | ||
.sv-skill-card .sv-core-num | |||
font-weight: | { | ||
font-size: | font-weight: 900; | ||
font-size: 13px; | |||
color: rgba(245,250,255,0.96); | |||
color: rgba( | |||
} | } | ||
.sv-gi-card .sv-core-unit, | |||
.sv-skill-card .sv-core-unit | |||
{ | |||
font-size: 11px; | |||
.sv-skill- | color: rgba(210,224,245,0.65); | ||
.sv- | |||
} | } | ||
.sv- | .sv-gi-card .sv-core-row, | ||
.sv-skill-card .sv-core-row | |||
{ | |||
display: flex; | |||
align-items: baseline; | |||
justify-content: space-between; | |||
gap: 10px; | |||
font-size: 12px; | font-size: 12px; | ||
color: rgba(230,244,255,0.80); | |||
} | } | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
KEYWORDS | KEYWORDS GRID | ||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
.sv- | .sv-gi-card .sv-kw-grid, | ||
.sv-skill-card .sv-kw-grid | |||
{ | |||
display: grid; | display: grid; | ||
grid-template-columns: | grid-template-columns: 1fr; | ||
gap: 8px; | gap: 8px; | ||
margin: 8px 0 10px; | |||
} | } | ||
.sv- | .sv-gi-card .sv-kw-cell, | ||
.sv-skill-card .sv-kw-cell | |||
{ | |||
border-radius: 16px; | |||
border: 1px solid rgba(255,255,255,0.055); | |||
border-radius: | |||
border: 1px solid rgba(255,255,255,0. | |||
background: rgba(255,255,255,0.03); | background: rgba(255,255,255,0.03); | ||
padding: 10px 10px; | |||
} | |||
.sv-gi-card .sv-kw-label, | |||
font-weight: | .sv-skill-card .sv-kw-label | ||
font-size: | { | ||
font-weight: 900; | |||
font-size: 12px; | |||
color: rgba(210,224,245,0.85); | |||
margin-bottom: 6px; | |||
} | |||
.sv-gi-card .sv-kw-value, | |||
.sv-skill-card .sv-kw-value | |||
{ | |||
display: flex; | |||
flex-wrap: wrap; | |||
gap: 6px; | |||
} | } | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
TABS (Phase 4.1) | |||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
.sv- | .sv-tabs | ||
{ | |||
margin: 10px 0 8px; | |||
} | |||
.sv- | .sv-tabs-list | ||
display: | { | ||
display: flex; | |||
gap: 8px; | gap: 8px; | ||
flex-wrap: wrap; | |||
margin-bottom: 10px; | |||
} | } | ||
.sv- | .sv-gi-card .sv-tab, | ||
.sv-skill-card .sv-tab | |||
{ | |||
display: inline-flex; | |||
align-items: center; | |||
display: flex; | |||
justify-content: center; | justify-content: center; | ||
padding: 7px 10px; | |||
border-radius: 999px; | |||
border: 1px solid rgba(255,255,255,0.06); | |||
background: rgba(255,255,255,0.04); | |||
cursor: pointer; | |||
font-size: 12px; | |||
color: rgba(235,244,255,0.86); | |||
} | } | ||
.sv- | .sv-gi-card .sv-tab:hover, | ||
.sv-skill-card .sv-tab:hover | |||
{ | |||
background: rgba(255,255,255,0.06); | |||
} | |||
.sv-gi-card .sv-tab[aria-selected="true"], | |||
.sv-skill-card .sv-tab[aria-selected="true"] | |||
{ | |||
background: rgba(96,165,250,0.22); | |||
border-color: rgba(96,165,250,0.35); | |||
} | } | ||
.sv- | .sv-tabpanel | ||
{ | |||
margin-top: 6px; | |||
margin-top: | |||
} | } | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
REFERENCES GRID | |||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
.sv-ref-grid { | .sv-gi-card .sv-ref-grid, | ||
.sv-skill-card .sv-ref-grid | |||
{ | |||
display: grid; | display: grid; | ||
grid-template-columns: repeat(2, 1fr); | grid-template-columns: repeat(2, minmax(0, 1fr)); | ||
gap: 10px; | gap: 8px; | ||
margin: 8px 0 10px; | |||
} | } | ||
.sv-ref-card | .sv-gi-card .sv-ref-card, | ||
.sv-skill-card .sv-ref-card | |||
{ | |||
border-radius: 16px; | |||
border: 1px solid rgba(255,255,255,0.055); | |||
border-radius: | |||
border: 1px solid rgba(255,255,255,0. | |||
background: rgba(255,255,255,0.03); | background: rgba(255,255,255,0.03); | ||
padding: 10px 10px; | |||
min-width: 0; | min-width: 0; | ||
} | } | ||
.sv-ref-title { | .sv-gi-card .sv-ref-title, | ||
.sv-skill-card .sv-ref-title | |||
{ | |||
font-weight: 900; | font-weight: 900; | ||
font-size: 12px; | font-size: 12px; | ||
color: rgba(210,224,245,0.85); | |||
margin-bottom: 6px; | |||
} | } | ||
.sv-ref- | .sv-gi-card .sv-ref-text, | ||
.sv-skill-card .sv-ref-text | |||
{ | |||
font-size: 12px; | font-size: 12px; | ||
color: rgba(230,244,255,0.80); | |||
color: rgba( | } | ||
.sv-gi-card .sv-ref-sub, | |||
.sv-skill-card .sv-ref-sub | |||
{ | |||
font-size: 11px; | |||
color: rgba(210,224,245,0.65); | |||
margin-top: 4px; | |||
} | } | ||
.sv-ref- | .sv-gi-card .sv-ref-stats, | ||
flex | .sv-skill-card .sv-ref-stats | ||
{ | |||
display: flex; | |||
flex-wrap: wrap; | |||
gap: 6px; | gap: 6px; | ||
margin-top: 6px; | |||
} | } | ||
.sv-ref- | |||
.sv-gi-card .sv-ref-stat, | |||
.sv-skill-card .sv-ref-stat | |||
{ | |||
display: inline-flex; | |||
align-items: center; | |||
gap: 6px; | |||
padding: 3px 9px; | |||
border-radius: 999px; | |||
border: 1px solid rgba(255, 255, 255, 0.050); | |||
background: rgba(255, 255, 255, 0.04); | |||
font-size: 12px; | font-size: 12px; | ||
} | } | ||
.sv-ref- | .sv-gi-card .sv-ref-ico, | ||
.sv-skill-card .sv-ref-ico | |||
display: flex; | { | ||
justify-content: | width: 16px; | ||
height: 16px; | |||
border-radius: 999px; | |||
border: 1px solid rgba(255,255,255,0.08); | |||
background: rgba(0,0,0,0.12); | |||
display: inline-flex; | |||
align-items: center; | |||
justify-content: center; | |||
font-size: 11px; | |||
font-weight: 900; | font-weight: 900; | ||
} | } | ||
/* ---------------------------------------------------------------------------- | /* ---------------------------------------------------------------------------- | ||
RESPONSIVE | RESPONSIVE | ||
---------------------------------------------------------------------------- */ | ---------------------------------------------------------------------------- */ | ||
@media (max-width: 720px) { | |||
@media (max-width: | .sv-gi-card, | ||
.sv-skill-card | |||
{ | |||
margin: 14px 10px; | margin: 14px 10px; | ||
border-radius: 20px; | border-radius: 20px; | ||
} | } | ||
.sv-gi-top, | |||
.sv-skill-top | |||
{ | |||
padding: 12px 12px 4px; | padding: 12px 12px 4px; | ||
border-radius: 20px 20px 0 0; | border-radius: 20px 20px 0 0; | ||
} | } | ||
.sv-gi-bottom, | |||
.sv-skill-bottom | |||
{ | |||
padding: 10px 12px 12px; | padding: 10px 12px 12px; | ||
border-radius: 0 0 20px 20px; | border-radius: 0 0 20px 20px; | ||
} | } | ||
.sv-skill-title | |||
{ | |||
font-size: 20px; | |||
} | } | ||
.sv-skill-meta | |||
{ | |||
grid-template-columns: repeat(2, minmax(0, 1fr)); | |||
} | } | ||
.sv-gi-card .sv-core-grid, | |||
.sv-skill-card .sv-core-grid | |||
{ | |||
grid-template-columns: repeat(2, minmax(0, 1fr)); | |||
} | } | ||
.sv-gi-card .sv-ref-grid, | |||
.sv-skill-card .sv-ref-grid | |||
{ | |||
grid-template-columns: 1fr; | |||
} | } | ||
} | } | ||
@media (max-width: 520px) { | |||
@media (max-width: | .sv-skill-head | ||
{ | |||
flex-direction: row; | |||
align-items: flex-start; | |||
} | } | ||
.sv-skill-icon | |||
{ | |||
width: 56px; | |||
border: | height: 56px; | ||
border-radius: 14px; | |||
} | } | ||
.sv-skill-desc | |||
{ | |||
font-size: 14px; | |||
} | } | ||
.sv-gi-card .sv-tip-pop, | |||
.sv-skill-card .sv-tip-pop, | |||
.sv-gi-card .sv-disclose-pop, | |||
.sv-skill-card .sv-disclose-pop | |||
{ | |||
right: 0; | |||
width: 92vw; | |||
} | } | ||
.sv-gi-card .sv-core-grid, | |||
.sv-skill-card .sv-core-grid | |||
{ | |||
grid-template-columns: 1fr; | |||
} | } | ||
} | } | ||