TOOLTIPS: extract .tt base to _tooltips.scss + natus element/planet title colours
- New _tooltips.scss: .token-tooltip/.tt base block extracted from _wallet-tokens.scss
- core.scss: import order …billboard → tooltips → game-kit → wallet-tokens
- _natus.scss: .tt-title--au/ag/…/pu (--six* dark, --pri* light) + .tt-title--el-* for element ring (--pri* dark, --ter* light) via body[class*="-light"] selector
- natus-wheel.js: element tooltip title switched from inline style to .tt-title--el-{key} CSS class; PLANET_ELEMENTS map drives .tt-title--{el} class on planet titles
- _game-kit.scss: kit bag .tt child font-size rules added (1rem title, 0.75rem desc/shoptalk/expiry)
- CLAUDE.md: SCSS import order updated
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
61
src/static_src/scss/_tooltips.scss
Normal file
61
src/static_src/scss/_tooltips.scss
Normal file
@@ -0,0 +1,61 @@
|
||||
// ── Tooltip base styles ───────────────────────────────────────────────────────
|
||||
// Shared by wallet tokens, game-kit kit bag, and natus wheel tooltips.
|
||||
// Portal tooltips (#id_tooltip_portal, #id_natus_tooltip) are position:fixed
|
||||
// and override z-index; inline .tt cards use position:absolute within their
|
||||
// parent token container.
|
||||
|
||||
.token-tooltip,
|
||||
.tt {
|
||||
display: none;
|
||||
width: 16rem;
|
||||
max-width: 16rem;
|
||||
white-space: normal;
|
||||
background-color: rgba(var(--tooltip-bg), 0.75);
|
||||
backdrop-filter: blur(6px);
|
||||
border: 0.1rem solid rgba(var(--secUser), 0.5);
|
||||
color: rgba(var(--secUser), 1);
|
||||
padding: 0.5rem 0.75rem;
|
||||
border-radius: 0.5rem;
|
||||
z-index: 10;
|
||||
font-size: 0.875rem;
|
||||
|
||||
h4 {
|
||||
font-size: 0.95rem;
|
||||
margin: 0 0 0.3rem 0;
|
||||
color: rgba(var(--terUser), 1);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: baseline;
|
||||
gap: 0.5rem;
|
||||
|
||||
.token-count {
|
||||
font-size: 0.75rem;
|
||||
opacity: 0.65;
|
||||
font-weight: normal;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0 0 0.2rem 0;
|
||||
|
||||
&.expiry {
|
||||
color: rgba(var(--priRd), 1);
|
||||
}
|
||||
|
||||
&.availability {
|
||||
color: rgba(var(--priRd), 1);
|
||||
}
|
||||
|
||||
&.stock-version {
|
||||
font-weight: 700;
|
||||
color: rgba(var(--terUser), 1);
|
||||
}
|
||||
}
|
||||
|
||||
small {
|
||||
display: block;
|
||||
font-size: 0.6rem;
|
||||
opacity: 0.6;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user