Lay the card sheet stats out two by two when the summary is narrow, not when the window is
At 768 px the sheet switches to two columns and the summary shrinks to 336 px, so four stat tiles overflowed. A container query on the summary now decides. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
ccbed6cba8
commit
0807c18371
3 changed files with 11 additions and 2 deletions
|
|
@ -670,7 +670,8 @@ $diffraction-glitter-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/
|
|||
.nebula-card-upgrade p { margin: 0; }
|
||||
.nebula-card-detail-close { padding-top: var(--space-4); border-top: 1px solid var(--color-border); }
|
||||
// Récapitulatif : la Puissance en grand, le niveau et sa barre d'expérience, puis les quatre stats en tuiles.
|
||||
.nebula-card-summary { display: grid; gap: var(--space-3); padding: var(--space-4); border: 1px solid rgba(246, 196, 83, 0.35); border-radius: var(--radius-md); background: linear-gradient(135deg, rgba(246, 196, 83, 0.08), rgba(124, 92, 255, 0.06)); }
|
||||
// Conteneur : la place des stats dépend de la mise en page de la fiche (une ou deux colonnes), pas de la largeur de la fenêtre.
|
||||
.nebula-card-summary { container-type: inline-size; display: grid; gap: var(--space-3); padding: var(--space-4); border: 1px solid rgba(246, 196, 83, 0.35); border-radius: var(--radius-md); background: linear-gradient(135deg, rgba(246, 196, 83, 0.08), rgba(124, 92, 255, 0.06)); }
|
||||
.nebula-card-summary-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); }
|
||||
.nebula-card-summary-power { display: grid; justify-items: start; }
|
||||
.nebula-card-summary-power span, .nebula-card-summary-stats li > span { color: var(--color-text-secondary); font-size: var(--font-size-xs); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
|
||||
|
|
@ -688,7 +689,8 @@ $diffraction-glitter-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/
|
|||
.nebula-card-summary-stats li[data-trend="up"] strong { color: var(--color-success); }
|
||||
.nebula-card-summary-stats li[data-trend="down"] strong { color: var(--color-danger); }
|
||||
.nebula-card-summary-stats strong span { color: var(--color-text-secondary); }
|
||||
@media (max-width: 560px) { .nebula-card-summary-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
||||
// Quatre tuiles demandent environ 31,5rem : « Orientation » et son icône, les marges de chaque tuile et les espaces entre elles.
|
||||
@container (max-width: 31.5rem) { .nebula-card-summary-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
||||
|
||||
.nebula-dashboard { display: grid; gap: var(--space-5); min-width: 0; }
|
||||
.nds-section-heading.nebula-admin-section-heading { align-items: flex-start; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue