UI: дополнения группы — горизонтальные тумблеры вместо галочек; строка базовой игры скрыта

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-26 16:43:10 +03:00
co-authored by Claude Opus 4.8
parent c39c96d5dc
commit cd7e5d16b4
2 changed files with 51 additions and 15 deletions
+33
View File
@@ -92,6 +92,39 @@ input:focus, select:focus, textarea:focus { border-color: var(--accent); }
.error-text { color: var(--danger); font-size: 13px; }
/* Тумблер-переключатель (вкл/выкл) */
.switch { position: relative; display: inline-block; width: 44px; height: 26px; flex: 0 0 auto; }
.switch input {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
margin: 0;
opacity: 0;
cursor: pointer;
}
.switch-track {
display: inline-flex;
align-items: center;
width: 44px;
height: 26px;
padding: 2px;
border-radius: 999px;
background: var(--surface-2);
border: 1px solid var(--border);
transition: background 0.15s ease, border-color 0.15s ease;
}
.switch-thumb {
width: 20px;
height: 20px;
border-radius: 50%;
background: var(--text);
transition: transform 0.15s ease;
}
.switch input:checked + .switch-track { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(18px); background: #fff; }
.switch input:disabled + .switch-track { opacity: 0.5; }
.toast {
position: fixed;
left: 50%;