300 lines
12 KiB
SCSS
300 lines
12 KiB
SCSS
// 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; }
|
||
.aniimo-prismana-filter span { white-space: nowrap; }
|
||
.aniimo-filters .aniimo-abilities-dropdown { flex-basis: 180px; min-width: 180px; }
|
||
.nds-filter-menu.aniimo-abilities-menu { width: min(680px, calc(100vw - 32px)); }
|
||
.aniimo-filter-options {
|
||
display: grid;
|
||
gap: 8px;
|
||
}
|
||
.aniimo-chip-options { gap: 6px; }
|
||
.aniimo-chip-options .filter-chip { min-width: 0; }
|
||
.aniimo-chip-options .nds-filter-menu-option[data-with-icons="false"] { grid-template-columns: 18px minmax(0, 1fr); }
|
||
.aniimo-ability-options { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px; overflow: visible; }
|
||
.aniimo-ability-column { display: grid; min-width: 0; align-content: start; gap: 6px; }
|
||
.aniimo-ability-column:first-child { padding-right: 12px; border-right: 1px solid var(--color-border); }
|
||
.aniimo-ability-list { display: grid; gap: 4px; }
|
||
.aniimo-ability-filter {
|
||
display: grid;
|
||
grid-template-columns: minmax(0, 1fr) minmax(64px, 1fr) 2ch;
|
||
align-items: center;
|
||
gap: 6px;
|
||
font-size: var(--font-size-xs);
|
||
label { display: flex; align-items: center; gap: 4px; min-width: 0; white-space: nowrap; }
|
||
img { flex-shrink: 0; object-fit: contain; }
|
||
&[data-active] .aniimo-minimum-value { color: var(--color-accent-gold); font-weight: 700; }
|
||
}
|
||
.aniimo-minimum-value { text-align: right; font-variant-numeric: tabular-nums; }
|
||
.aniimo-level-operator-icon {
|
||
display: block;
|
||
width: 20px;
|
||
height: 20px;
|
||
overflow: visible;
|
||
fill: none;
|
||
stroke: currentColor;
|
||
stroke-width: 1.5;
|
||
stroke-linecap: round;
|
||
stroke-linejoin: round;
|
||
shape-rendering: geometricPrecision;
|
||
}
|
||
@media (max-width: 560px) {
|
||
.aniimo-ability-options { gap: 8px; }
|
||
.aniimo-ability-column:first-child { padding-right: 8px; }
|
||
.aniimo-ability-filter { grid-template-columns: minmax(0, 1fr) 2ch; }
|
||
.aniimo-ability-filter label { grid-column: 1 / -1; }
|
||
}
|
||
@media (max-width: 760px) {
|
||
.nds-filter-menu.aniimo-abilities-menu { width: auto; }
|
||
}
|
||
.aniimo-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
|
||
.aniimo-result { min-width: 0; max-width: 280px; width: 100%; }
|
||
.aniimo-tabs-slot { height: 36px; min-width: 0; padding: 2px; }
|
||
.aniimo-tabs.nds-radio-button-group[data-size] {
|
||
display: grid;
|
||
grid-auto-columns: minmax(0, 1fr);
|
||
width: 100%;
|
||
padding: 2px;
|
||
button { min-width: 0; padding-inline: 0; white-space: nowrap; font-size: 11px; }
|
||
button[data-form="prismana_form"] {
|
||
position: relative;
|
||
background-image: linear-gradient(110deg,
|
||
color-mix(in srgb, var(--color-accent-pink) 16%, transparent),
|
||
color-mix(in srgb, var(--color-accent-gold) 16%, transparent),
|
||
color-mix(in srgb, var(--color-accent-cyan) 16%, transparent),
|
||
color-mix(in srgb, var(--color-primary) 16%, transparent));
|
||
&::after {
|
||
content: "";
|
||
position: absolute;
|
||
right: 4px;
|
||
bottom: 1px;
|
||
left: 4px;
|
||
height: 2px;
|
||
border-radius: var(--radius-pill);
|
||
background: linear-gradient(90deg, var(--color-accent-pink), var(--color-accent-gold), var(--color-accent-cyan), var(--color-primary));
|
||
opacity: 0.7;
|
||
pointer-events: none;
|
||
}
|
||
}
|
||
}
|
||
.aniimo-card { position: relative; perspective: 1200px; }
|
||
.aniimo-card-inner {
|
||
@include surfaces.flip-card-inner;
|
||
position: relative;
|
||
}
|
||
.aniimo-card:hover .aniimo-card-inner,
|
||
.aniimo-card:focus-within .aniimo-card-inner,
|
||
.aniimo-card.is-flipped .aniimo-card-inner { will-change: transform; }
|
||
.aniimo-card.is-flipped .aniimo-card-inner { transform: rotateY(180deg); }
|
||
.aniimo-face.nds-card {
|
||
@include surfaces.card-surface(rgba(16, 20, 38, 0.92));
|
||
min-width: 0;
|
||
contain: paint;
|
||
overflow: hidden;
|
||
backface-visibility: hidden;
|
||
}
|
||
.aniimo-card:hover .aniimo-face { @include surfaces.flip-card-face-hover; }
|
||
.aniimo-front { position: relative; display: flex; flex-direction: column; transform: rotateY(0deg); }
|
||
.aniimo-front .aniimo-card-body {
|
||
display: flex;
|
||
flex-direction: column;
|
||
flex: 0 0 96px;
|
||
height: 96px;
|
||
padding: 8px 12px;
|
||
h2 { line-height: 20px; }
|
||
.aniimo-form {
|
||
flex: 1;
|
||
margin: 2px 0 4px;
|
||
line-height: 14px;
|
||
white-space: normal;
|
||
overflow: visible;
|
||
text-overflow: clip;
|
||
}
|
||
}
|
||
.aniimo-back {
|
||
position: absolute;
|
||
inset: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
transform: rotateY(180deg);
|
||
}
|
||
.aniimo-back-heading { flex: 0 0 auto; }
|
||
.aniimo-back-details.nds-scrollbox[data-variant="ghost"] {
|
||
flex: 1 1 0;
|
||
min-height: 0;
|
||
max-height: none;
|
||
padding: 0 12px 12px;
|
||
overscroll-behavior: contain;
|
||
scrollbar-gutter: stable;
|
||
h3:first-child { margin-top: 0; }
|
||
> h3 { margin-top: var(--space-6); }
|
||
}
|
||
.aniimo-portrait {
|
||
@include surfaces.card-cover-divider;
|
||
position: relative;
|
||
aspect-ratio: 3 / 4;
|
||
max-height: 250px;
|
||
width: 100%;
|
||
flex: 0 0 auto;
|
||
overflow: hidden;
|
||
img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
|
||
}
|
||
.aniimo-portrait-placeholder {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: var(--space-3);
|
||
height: 100%;
|
||
color: var(--color-text-muted);
|
||
font-size: var(--font-size-sm);
|
||
}
|
||
.aniimo-region,
|
||
.aniimo-number {
|
||
position: absolute;
|
||
bottom: 10px;
|
||
left: 10px;
|
||
z-index: 2;
|
||
padding: 3px 7px;
|
||
border: 1px solid var(--color-border-hover);
|
||
border-radius: var(--radius-sm);
|
||
background: rgba(7, 9, 19, 0.82);
|
||
color: var(--color-text-primary);
|
||
font-size: var(--font-size-xs);
|
||
font-weight: 700;
|
||
font-variant-numeric: tabular-nums;
|
||
line-height: 1.2;
|
||
pointer-events: none;
|
||
}
|
||
.aniimo-region { top: 10px; bottom: auto; max-width: calc(100% - 20px); }
|
||
// Les deux portraits d’Elfe solidaire ont davantage de vide sous le personnage.
|
||
.aniimo-result[data-aniimo="11001"] .aniimo-portrait img { object-position: center 20%; }
|
||
.aniimo-card-body {
|
||
padding: 10px 12px;
|
||
h2 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--font-size-base); }
|
||
h3 { margin: 12px 0 6px; font-size: var(--font-size-sm); }
|
||
}
|
||
.aniimo-back h2 { padding-right: 30px; }
|
||
.aniimo-form { margin: 3px 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-text-muted); font-size: var(--font-size-xs); }
|
||
.aniimo-element-icons { display: flex; align-items: center; justify-content: center; gap: 8px; height: 24px; }
|
||
.aniimo-element-icons img { display: block; object-fit: contain; }
|
||
.aniimo-attributes { display: flex; flex-wrap: wrap; gap: 6px; }
|
||
.aniimo-attributes .nds-badge { display: inline-flex; align-items: center; gap: 4px; }
|
||
.aniimo-attributes img, .aniimo-abilities img { object-fit: contain; flex-shrink: 0; }
|
||
.aniimo-abilities {
|
||
display: grid;
|
||
gap: 8px;
|
||
margin: 0;
|
||
padding: 0;
|
||
list-style: none;
|
||
li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 6px; font-size: var(--font-size-sm); }
|
||
}
|
||
.aniimo-card > .aniimo-flip {
|
||
@include surfaces.flip-card-indicator;
|
||
min-width: 0;
|
||
min-height: 0;
|
||
padding: 0;
|
||
.ui-icon { width: 18px; height: 18px; }
|
||
}
|
||
.aniimo-card:hover .aniimo-flip { @include surfaces.flip-card-indicator-hover; }
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.aniimo-card-inner { transition: none; }
|
||
}
|
||
|
||
.aniimo-results-count [data-copy-target="true"] { color: var(--color-accent-gold); font-weight: 700; }
|
||
.aniimo-stats { display: grid; gap: 8px; }
|
||
.aniimo-stat { display: grid; grid-template-columns: 66px minmax(0, 1fr) 3ch; align-items: center; gap: 6px; font-size: var(--font-size-xs); }
|
||
.aniimo-stat-value { text-align: right; font-variant-numeric: tabular-nums; }
|
||
.aniimo-stat-total { display: flex; justify-content: space-between; gap: 8px; font-size: var(--font-size-sm); }
|
||
|
||
.aniimo-back-summary {
|
||
position: relative;
|
||
display: grid;
|
||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||
gap: var(--space-5);
|
||
&::before {
|
||
content: "";
|
||
position: absolute;
|
||
inset-block: 0;
|
||
left: 50%;
|
||
width: 1px;
|
||
background: color-mix(in srgb, var(--color-border) 50%, transparent);
|
||
pointer-events: none;
|
||
}
|
||
> div { min-width: 0; }
|
||
.nds-badge {
|
||
min-width: 0;
|
||
max-width: 100%;
|
||
padding: 4px 6px;
|
||
flex-wrap: nowrap;
|
||
font-size: var(--font-size-xs);
|
||
> span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
|
||
}
|
||
img { width: 18px; height: 18px; }
|
||
}
|