блоки 2 и 3 доработки интерфейса системы тестирования
This commit is contained in:
@@ -264,6 +264,20 @@ body.ui-legacy .btn-ghost:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
body.ui-legacy .btn-primary {
|
||||
background: var(--primary);
|
||||
color: #fff;
|
||||
border-color: var(--primary);
|
||||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
|
||||
}
|
||||
body.ui-legacy .btn-primary:hover {
|
||||
background: var(--primary-hover);
|
||||
border-color: var(--primary-hover);
|
||||
}
|
||||
body.ui-legacy .btn-primary:active {
|
||||
transform: translateY(0.5px);
|
||||
}
|
||||
|
||||
body.ui-legacy .text-muted {
|
||||
color: var(--on-surface-variant);
|
||||
font-size: 0.875rem;
|
||||
@@ -365,6 +379,52 @@ body.ui-legacy .callout--warning {
|
||||
color: #92400e;
|
||||
}
|
||||
|
||||
body.ui-legacy .callout--error {
|
||||
background: #fef2f2;
|
||||
border: 1px solid #fecaca;
|
||||
color: #991b1b;
|
||||
}
|
||||
|
||||
/* Страница входа (legacy) */
|
||||
body.ui-legacy .login-page {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
padding: 1rem 0;
|
||||
}
|
||||
body.ui-legacy .login-shell {
|
||||
width: 100%;
|
||||
max-width: 22rem;
|
||||
}
|
||||
body.ui-legacy .login-logo {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
margin-bottom: 1.25rem;
|
||||
}
|
||||
body.ui-legacy .login-logo .font-headline {
|
||||
margin: 0.5rem 0 0;
|
||||
font-size: 1.35rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
body.ui-legacy .login-card {
|
||||
background: var(--surface);
|
||||
border: 1px solid color-mix(in srgb, var(--outline-variant) 38%, transparent);
|
||||
border-radius: 1rem;
|
||||
padding: 1.35rem 1.25rem 1.5rem;
|
||||
box-shadow: var(--shadow-card);
|
||||
}
|
||||
body.ui-legacy .form-field + .form-field {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
body.ui-legacy .login-card .btn-primary {
|
||||
width: 100%;
|
||||
margin-top: 1rem;
|
||||
min-height: 2.65rem;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
body.ui-legacy .muted,
|
||||
body.ui-legacy .text-muted,
|
||||
body.ui-legacy .text-secondary {
|
||||
@@ -402,6 +462,16 @@ body.ui-legacy .form-input:focus {
|
||||
box-shadow: 0 0 0 3px rgba(0, 113, 104, 0.12);
|
||||
background: #fff;
|
||||
}
|
||||
body.ui-legacy select.form-input {
|
||||
appearance: none;
|
||||
-webkit-appearance: none;
|
||||
padding-right: 2.5rem;
|
||||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
|
||||
background-repeat: no-repeat;
|
||||
background-position: right 0.75rem center;
|
||||
background-size: 1rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
body.ui-legacy .surface-card {
|
||||
background: var(--surface);
|
||||
@@ -421,23 +491,53 @@ body.ui-legacy .cabinet-brick--hero {
|
||||
margin-bottom: 1.25rem;
|
||||
}
|
||||
|
||||
.hero-brick__nav {
|
||||
.hero-brick__meta-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: baseline;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.5rem;
|
||||
font-size: 0.85rem;
|
||||
align-items: baseline;
|
||||
gap: 0.35rem;
|
||||
margin-top: 0.5rem;
|
||||
font-size: 0.82rem;
|
||||
color: var(--ink-500, #6b7280);
|
||||
}
|
||||
.hero-brick__meta {
|
||||
.hero-brick__sep { opacity: 0.45; }
|
||||
|
||||
.hero-brick__divider {
|
||||
margin-top: 0.75rem;
|
||||
border-top: 1px solid color-mix(in srgb, var(--outline-variant, #e5e7eb) 60%, transparent);
|
||||
}
|
||||
|
||||
.hero-brick__tags {
|
||||
margin-top: 0.6rem;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.45rem;
|
||||
align-items: center;
|
||||
}
|
||||
.hero-brick__tag {
|
||||
display: inline-flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.4rem;
|
||||
align-items: baseline;
|
||||
color: var(--ink-500, #6b7280);
|
||||
align-items: center;
|
||||
gap: 0.3rem;
|
||||
font-size: 0.82rem;
|
||||
color: var(--ink-600, #4b5563);
|
||||
padding: 0.18rem 0.6rem;
|
||||
border-radius: 999px;
|
||||
background: color-mix(in srgb, var(--outline-variant, #e5e7eb) 35%, transparent);
|
||||
border: 1px solid color-mix(in srgb, var(--outline-variant, #e5e7eb) 65%, transparent);
|
||||
cursor: default;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.hero-brick__sep { opacity: 0.55; }
|
||||
.hero-brick__tag--toggle { cursor: pointer; }
|
||||
.hero-brick__tag--toggle:hover {
|
||||
background: color-mix(in srgb, var(--primary, #0d9488) 10%, transparent);
|
||||
border-color: color-mix(in srgb, var(--primary, #0d9488) 40%, transparent);
|
||||
}
|
||||
.hero-brick__tag input[type="checkbox"] {
|
||||
accent-color: var(--primary, #0d9488);
|
||||
cursor: pointer;
|
||||
}
|
||||
/* keep old chip classes for any stale references */
|
||||
.hero-brick__chips { display: none; }
|
||||
|
||||
.hero-brick__title {
|
||||
display: block;
|
||||
@@ -510,6 +610,41 @@ body.ui-legacy .cabinet-brick--hero {
|
||||
}
|
||||
.hero-brick__chip input[type="checkbox"] { accent-color: var(--primary, #0d9488); }
|
||||
|
||||
.q-item { transition: box-shadow .15s ease, transform .12s ease; }
|
||||
.q-item.q-dragging { opacity: 0.55; box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
|
||||
.q-item.q-drop-before { box-shadow: 0 -2px 0 0 var(--primary, #0d9488) inset; }
|
||||
.q-item.q-drop-after { box-shadow: 0 2px 0 0 var(--primary, #0d9488) inset; }
|
||||
.q-drag { cursor: grab; color: var(--ink-500, #6b7280); }
|
||||
.q-drag:active { cursor: grabbing; }
|
||||
|
||||
.q-item.q-removed > *:not(.q-removed-banner) { opacity: 0.45; }
|
||||
.q-item.q-removed .q-text,
|
||||
.q-item.q-removed .q-multi,
|
||||
.q-item.q-removed .q-options,
|
||||
.q-item.q-removed .q-add-option,
|
||||
.q-item.q-removed .q-ai,
|
||||
.q-item.q-removed .q-up,
|
||||
.q-item.q-removed .q-down,
|
||||
.q-item.q-removed .q-delete,
|
||||
.q-item.q-removed .q-drag {
|
||||
pointer-events: none;
|
||||
}
|
||||
.q-item.q-removed .q-text { text-decoration: line-through; }
|
||||
.q-removed-banner {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: .5rem;
|
||||
margin-bottom: .5rem;
|
||||
padding: .35rem .6rem;
|
||||
background: color-mix(in srgb, #fff7ed 65%, transparent);
|
||||
border: 1px solid color-mix(in srgb, #fbbf24 50%, transparent);
|
||||
border-radius: .5rem;
|
||||
color: #92400e;
|
||||
font-size: .85rem;
|
||||
}
|
||||
.q-removed-banner .q-restore { pointer-events: auto; }
|
||||
|
||||
body.ui-legacy .cabinet-disclosure {
|
||||
border: 1px solid color-mix(in srgb, var(--outline-variant) 30%, transparent);
|
||||
border-radius: 1rem;
|
||||
@@ -567,10 +702,167 @@ body.ui-legacy .cabinet-disclosure__summary-sub {
|
||||
}
|
||||
|
||||
body.ui-legacy .cabinet-disclosure__body {
|
||||
padding: 0.7rem 1rem 1.05rem;
|
||||
padding: 1rem 1rem 1.25rem;
|
||||
border-top: 1px solid color-mix(in srgb, var(--outline-variant) 35%, transparent);
|
||||
}
|
||||
|
||||
/* ─── Question textarea + char counter ──────────────────────────── */
|
||||
.q-text {
|
||||
padding-bottom: 1.6rem; /* space for counter */
|
||||
resize: none;
|
||||
overflow: hidden;
|
||||
line-height: 1.55;
|
||||
}
|
||||
.q-text-counter {
|
||||
font-size: 0.68rem;
|
||||
line-height: 1;
|
||||
bottom: 6px !important;
|
||||
right: 10px !important;
|
||||
}
|
||||
|
||||
/* ─── Question editor blocks (AI panel sections) ─────────────────── */
|
||||
body.ui-legacy .question-editor-block {
|
||||
padding-top: 1rem;
|
||||
margin-top: 1rem;
|
||||
border-top: 1px solid color-mix(in srgb, var(--outline-variant) 28%, transparent);
|
||||
}
|
||||
body.ui-legacy .question-editor-block--first {
|
||||
padding-top: 0;
|
||||
margin-top: 0;
|
||||
border-top: none;
|
||||
}
|
||||
body.ui-legacy .test-detail-subsection__title {
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
margin-bottom: 0.6rem;
|
||||
color: var(--ink-900, #111827);
|
||||
}
|
||||
body.ui-legacy .test-detail-ai-panel {
|
||||
padding: 1rem 1.1rem 1.1rem;
|
||||
margin-bottom: 1.25rem;
|
||||
}
|
||||
|
||||
/* ─── Option row alignment ───────────────────────────────────────── */
|
||||
.question-option-row {
|
||||
align-items: flex-start;
|
||||
}
|
||||
.question-option-row__mark-wrap {
|
||||
padding-top: 0.45rem; /* align checkbox with first line of textarea */
|
||||
}
|
||||
.opt-text {
|
||||
line-height: 1.55;
|
||||
}
|
||||
.opt-delete {
|
||||
margin-top: 0.2rem;
|
||||
}
|
||||
|
||||
/* ─── Question AI overlay ────────────────────────────────────────── */
|
||||
.q-ai-overlay {
|
||||
transition: opacity 0.15s;
|
||||
}
|
||||
.q-item[style*="pointer-events: none"] .q-text,
|
||||
.q-item[style*="pointer-events: none"] .opt-text {
|
||||
opacity: 0.45;
|
||||
}
|
||||
|
||||
/* ─── Drag-and-drop import dropzone ─────────────────────────────── */
|
||||
.import-dropzone {
|
||||
transition: border-color 0.15s, background-color 0.15s;
|
||||
}
|
||||
.import-dropzone--over {
|
||||
border-color: var(--brand-500, #6366f1) !important;
|
||||
background-color: color-mix(in srgb, var(--brand-100, #e0e7ff) 40%, transparent) !important;
|
||||
}
|
||||
.import-dropzone--loading {
|
||||
opacity: 0.6;
|
||||
pointer-events: none;
|
||||
}
|
||||
.import-dropzone--loading .material-symbols-outlined {
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
.import-dropzone--done {
|
||||
border-style: solid;
|
||||
border-color: var(--primary, #007168) !important;
|
||||
background-color: color-mix(in srgb, var(--primary, #007168) 6%, transparent) !important;
|
||||
pointer-events: none;
|
||||
}
|
||||
@keyframes spin { to { transform: rotate(360deg); } }
|
||||
|
||||
/* ─── Import modal (compact, like save-modal) ───────────────────── */
|
||||
.save-modal {
|
||||
padding: 0;
|
||||
margin: 3rem auto auto;
|
||||
border: none;
|
||||
border-radius: 1rem;
|
||||
background: #fff;
|
||||
box-shadow: 0 8px 32px rgba(0,0,0,.18);
|
||||
max-width: 26rem;
|
||||
width: calc(100% - 2rem);
|
||||
}
|
||||
.save-modal::backdrop {
|
||||
background: rgba(0,0,0,.4);
|
||||
}
|
||||
.save-modal__inner {
|
||||
padding: 1.25rem 1.25rem 1rem;
|
||||
}
|
||||
|
||||
.settings-grid {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.65rem;
|
||||
}
|
||||
.settings-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
padding: 0.4rem 0.25rem;
|
||||
border-bottom: 1px dashed color-mix(in srgb, var(--outline-variant) 30%, transparent);
|
||||
}
|
||||
.settings-row:last-child { border-bottom: none; }
|
||||
.settings-row--block {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
gap: 0.4rem;
|
||||
border: 1px solid color-mix(in srgb, var(--outline-variant) 30%, transparent);
|
||||
border-radius: 0.75rem;
|
||||
padding: 0.6rem 0.75rem;
|
||||
}
|
||||
.settings-row__label {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
font-size: 0.92rem;
|
||||
color: var(--ink-700, #2c3a37);
|
||||
gap: 0.1rem;
|
||||
}
|
||||
.settings-row__hint {
|
||||
font-size: 0.78rem;
|
||||
color: #6b7d79;
|
||||
font-weight: 400;
|
||||
}
|
||||
.settings-row__input {
|
||||
width: 6.5rem;
|
||||
text-align: right;
|
||||
border-radius: 0.6rem;
|
||||
border: 1px solid var(--ink-300, #c8d2cf);
|
||||
padding: 0.5rem 0.75rem;
|
||||
background: white;
|
||||
}
|
||||
.settings-row__input:focus {
|
||||
outline: none;
|
||||
border-color: var(--brand-500, #2bb39a);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-500, #2bb39a) 18%, transparent);
|
||||
}
|
||||
.settings-radio {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 0.55rem;
|
||||
cursor: pointer;
|
||||
font-size: 0.92rem;
|
||||
padding: 0.25rem 0;
|
||||
}
|
||||
.settings-radio input { margin-top: 0.2rem; }
|
||||
|
||||
body.ui-legacy .test-detail-subsection {
|
||||
margin-top: 1.25rem;
|
||||
padding-top: 1.15rem;
|
||||
@@ -584,8 +876,8 @@ body.ui-legacy .test-detail-subsection--tight {
|
||||
}
|
||||
|
||||
body.ui-legacy .test-detail-subsection__title {
|
||||
margin: 0 0 0.35rem;
|
||||
font-size: 0.95rem;
|
||||
margin: 0 0 0.5rem;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
@@ -597,8 +889,8 @@ body.ui-legacy .test-detail-hint {
|
||||
}
|
||||
|
||||
body.ui-legacy .test-detail-ai-panel {
|
||||
padding: 0.9rem 1rem;
|
||||
margin-bottom: 1.15rem;
|
||||
padding: 1rem 1.1rem 1.1rem;
|
||||
margin-bottom: 1.25rem;
|
||||
background: var(--surface-container-low);
|
||||
border: 1px solid color-mix(in srgb, var(--outline-variant) 32%, transparent);
|
||||
border-radius: 0.85rem;
|
||||
@@ -666,3 +958,69 @@ body.ui-legacy .attempts-card-list {
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
/* ─── Version items (compact row in top section) ─────────────────── */
|
||||
body.ui-legacy .version-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
padding: 0.5rem 0.75rem;
|
||||
border-radius: 0.6rem;
|
||||
background: var(--surface-container-low, #f5f5f5);
|
||||
border: 1px solid var(--outline-variant, #e0e0e0);
|
||||
}
|
||||
body.ui-legacy .version-item[data-active="1"] {
|
||||
background: color-mix(in srgb, var(--primary, #007168) 8%, white);
|
||||
border-color: color-mix(in srgb, var(--primary, #007168) 25%, transparent);
|
||||
}
|
||||
body.ui-legacy .version-item__label {
|
||||
font-weight: 600;
|
||||
font-size: 0.875rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
body.ui-legacy .version-item__badge {
|
||||
font-size: 0.65rem;
|
||||
font-weight: 500;
|
||||
padding: 0.1rem 0.4rem;
|
||||
border-radius: 999px;
|
||||
background: var(--primary, #007168);
|
||||
color: #fff;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.03em;
|
||||
}
|
||||
body.ui-legacy .version-item__date {
|
||||
font-size: 0.78rem;
|
||||
flex: 1;
|
||||
}
|
||||
body.ui-legacy .version-item__spacer {
|
||||
width: 1px;
|
||||
}
|
||||
body.ui-legacy #versions-section {
|
||||
padding: 0.75rem 1rem;
|
||||
}
|
||||
body.ui-legacy .attempts-card-list__item {
|
||||
padding: 0.75rem 1rem;
|
||||
}
|
||||
body.ui-legacy .attempts-card-list__row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
body.ui-legacy .attempts-card-list__main {
|
||||
flex: 1 1 0;
|
||||
min-width: 0;
|
||||
}
|
||||
body.ui-legacy .attempts-card-list__main p {
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
body.ui-legacy .attempts-card-list__main p + p {
|
||||
margin-top: 0.2rem;
|
||||
}
|
||||
body.ui-legacy .attempts-card-list__action {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user