Add Aniimo guides and link game cards to toolbox checklists
Some checks failed
Deploy Sokko G / deploy (push) Failing after 3s
Some checks failed
Deploy Sokko G / deploy (push) Failing after 3s
This commit is contained in:
parent
f0797ccf14
commit
13434f72f6
278 changed files with 10025 additions and 57 deletions
198
website/src/styles/_aniimo.scss
Normal file
198
website/src/styles/_aniimo.scss
Normal file
|
|
@ -0,0 +1,198 @@
|
|||
// 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; }
|
||||
}
|
||||
|
|
@ -52,8 +52,7 @@
|
|||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
transform-style: preserve-3d;
|
||||
transition: transform 420ms var(--ease-standard);
|
||||
@include surfaces.flip-card-inner;
|
||||
}
|
||||
|
||||
.monster-card:hover .mhwilds-card-inner,
|
||||
|
|
@ -86,27 +85,8 @@
|
|||
}
|
||||
|
||||
.mhwilds-flip-indicator {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
z-index: 2;
|
||||
display: grid;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
place-items: center;
|
||||
border: 1px solid rgba(165, 180, 252, 0.12);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(7, 10, 24, 0.36);
|
||||
color: var(--color-text-muted);
|
||||
@include surfaces.flip-card-indicator;
|
||||
pointer-events: none;
|
||||
box-shadow: none;
|
||||
opacity: 0.78;
|
||||
transition:
|
||||
border-color var(--duration-fast) var(--ease-standard),
|
||||
background-color var(--duration-fast) var(--ease-standard),
|
||||
color var(--duration-fast) var(--ease-standard),
|
||||
opacity var(--duration-fast) var(--ease-standard),
|
||||
box-shadow var(--duration-fast) var(--ease-standard);
|
||||
}
|
||||
|
||||
.mhwilds-flip-indicator .ui-icon {
|
||||
|
|
@ -123,21 +103,11 @@
|
|||
}
|
||||
|
||||
.monster-card:hover .mhwilds-flip-indicator {
|
||||
border-color: rgba(196, 181, 253, 0.22);
|
||||
background: rgba(16, 20, 38, 0.52);
|
||||
color: #c4b5fd;
|
||||
opacity: 1;
|
||||
box-shadow: 0 0 12px rgba(139, 92, 246, 0.1);
|
||||
@include surfaces.flip-card-indicator-hover;
|
||||
}
|
||||
|
||||
.monster-card:hover .mhwilds-card-face {
|
||||
@include surfaces.card-surface-hover(
|
||||
rgba(16, 20, 38, 0.95),
|
||||
rgba(139, 92, 246, 0.76),
|
||||
rgba(196, 181, 253, 0.58),
|
||||
0 0 14px rgba(139, 92, 246, 0.14),
|
||||
0 0 24px rgba(196, 181, 253, 0.08)
|
||||
);
|
||||
@include surfaces.flip-card-face-hover;
|
||||
}
|
||||
|
||||
.mhwilds-card-art {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
// Rôle : assemble l'API publique NDS par classes de famille et attributs data-*.
|
||||
@use "attributes/fields";
|
||||
@use "attributes/ranges";
|
||||
@use "attributes/buttons";
|
||||
@use "attributes/steppers";
|
||||
@use "attributes/switches";
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
// Rôle : expose les mixins publics des contrôles interactifs.
|
||||
@forward "controls/fields";
|
||||
@forward "controls/ranges";
|
||||
@forward "controls/buttons";
|
||||
@forward "controls/steppers";
|
||||
@forward "controls/switches";
|
||||
|
|
|
|||
|
|
@ -29,3 +29,49 @@
|
|||
@mixin card-cover-divider {
|
||||
border-bottom: 1px solid rgba(246, 196, 83, 0.42);
|
||||
}
|
||||
|
||||
@mixin flip-card-inner {
|
||||
transform-style: preserve-3d;
|
||||
transition: transform 420ms var(--ease-standard);
|
||||
}
|
||||
|
||||
@mixin flip-card-indicator {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
z-index: 2;
|
||||
display: grid;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
place-items: center;
|
||||
border: 1px solid rgba(165, 180, 252, 0.12);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(7, 10, 24, 0.36);
|
||||
color: var(--color-text-muted);
|
||||
box-shadow: none;
|
||||
opacity: 0.78;
|
||||
transition:
|
||||
border-color var(--duration-fast) var(--ease-standard),
|
||||
background-color var(--duration-fast) var(--ease-standard),
|
||||
color var(--duration-fast) var(--ease-standard),
|
||||
opacity var(--duration-fast) var(--ease-standard),
|
||||
box-shadow var(--duration-fast) var(--ease-standard);
|
||||
}
|
||||
|
||||
@mixin flip-card-indicator-hover {
|
||||
border-color: rgba(196, 181, 253, 0.22);
|
||||
background: rgba(16, 20, 38, 0.52);
|
||||
color: #c4b5fd;
|
||||
opacity: 1;
|
||||
box-shadow: 0 0 12px rgba(139, 92, 246, 0.1);
|
||||
}
|
||||
|
||||
@mixin flip-card-face-hover {
|
||||
@include card-surface-hover(
|
||||
rgba(16, 20, 38, 0.95),
|
||||
rgba(139, 92, 246, 0.76),
|
||||
rgba(196, 181, 253, 0.58),
|
||||
0 0 14px rgba(139, 92, 246, 0.14),
|
||||
0 0 24px rgba(196, 181, 253, 0.08)
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -99,9 +99,11 @@
|
|||
}
|
||||
|
||||
.nds-chip[data-size="sm"] {
|
||||
min-height: 34px;
|
||||
padding: 5px 10px;
|
||||
min-height: 30px;
|
||||
padding: 4px 8px;
|
||||
gap: 4px;
|
||||
font-size: var(--font-size-xs);
|
||||
> img, > .ui-icon { width: 16px; height: 16px; }
|
||||
}
|
||||
|
||||
.nds-empty-state {
|
||||
|
|
@ -128,6 +130,10 @@
|
|||
@include controls.progress-pattern;
|
||||
}
|
||||
|
||||
.nds-progress[data-size="sm"] {
|
||||
@include controls.progress-pattern(sm);
|
||||
}
|
||||
|
||||
.nds-progress > span,
|
||||
.nds-progress-bar {
|
||||
@include controls.progress-bar-pattern;
|
||||
|
|
|
|||
5
website/src/styles/design-system/attributes/_ranges.scss
Normal file
5
website/src/styles/design-system/attributes/_ranges.scss
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
// Rôle : expose la primitive publique nds-range en tailles md et sm.
|
||||
@use "../controls";
|
||||
|
||||
.nds-range { @include controls.range-control; }
|
||||
.nds-range[data-size="sm"] { @include controls.range-control(sm); }
|
||||
|
|
@ -31,6 +31,7 @@
|
|||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.nds-range:focus-visible,
|
||||
.nds-input:focus-visible,
|
||||
.nds-time:focus-visible,
|
||||
.nds-select:focus-visible,
|
||||
|
|
@ -49,6 +50,7 @@
|
|||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
.nds-range:disabled,
|
||||
.nds-button:disabled,
|
||||
.nds-icon-button:disabled,
|
||||
.nds-quantity-stepper button:disabled,
|
||||
|
|
|
|||
|
|
@ -205,10 +205,11 @@
|
|||
}
|
||||
}
|
||||
|
||||
@mixin progress-pattern {
|
||||
@mixin progress-pattern($size: md) {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 8px;
|
||||
height: var(--space-2);
|
||||
@if $size == sm { height: calc(var(--space-2) / 2); }
|
||||
overflow: hidden;
|
||||
border: 1px solid rgba(165, 180, 252, 0.1);
|
||||
border-radius: var(--radius-pill);
|
||||
|
|
|
|||
48
website/src/styles/design-system/controls/_ranges.scss
Normal file
48
website/src/styles/design-system/controls/_ranges.scss
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
// Rôle : définit les curseurs natifs NDS et leurs tailles sans modifier leur comportement clavier.
|
||||
@mixin range-track {
|
||||
height: 6px;
|
||||
border: 1px solid var(--color-border-hover);
|
||||
border-radius: var(--radius-pill);
|
||||
background: var(--color-primary-soft);
|
||||
}
|
||||
|
||||
@mixin range-thumb($size) {
|
||||
box-sizing: border-box;
|
||||
width: $size;
|
||||
height: $size;
|
||||
border: 2px solid var(--color-accent-gold);
|
||||
border-radius: 50%;
|
||||
background: var(--color-primary);
|
||||
}
|
||||
|
||||
@mixin range-control($size: md) {
|
||||
$thumb: 20px;
|
||||
$height: 44px;
|
||||
@if $size == sm {
|
||||
$thumb: 18px;
|
||||
$height: 36px;
|
||||
}
|
||||
appearance: none;
|
||||
display: block;
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
height: $height;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: var(--radius-sm);
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
accent-color: var(--color-primary);
|
||||
|
||||
&::-webkit-slider-runnable-track { @include range-track; }
|
||||
&::-moz-range-track { @include range-track; }
|
||||
&::-webkit-slider-thumb {
|
||||
@include range-thumb($thumb);
|
||||
appearance: none;
|
||||
margin-top: calc((4px - #{$thumb}) / 2);
|
||||
}
|
||||
&::-moz-range-thumb { @include range-thumb($thumb); }
|
||||
&:hover:not(:disabled)::-webkit-slider-thumb { background: var(--color-primary-hover); }
|
||||
&:hover:not(:disabled)::-moz-range-thumb { background: var(--color-primary-hover); }
|
||||
}
|
||||
32
website/src/styles/games/_checklist.scss
Normal file
32
website/src/styles/games/_checklist.scss
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
// Rôle : présente la liaison checklist et l'état terminé communs aux cartes de guides.
|
||||
.guide-checklist-controls {
|
||||
display: grid;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
gap: var(--space-3);
|
||||
margin-bottom: var(--space-4);
|
||||
padding: var(--space-3);
|
||||
min-width: 0;
|
||||
.field { min-width: 0; margin: 0; }
|
||||
select { width: 100%; min-width: 0; }
|
||||
p { margin: 0; color: var(--color-text-muted); font-size: var(--font-size-sm); }
|
||||
.nds-switch { max-width: 100%; }
|
||||
.guide-checklist-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-3); }
|
||||
}
|
||||
.guide-checklist-mark {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
left: 10px;
|
||||
z-index: 2;
|
||||
pointer-events: none;
|
||||
}
|
||||
.endemic-card, .diablo4-affix-card { position: relative; }
|
||||
.diablo4-affix-card .guide-checklist-mark,
|
||||
.aniimo-back .guide-checklist-mark { top: auto; left: auto; right: 10px; bottom: 10px; }
|
||||
.mhwilds-card-back .guide-checklist-mark { left: auto; right: 50px; }
|
||||
.diablo4-affix-card .diablo4-category-list { padding-right: 24px; }
|
||||
[data-checklist-complete="true"] {
|
||||
.aniimo-back-details.nds-scrollbox[data-variant] { padding-bottom: 36px; }
|
||||
.aniimo-portrait img, .mhwilds-card-art img { filter: grayscale(1); opacity: 0.55; }
|
||||
.diablo4-category-icon { filter: grayscale(1); opacity: 0.55; }
|
||||
}
|
||||
|
|
@ -83,3 +83,8 @@
|
|||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.filter-chip[data-size="sm"] {
|
||||
grid-template-columns: 16px 16px minmax(0, 1fr);
|
||||
span { font-size: inherit; }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -238,3 +238,8 @@
|
|||
mask-image: url("/static/icons/back.svg");
|
||||
-webkit-mask-image: url("/static/icons/back.svg");
|
||||
}
|
||||
|
||||
.ui-icon-multiple {
|
||||
mask-image: url("/static/icons/multiples.svg");
|
||||
-webkit-mask-image: url("/static/icons/multiples.svg");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,5 +13,7 @@
|
|||
@use "overlays";
|
||||
@use "mhwilds";
|
||||
@use "diablo4";
|
||||
@use "aniimo";
|
||||
@use "games/checklist";
|
||||
@use "design-system/attributes";
|
||||
@use "responsive";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue