Files
PyQuest/app/css/progress.css
T
2026-10-16 16:10:46 +02:00

237 lines
4.1 KiB
CSS

/* Carte de progression (chemin sinueux de niveaux) et badges illustrés. */
.level-map {
position: relative;
margin: 1rem 0 1.5rem;
}
.level-map-path {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
overflow: visible;
}
.map-segment {
fill: none;
stroke: var(--border);
stroke-width: 3;
stroke-dasharray: 6 6;
stroke-linecap: round;
vector-effect: non-scaling-stroke;
}
.map-segment.is-done {
stroke: var(--accent);
stroke-width: 5;
stroke-dasharray: none;
}
.level-map-list {
list-style: none;
margin: 0;
padding: 0;
}
/* Le centre de la pastille se place sur le point du chemin (moitié de 3,25 rem de pastille). */
.map-item {
position: absolute;
width: 36%;
transform: translate(-50%, -1.625rem);
}
.level-button {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
padding: 0;
background: none;
border: 0;
border-radius: 0.5rem;
color: var(--text);
font: inherit;
cursor: pointer;
}
.node-badge {
display: grid;
place-items: center;
width: 3.25rem;
height: 3.25rem;
border: 3px solid var(--border);
border-radius: 50%;
background: var(--bg);
color: var(--text);
font-size: 1.2rem;
font-weight: 700;
}
.level-button.is-done .node-badge {
background: var(--accent);
border-color: var(--accent);
color: var(--accent-text);
}
.level-button.is-current .node-badge {
background: var(--surface);
border-color: var(--hl);
box-shadow: 0 0 0 4px color-mix(in srgb, var(--hl) 30%, transparent);
}
.level-button:hover .node-badge {
border-color: var(--accent);
}
.level-title {
margin-top: 0.3rem;
padding: 0.05rem 0.4rem 0;
background: var(--bg); /* masque le trait du chemin sous le texte */
border-radius: 0.25rem 0.25rem 0 0;
font-size: 0.9rem;
line-height: 1.25;
text-align: center;
}
.level-button.is-current .level-title {
font-weight: 700;
}
.level-state {
padding: 0 0.4rem 0.05rem;
background: var(--bg);
border-radius: 0 0 0.25rem 0.25rem;
color: var(--muted);
font-size: 0.8rem;
white-space: nowrap;
}
/* La chouette se tient à côté du niveau en cours. */
.map-owl {
position: absolute;
left: calc(50% + 1.9rem);
top: -0.9rem;
width: 2.6rem;
height: 2.6rem;
pointer-events: none;
}
.map-owl svg {
display: block;
width: 100%;
height: 100%;
}
/* Badges */
.badge-shelf {
margin-top: 1.5rem;
padding-top: 1rem;
border-top: 1px solid var(--border);
}
.badge-shelf-title {
margin: 0;
font-size: 1.1rem;
}
.badge-count {
margin: 0.25rem 0 0.75rem;
color: var(--muted);
}
.badge-list {
display: grid;
gap: 0.6rem;
margin: 0;
padding: 0;
list-style: none;
}
.badge-item {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.5rem 0.75rem;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 0.5rem;
}
.badge-medal {
flex: 0 0 3.5rem;
width: 3.5rem;
height: 3.5rem;
}
.badge-info {
display: flex;
flex-direction: column;
min-width: 0;
}
.badge-desc,
.badge-status {
color: var(--muted);
font-size: 0.85rem;
}
.badge-item.is-earned .badge-status {
color: var(--ok);
font-weight: 700;
}
.badge-art {
display: block;
width: 100%;
height: 100%;
}
.badge-ring {
fill: none;
stroke: var(--hl);
stroke-width: 3;
}
.badge-disc {
fill: var(--accent);
}
.badge-icon {
fill: var(--accent-text);
}
.badge-inner,
.badge-spark {
fill: var(--hl);
}
/* À débloquer : silhouette grise en pointillés. */
.badge-art.is-locked .badge-ring {
stroke: var(--border);
stroke-dasharray: 4 3;
}
.badge-art.is-locked .badge-disc {
fill: var(--surface);
stroke: var(--border);
stroke-width: 2;
}
.badge-art.is-locked .badge-icon {
fill: var(--muted);
opacity: 0.45;
}
.badge-art.is-locked .badge-inner,
.badge-art.is-locked .badge-spark {
fill: var(--muted);
opacity: 0.35;
}
.toast-badge {
flex: 0 0 2.75rem;
width: 2.75rem;
height: 2.75rem;
}