remove UI split (legacy/modern)

This commit is contained in:
Константин Лебединский
2026-04-30 21:53:49 +05:00
parent 1494b839f5
commit 0229bc250b
16 changed files with 107 additions and 384 deletions
+2 -46
View File
@@ -78,19 +78,9 @@ h3 {
}
/* ------------------------------------------------------------------ */
/* UI variants (оба режима на Flask, отличие только в компоновке UI). */
/* Кабинетный UI (класс body.ui-legacy на корне). */
/* ------------------------------------------------------------------ */
/* Modern: плотная колонка и акцент на карточный контент. */
body.ui-modern .max-w-2xl {
max-width: 42rem !important;
}
body.ui-modern main {
padding-top: 1.25rem;
}
/* Legacy: идентичный cabinet layout. */
body.ui-legacy .max-w-2xl {
max-width: 42rem !important;
}
@@ -1133,17 +1123,6 @@ body.ui-legacy .attempts-card-list {
border-color: color-mix(in srgb, var(--primary, #007168) 25%, transparent);
}
body.ui-modern .version-item {
background: #fff;
border-color: rgba(15, 23, 42, 0.08);
}
body.ui-modern .version-item[data-active="1"] {
background: color-mix(in srgb, var(--brand-600, #6366f1) 6%, #fff);
border-color: color-mix(in srgb, var(--brand-600, #6366f1) 28%, transparent);
}
body.ui-modern .version-item__badge {
background: var(--brand-600, #6366f1);
}
body.ui-legacy #versions-section {
padding: 0.75rem 1rem;
}
@@ -1176,7 +1155,7 @@ body.ui-legacy .attempts-card-list__action {
.attempt-review-page {
max-width: 42rem;
margin: 0 auto;
padding: 0 0.25rem 2rem;
padding: 0 0.25rem max(2rem, env(safe-area-inset-bottom, 0px));
width: 100%;
}
@@ -1442,14 +1421,6 @@ body.ui-legacy .attempts-card-list__action {
color: #14532d;
}
body.ui-modern .attempt-review-page {
padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px));
}
body.ui-modern .attempt-review-card {
border-color: rgba(15, 23, 42, 0.08);
}
body.ui-legacy .attempt-review-page {
padding-left: 0;
padding-right: 0;
@@ -1934,21 +1905,6 @@ body.ui-legacy .attempt-review-page {
color: #b42318;
}
body.ui-modern .attempt-result-card {
--attempt-result-fail-score: var(--brand-600, #6366f1);
}
body.ui-modern .attempt-result-verdict[data-passed="1"] .attempt-result-verdict__label {
color: var(--attempt-result-pass);
}
body.ui-modern .attempt-flow {
min-height: min(75dvh, 880px);
}
body.ui-modern .attempt-title {
font-size: 1.25rem;
}
body.ui-legacy .attempt-flow {
min-height: min(72dvh, 820px);
}