198 lines
7.1 KiB
SCSS
198 lines
7.1 KiB
SCSS
// Rôle : adapte les filtres et cartes Aniimo aux portraits verticaux et aux variantes.
|
|
@use "design-system/surfaces";
|
|
|
|
.aniimo-home-card img { padding: 0 15%; object-fit: cover; object-position: 50% 38%; }
|
|
.aniimo-layout .game-results { min-width: 0; }
|
|
.aniimo-filters { min-width: 0; }
|
|
.aniimo-filter-sections { gap: 16px; }
|
|
.aniimo-filter-section-surface + .aniimo-filter-section-surface { padding-top: 12px; border-top: 1px solid var(--color-border); }
|
|
.aniimo-filter-section {
|
|
min-width: 0;
|
|
margin: 0;
|
|
padding: 0;
|
|
border: 0;
|
|
legend { width: 100%; padding: 0; margin-bottom: 6px; }
|
|
}
|
|
.aniimo-filter-toggle.nds-button {
|
|
display: flex;
|
|
width: 100%;
|
|
justify-content: space-between;
|
|
padding-inline: 4px;
|
|
.ui-icon { width: 14px; height: 14px; }
|
|
}
|
|
.aniimo-selected-count { margin-left: auto; color: var(--color-accent-gold); }
|
|
.aniimo-filter-options {
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
.aniimo-chip-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
|
|
.aniimo-chip-options .filter-chip { min-width: 0; }
|
|
.aniimo-ability-options { gap: 2px; }
|
|
.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-levels-hint { margin: 4px 0; color: var(--color-text-muted); font-size: var(--font-size-xs); }
|
|
.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;
|
|
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; }
|
|
}
|
|
// Les deux portraits de Petit Esprit de Feu 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-face .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; }
|
|
}
|