fan-card title symmetry; pips → Minor; tray Sig card
- title slot: <h3> → <p>; font-size 0.1 → 0.087 (deck) / 0.093 → 0.08 (sig/sea); text-wrap: balance — kills upright/reversal asymmetry & all per-card squeeze hacks - trump 8 hyphen → U+2011, trump 9 space → U+00A0 (mig 0021) so titles wrap as intended - pips (Earthman 1–10) → MINOR arcana (mig 0022); StageCard._arcanaDisplay() picks the right label - PICK SEA: re-clicking a deposited slot now restores the server-rolled reversed state (sea.js _populate toggle) - tray Sig card: render same .sig-stage-card.sea-sig-card (rank + icon, -5deg) as Sea center; --sig-card-w sized off --tray-cell-size - title_squeeze_class kept as no-op for template compat - 0020 (Self-Unimportance rename) included from prior turn Code architected by Disco DeDisco <discodedisco@outlook.com> Git commit message Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -350,21 +350,34 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: calc(var(--fan-card-w) * 0.007);
|
||||
// Ghost-line: reserve at least two title-line-heights of vertical space
|
||||
// on each face so emanation + reversal stay symmetric even when one
|
||||
// side has a single-line title (e.g. trumps 6–9 reversal "Indulged
|
||||
// Folly" vs upright "Losing Self-Importance, / Sublimating").
|
||||
min-height: calc(var(--fan-card-w) * 0.21);
|
||||
}
|
||||
|
||||
// Qualifier shares the name's typography — same line, different content.
|
||||
// Sizes scale with --fan-card-w so they stay proportional on mobile.
|
||||
// `text-wrap: balance` distributes lines evenly so a borderline-long title
|
||||
// breaks at the natural midpoint instead of greedy first-fit (e.g. trump
|
||||
// 9 wraps as "Erasing / Personal History," instead of "Erasing Personal /
|
||||
// History,"). Base size lowered from 0.1 → 0.087 (~13%) so all the long
|
||||
// titles (trumps 8/9/18/36/41 + Queen of Crowns) fit without per-card
|
||||
// hacks and without asymmetry between upright (h3) and reversal (p).
|
||||
.sig-qualifier-above,
|
||||
.sig-qualifier-below,
|
||||
.fan-card-reversal-qualifier,
|
||||
.fan-card-reversal-name,
|
||||
.fan-card-name {
|
||||
font-size: calc(var(--fan-card-w) * 0.1);
|
||||
font-size: calc(var(--fan-card-w) * 0.087);
|
||||
font-weight: bold;
|
||||
margin: 0;
|
||||
color: rgba(var(--terUser), 1);
|
||||
transition: opacity 0.2s;
|
||||
text-wrap: balance;
|
||||
}
|
||||
|
||||
// Reversal-face spans pre-rotated so they read forward once the card spins
|
||||
@@ -547,12 +560,14 @@ html:has(.sig-backdrop) {
|
||||
.fan-card-face-upright { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; }
|
||||
.fan-card-face-reversal { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; padding-top: 0.1rem; }
|
||||
.fan-card-name-group { font-size: calc(var(--sig-card-w, 120px) * 0.073); opacity: 0.6; }
|
||||
// Upright qualifier + name share sizing/weight/color with their reversed counterparts
|
||||
// Upright qualifier + name share sizing/weight/color with their reversed counterparts.
|
||||
// text-wrap: balance distributes lines evenly so longer titles wrap symmetrically;
|
||||
// base size 0.08 (was 0.093) gives long titles room to fit without per-card hacks.
|
||||
.sig-qualifier-above,
|
||||
.sig-qualifier-below,
|
||||
.fan-card-reversal-qualifier { font-size: calc(var(--sig-card-w, 120px) * 0.093); font-weight: 600; color: rgba(var(--quiUser), 1); transition: opacity 0.2s; }
|
||||
.fan-card-reversal-qualifier { font-size: calc(var(--sig-card-w, 120px) * 0.08); font-weight: 600; color: rgba(var(--quiUser), 1); transition: opacity 0.2s; text-wrap: balance; }
|
||||
.fan-card-name,
|
||||
.fan-card-reversal-name { font-size: calc(var(--sig-card-w, 120px) * 0.093); font-weight: 600; color: rgba(var(--quiUser), 1); transition: opacity 0.2s; }
|
||||
.fan-card-reversal-name { font-size: calc(var(--sig-card-w, 120px) * 0.08); font-weight: 600; color: rgba(var(--quiUser), 1); transition: opacity 0.2s; text-wrap: balance; }
|
||||
.fan-card-arcana { font-size: calc(var(--sig-card-w, 120px) * 0.067); text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.5; }
|
||||
.fan-card-correspondence{ display: none; } // Minchiate equivalence shown in game-kit only
|
||||
// Reversed face elements — pre-rotated so they read forward after card spins
|
||||
@@ -1148,8 +1163,9 @@ $sea-card-h: 6.5rem;
|
||||
}
|
||||
|
||||
// .sig-stage-card is normally scoped inside .sig-stage — re-apply the card shell
|
||||
// here so it renders correctly outside that context.
|
||||
.sea-cross .sig-stage-card {
|
||||
// here so it renders correctly outside that context. Class-based selector so it
|
||||
// also applies in the tray (.tray-sig-card .sig-stage-card.sea-sig-card).
|
||||
.sig-stage-card.sea-sig-card {
|
||||
flex-shrink: 0;
|
||||
width: var(--sig-card-w, #{$sea-card-w});
|
||||
height: auto;
|
||||
@@ -1498,9 +1514,9 @@ $_glow-gravity: 0 0 0.8rem 0.15rem rgba(var(--quaUser), 0.6);
|
||||
.fan-card-name-group { font-size: calc(var(--sig-card-w, 140px) * 0.073); opacity: 0.6; }
|
||||
.sig-qualifier-above,
|
||||
.sig-qualifier-below,
|
||||
.fan-card-reversal-qualifier { font-size: calc(var(--sig-card-w, 140px) * 0.093); font-weight: 600; color: rgba(var(--quiUser), 1); transition: opacity 0.2s; }
|
||||
.fan-card-reversal-qualifier { font-size: calc(var(--sig-card-w, 140px) * 0.08); font-weight: 600; color: rgba(var(--quiUser), 1); transition: opacity 0.2s; text-wrap: balance; }
|
||||
.fan-card-name,
|
||||
.fan-card-reversal-name { font-size: calc(var(--sig-card-w, 140px) * 0.093); font-weight: 600; color: rgba(var(--quiUser), 1); transition: opacity 0.2s; }
|
||||
.fan-card-reversal-name { font-size: calc(var(--sig-card-w, 140px) * 0.08); font-weight: 600; color: rgba(var(--quiUser), 1); transition: opacity 0.2s; text-wrap: balance; }
|
||||
.fan-card-arcana { font-size: calc(var(--sig-card-w, 140px) * 0.067); text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.5; }
|
||||
.fan-card-reversal-qualifier,
|
||||
.fan-card-reversal-name { transform: rotate(180deg); opacity: 0.25; }
|
||||
|
||||
Reference in New Issue
Block a user