UI: рандом фракции — убрана подпись «случайная», добавлена анимация-барабан названий в строке

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-26 16:56:12 +03:00
co-authored by Claude Opus 4.8
parent 1438a17441
commit 4d365a373b
2 changed files with 61 additions and 18 deletions
+21
View File
@@ -92,6 +92,27 @@ input:focus, select:focus, textarea:focus { border-color: var(--accent); }
.error-text { color: var(--danger); font-size: 13px; }
/* «Барабан» рандома фракции — мелькающее название вместо select */
.faction-spin {
display: flex;
align-items: center;
justify-content: center;
padding: 10px 12px;
border: 1px solid var(--accent);
border-radius: var(--radius-sm);
background: var(--surface-2);
color: var(--text);
font-weight: 700;
white-space: nowrap;
overflow: hidden;
animation: faction-roll 0.45s ease-in-out infinite;
}
@keyframes faction-roll {
0% { opacity: 0.5; transform: translateY(-3px); }
50% { opacity: 1; transform: translateY(0); }
100% { opacity: 0.5; transform: translateY(3px); }
}
/* Тумблер-переключатель (вкл/выкл) */
.switch { position: relative; display: inline-block; width: 44px; height: 26px; flex: 0 0 auto; }
.switch input {