Open any toolbox from a list in Sokko TCG's toolbox drawer
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 23m40s
Validate and deploy Sokko G / deploy (push) Successful in 16s

Every Sokko TCG section now offers the top bar's toolbox button. Instead of
linking a toolbox, the drawer lists all toolboxes (linked to a game or not)
as wide rows with a large cover, opens the one chosen, and remembers it on
the device. Memos and alerts follow the toolbox shown.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-11-30 14:31:53 +01:00
parent e8fe27a90f
commit 8253f74c90
17 changed files with 359 additions and 45 deletions

View file

@ -71,6 +71,98 @@ body.is-resizing-drawer * {
gap: var(--space-4);
}
/* Tiroir de Sokko TCG : une bande par toolbox. L'illustration occupe une large part de la bande (bandeau 2:1 comme les
couvertures de jeu, jusqu'à leur taille native de 240 × 120), puis le nom et le jeu lié. */
.drawer-toolbox-chooser {
display: grid;
gap: var(--space-4);
}
.drawer-toolbox-chooser h2 {
font-size: var(--font-size-md);
}
.drawer-toolbox-chooser-list {
display: grid;
gap: var(--space-3);
margin: 0;
padding: 0;
list-style: none;
}
.drawer-toolbox-chooser-row button {
min-height: 0;
gap: var(--space-4);
padding: var(--space-2);
cursor: pointer;
}
.drawer-toolbox-chooser-row button:focus-visible {
outline: 2px solid var(--color-accent-gold);
outline-offset: -2px;
}
.drawer-toolbox-chooser-cover {
display: grid;
flex: 0 0 min(240px, 42%);
aspect-ratio: 2 / 1;
overflow: hidden;
place-items: center;
border-radius: var(--radius-sm);
background: var(--gradient-nebula);
}
.drawer-toolbox-chooser-cover img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.2s ease;
}
.drawer-toolbox-chooser-row:hover .drawer-toolbox-chooser-cover[data-shape="image"] img {
transform: scale(1.04);
}
.drawer-toolbox-chooser-cover[data-shape="icon"] img {
width: 40%;
height: 70%;
object-fit: contain;
}
.drawer-toolbox-chooser-text {
display: grid;
min-width: 0;
gap: var(--space-1);
text-align: left;
}
.drawer-toolbox-chooser-text strong,
.drawer-toolbox-chooser-text small {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.drawer-toolbox-chooser-text strong {
font-size: var(--font-size-lg);
}
.drawer-toolbox-chooser-text small {
color: var(--color-text-muted);
font-size: var(--font-size-sm);
font-weight: 700;
}
@media (prefers-reduced-motion: reduce) {
.drawer-toolbox-chooser-cover img {
transition: none;
}
}
.drawer-toolbox-chooser-create {
justify-self: start;
}
.drawer-link-existing h2 {
font-size: var(--font-size-md);
}