209 lines
4.3 KiB
SCSS
209 lines
4.3 KiB
SCSS
// Rôle : porte l'historique détaillé du Randomizer.
|
|
.randomizer-history {
|
|
display: grid;
|
|
gap: var(--space-2);
|
|
align-content: start;
|
|
min-width: 0;
|
|
min-height: 132px;
|
|
max-height: 420px;
|
|
overflow: auto;
|
|
padding: 12px;
|
|
}
|
|
|
|
.randomizer-history.nds-scrollbox {
|
|
max-height: 420px;
|
|
}
|
|
|
|
.randomizer-history > header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--space-3);
|
|
padding: 8px;
|
|
}
|
|
|
|
.randomizer-history > header .randomizer-history-clear {
|
|
display: inline-flex;
|
|
flex: 0 0 auto;
|
|
width: auto;
|
|
min-width: 0;
|
|
justify-content: center;
|
|
padding-inline: 10px;
|
|
}
|
|
|
|
.randomizer-history h3 {
|
|
margin: 0;
|
|
color: var(--color-text-secondary);
|
|
font-size: var(--font-size-sm);
|
|
}
|
|
|
|
.randomizer-history .randomizer-list {
|
|
max-height: none;
|
|
overflow: visible;
|
|
padding: 0;
|
|
}
|
|
|
|
.randomizer-history-row {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr);
|
|
gap: 8px;
|
|
align-items: start;
|
|
min-height: 38px;
|
|
min-width: 0;
|
|
padding: 0;
|
|
overflow: visible;
|
|
}
|
|
|
|
.randomizer-history-row.has-action {
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
}
|
|
|
|
.randomizer-history-main {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) max-content;
|
|
align-items: center;
|
|
gap: var(--space-3);
|
|
min-width: 0;
|
|
min-height: 40px;
|
|
padding: 7px 12px;
|
|
border: 1px solid rgba(165, 180, 252, 0.12);
|
|
border-radius: var(--radius-sm);
|
|
background: rgba(12, 15, 30, 0.72);
|
|
}
|
|
|
|
.randomizer-history-value {
|
|
display: block;
|
|
min-width: 0;
|
|
color: var(--color-text-primary);
|
|
font-size: var(--font-size-sm);
|
|
font-weight: 800;
|
|
font-variant-numeric: tabular-nums;
|
|
overflow-wrap: anywhere;
|
|
line-height: 1.22;
|
|
}
|
|
|
|
.randomizer-history-row.is-latest .randomizer-history-main {
|
|
border-color: rgba(246, 196, 83, 0.68);
|
|
background:
|
|
radial-gradient(circle at 100% 0%, rgba(246, 196, 83, 0.08), transparent 36%),
|
|
rgba(12, 15, 30, 0.78);
|
|
}
|
|
|
|
.randomizer-history-row.is-latest .randomizer-history-value {
|
|
color: var(--color-accent-gold);
|
|
}
|
|
|
|
.randomizer-history-row time {
|
|
color: var(--color-text-muted);
|
|
font-size: var(--font-size-xs);
|
|
line-height: 1.22;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.randomizer-history-accordion {
|
|
display: block;
|
|
padding: 0;
|
|
}
|
|
|
|
.randomizer-history-accordion > summary {
|
|
display: grid;
|
|
grid-template-columns: 18px minmax(0, 1fr) max-content;
|
|
align-items: center;
|
|
gap: var(--space-3);
|
|
min-width: 0;
|
|
min-height: 40px;
|
|
padding: 7px 12px;
|
|
cursor: pointer;
|
|
list-style: none;
|
|
}
|
|
|
|
.randomizer-history-accordion > summary .ui-icon {
|
|
width: 16px;
|
|
height: 16px;
|
|
background: currentColor;
|
|
color: var(--color-text-muted);
|
|
transition: transform 160ms var(--ease-standard);
|
|
}
|
|
|
|
.randomizer-history-accordion[open] > summary .ui-icon {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
.randomizer-history-accordion > summary::-webkit-details-marker {
|
|
display: none;
|
|
}
|
|
|
|
.randomizer-history-teams {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
gap: 8px;
|
|
padding: 0 12px 12px;
|
|
}
|
|
|
|
.randomizer-history-team {
|
|
position: relative;
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) max-content;
|
|
gap: 4px 8px;
|
|
min-width: 0;
|
|
padding-left: 10px;
|
|
border-left: 1px solid rgba(165, 180, 252, 0.18);
|
|
}
|
|
|
|
.randomizer-history-team:nth-child(4n + 1) {
|
|
padding-left: 0;
|
|
border-left: 0;
|
|
}
|
|
|
|
.randomizer-history-teams.has-team-rows .randomizer-history-team:nth-child(4n + 5)::before {
|
|
content: "";
|
|
position: absolute;
|
|
top: -4px;
|
|
left: 0;
|
|
width: calc(400% + 24px);
|
|
border-top: 1px solid rgba(165, 180, 252, 0.14);
|
|
}
|
|
|
|
.randomizer-history-team strong {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
color: var(--color-text-primary);
|
|
font-size: var(--font-size-sm);
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.randomizer-history-team span {
|
|
color: var(--color-text-muted);
|
|
font-size: var(--font-size-xs);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.randomizer-history-team ul {
|
|
grid-column: 1 / -1;
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.randomizer-history-team li {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
color: var(--color-text-secondary);
|
|
font-size: var(--font-size-xs);
|
|
line-height: 1.35;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
@keyframes randomizer-player-drop {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-34px) scale(1.04);
|
|
}
|
|
|
|
65% {
|
|
opacity: 1;
|
|
transform: translateY(4px) scale(1);
|
|
}
|
|
}
|