feat(styles): сегментированный переключатель VM/LXC + стили для readonly полей
This commit is contained in:
+10
-1
@@ -94,6 +94,15 @@ a:hover { color: var(--accent-hover); }
|
|||||||
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
|
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
|
||||||
.field label { font-weight: 500; }
|
.field label { font-weight: 500; }
|
||||||
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
|
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
|
||||||
|
.field input:disabled, .field input[readonly] { background: var(--surface); color: var(--text-muted); cursor: not-allowed; opacity: .8; }
|
||||||
|
|
||||||
|
.type-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
|
||||||
|
.type-tab { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 18px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); text-align: left; cursor: pointer; transition: .15s; }
|
||||||
|
.type-tab:hover { background: var(--surface-hover); }
|
||||||
|
.type-tab.active { background: var(--accent-soft); border-color: var(--accent); }
|
||||||
|
.type-tab-icon { font-size: 24px; line-height: 1; }
|
||||||
|
.type-tab-label { font-size: 16px; font-weight: 600; color: var(--text); }
|
||||||
|
.type-tab-desc { font-size: 12px; color: var(--text-muted); }
|
||||||
|
|
||||||
.error-box { margin-bottom: 16px; padding: 12px 16px; border-radius: var(--radius); background: var(--danger-soft); color: var(--danger); }
|
.error-box { margin-bottom: 16px; padding: 12px 16px; border-radius: var(--radius); background: var(--danger-soft); color: var(--danger); }
|
||||||
.success-box { margin-bottom: 16px; padding: 12px 16px; border-radius: var(--radius); background: var(--success-soft); color: var(--success); }
|
.success-box { margin-bottom: 16px; padding: 12px 16px; border-radius: var(--radius); background: var(--success-soft); color: var(--success); }
|
||||||
@@ -122,4 +131,4 @@ table.data-table td { border-bottom: 1px solid var(--border-soft); } table.data-
|
|||||||
.metric { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }.metric-bar { width: 70px; height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
|
.metric { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }.metric-bar { width: 70px; height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
|
||||||
.template-results { display: grid; gap: 24px; margin-top: 18px; }.template-results h4 { color: var(--text); margin: 0 0 10px; }.template-form { margin: 24px 0 32px; }.template-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }.muted { color: var(--text-muted); }
|
.template-results { display: grid; gap: 24px; margin-top: 18px; }.template-results h4 { color: var(--text); margin: 0 0 10px; }.template-form { margin: 24px 0 32px; }.template-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }.muted { color: var(--text-muted); }
|
||||||
|
|
||||||
@media (max-width: 768px) { .shell { flex-direction: column; }.sidebar { width: 100%; min-height: auto; position: relative; flex-direction: row; overflow-x: auto; }.sidebar-brand { display: none; }.sidebar-nav { flex-direction: row; }.sidebar-footer { flex-direction: row; border-top: 0; }.container { padding: 24px 20px 64px; }.form-row, .template-form-grid { grid-template-columns: 1fr; }.instance-grid { grid-template-columns: 1fr; }.page-title { font-size: 22px; } }
|
@media (max-width: 768px) { .shell { flex-direction: column; }.sidebar { width: 100%; min-height: auto; position: relative; flex-direction: row; overflow-x: auto; }.sidebar-brand { display: none; }.sidebar-nav { flex-direction: row; }.sidebar-footer { flex-direction: row; border-top: 0; }.container { padding: 24px 20px 64px; }.form-row, .template-form-grid { grid-template-columns: 1fr; }.instance-grid { grid-template-columns: 1fr; }.page-title { font-size: 22px; } .type-tabs { grid-template-columns: 1fr; } }
|
||||||
|
|||||||
Reference in New Issue
Block a user