Add Aniimo elemental matchup calculator
This commit is contained in:
parent
72b3b15c7e
commit
243465720f
15 changed files with 518 additions and 10 deletions
|
|
@ -1,7 +1,69 @@
|
|||
// Rôle : adapte les filtres et cartes Aniimo aux portraits verticaux et aux variantes.
|
||||
// Rôle : adapte les filtres, cartes et groupes d'affinités Aniimo.
|
||||
@use "design-system/surfaces";
|
||||
|
||||
.aniimo-home-card img { padding: 0 15%; object-fit: cover; object-position: 50% 38%; }
|
||||
.aniimo-elements-home-icon { position: relative; display: block; width: 116px; height: 90px; }
|
||||
.game-home-card .aniimo-elements-home-icon img {
|
||||
position: absolute;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: none;
|
||||
object-fit: contain;
|
||||
filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.34));
|
||||
&:first-child { top: 0; left: 34px; }
|
||||
&:nth-child(2) { right: 0; bottom: 0; }
|
||||
&:last-child { bottom: 0; left: 0; }
|
||||
}
|
||||
.aniimo-elements-guide { display: grid; gap: var(--space-5); }
|
||||
.aniimo-element-picker { display: grid; gap: var(--space-3); padding: var(--space-5); }
|
||||
.aniimo-element-picker-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3); }
|
||||
.aniimo-element-picker h2, .aniimo-matchup-panel h2 { margin: 0; font-size: var(--font-size-lg); }
|
||||
.aniimo-element-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: var(--space-3); }
|
||||
.aniimo-element-options .nds-button { min-width: 0; min-height: 96px; padding: var(--space-3) var(--space-2); }
|
||||
.aniimo-matchup-element { display: inline-flex; align-items: center; gap: var(--space-2); }
|
||||
.aniimo-matchup-element img { flex-shrink: 0; object-fit: contain; }
|
||||
.aniimo-element-options .aniimo-matchup-element, .aniimo-matchup-members .aniimo-matchup-element { flex-direction: column; }
|
||||
.aniimo-matchup-help { margin: 0; color: var(--color-text-secondary); font-size: var(--font-size-sm); }
|
||||
.aniimo-matchup-panels { display: grid; gap: var(--space-6); align-items: start; }
|
||||
.aniimo-matchup-panel {
|
||||
min-width: 0;
|
||||
padding: var(--space-5);
|
||||
container-type: inline-size;
|
||||
> p { color: var(--color-text-secondary); font-size: var(--font-size-sm); margin: var(--space-1) 0 var(--space-3); }
|
||||
}
|
||||
.aniimo-attack-element + .aniimo-attack-element { margin-top: var(--space-4); }
|
||||
.nds-section-heading.aniimo-skill-heading {
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
gap: var(--space-3);
|
||||
margin: 0 0 var(--space-2);
|
||||
padding: var(--space-2) var(--space-3);
|
||||
border-left: 2px solid var(--color-accent-gold);
|
||||
border-radius: var(--radius-md);
|
||||
background: linear-gradient(90deg, rgba(246, 196, 83, 0.08), rgba(139, 92, 246, 0.08));
|
||||
}
|
||||
.aniimo-skill-label { color: var(--color-text-secondary); font-size: var(--font-size-xs); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
|
||||
.aniimo-skill-element { flex-shrink: 0; }
|
||||
.aniimo-skill-element .aniimo-matchup-element { gap: 6px; color: var(--color-text-primary); font-size: var(--font-size-sm); }
|
||||
.aniimo-matchup-groups { display: grid; align-items: stretch; gap: var(--space-2); }
|
||||
.aniimo-matchup-groups[data-mode="attack"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
||||
.aniimo-matchup-groups[data-mode="defense"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
||||
.aniimo-matchup-box { min-width: 0; min-height: 112px; height: 100%; padding: var(--space-2); }
|
||||
.aniimo-matchup-box-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: var(--space-1); padding: var(--space-1) var(--space-1) 0; }
|
||||
.aniimo-matchup-box-heading :is(h3, h4) { margin: 0; font-size: var(--font-size-sm); }
|
||||
.aniimo-matchup-members { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2) var(--space-1); list-style: none; margin: var(--space-2) 0 0; padding: 0; }
|
||||
.aniimo-matchup-members .aniimo-matchup-element { width: 100%; min-width: 0; gap: var(--space-1); }
|
||||
.aniimo-matchup-members .aniimo-matchup-element > span { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.aniimo-matchup-members li { min-width: 0; text-align: center; font-size: 10px; }
|
||||
.aniimo-multiplier { white-space: nowrap; font-variant-numeric: tabular-nums; font-size: var(--font-size-xs); }
|
||||
@media (min-width: 1100px) {
|
||||
.aniimo-matchup-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||||
}
|
||||
@container (max-width: 460px) {
|
||||
.aniimo-matchup-groups[data-mode] { grid-template-columns: 1fr; }
|
||||
}
|
||||
.aniimo-layout .game-results { min-width: 0; }
|
||||
.aniimo-filters { min-width: 0; }
|
||||
.aniimo-filters .nds-filter-advanced-options { flex: 1 1 auto; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue