Обновление файла
This commit is contained in:
+414
-52
@@ -2,12 +2,13 @@
|
||||
Proxmox VPS Panel — UI
|
||||
Linear / Vercel-style: чистые формы, тонкие тени, Inter,
|
||||
один акцент, без рамок, много воздуха.
|
||||
Dashboard-стиль с боковой навигацией.
|
||||
============================================================ */
|
||||
|
||||
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
|
||||
|
||||
:root {
|
||||
/* Базовые цвета — нейтральная светлая серая шкала (как Linear/Vercel) */
|
||||
/* Базовые цвета — нейтральная светлая серая шкала */
|
||||
--bg: #fafafa;
|
||||
--surface: #ffffff;
|
||||
--surface-2: #f5f5f5;
|
||||
@@ -18,11 +19,11 @@
|
||||
--text-muted: #6b7280;
|
||||
--text-dim: #9ca3af;
|
||||
|
||||
/* Границы — почти невидимые, заменены на тени */
|
||||
/* Границы */
|
||||
--border: rgba(0, 0, 0, 0.06);
|
||||
--border-soft: rgba(0, 0, 0, 0.04);
|
||||
|
||||
/* Один акцент — Inter-style синий */
|
||||
/* Один акцент */
|
||||
--accent: #0070f3;
|
||||
--accent-hover: #005ad1;
|
||||
--accent-soft: rgba(0, 112, 243, 0.08);
|
||||
@@ -36,7 +37,7 @@
|
||||
--danger: #ef4444;
|
||||
--danger-soft: rgba(239, 68, 68, 0.08);
|
||||
|
||||
/* Тени — мягкие, реалистичные */
|
||||
/* Тени */
|
||||
--shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
|
||||
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
|
||||
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
|
||||
@@ -82,93 +83,270 @@ a {
|
||||
a:hover { color: var(--accent-hover); }
|
||||
|
||||
/* ============================================================
|
||||
Layout
|
||||
Layout shell — горизонтальный: sidebar + main
|
||||
============================================================ */
|
||||
|
||||
.shell {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-direction: row;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.topbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 18px 32px;
|
||||
/* ============================================================
|
||||
Sidebar — боковая навигация
|
||||
============================================================ */
|
||||
|
||||
.sidebar {
|
||||
width: 240px;
|
||||
background: var(--surface);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-shrink: 0;
|
||||
border-right: 1px solid var(--border-soft);
|
||||
height: 100vh;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 10;
|
||||
box-shadow: var(--shadow-xs);
|
||||
}
|
||||
|
||||
.brand {
|
||||
font-weight: 600;
|
||||
letter-spacing: -0.01em;
|
||||
font-size: 15px;
|
||||
.sidebar-brand {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 22px 20px;
|
||||
border-bottom: 1px solid var(--border-soft);
|
||||
}
|
||||
|
||||
.sidebar-brand-mark {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border-radius: 8px;
|
||||
background: var(--accent);
|
||||
color: var(--accent-text);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-weight: 700;
|
||||
font-size: 13px;
|
||||
box-shadow: 0 1px 3px rgba(0, 112, 243, 0.3);
|
||||
}
|
||||
|
||||
.sidebar-brand-text {
|
||||
font-weight: 600;
|
||||
font-size: 15px;
|
||||
letter-spacing: -0.01em;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.brand .prompt {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
border-radius: 6px;
|
||||
background: var(--accent);
|
||||
color: var(--accent-text);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
.sidebar-nav {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 12px 12px;
|
||||
gap: 2px;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.topbar-right {
|
||||
.sidebar-nav .nav-link {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
font-size: 14px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.topbar-right a {
|
||||
color: var(--text-muted);
|
||||
padding: 8px 14px;
|
||||
gap: 10px;
|
||||
padding: 9px 12px;
|
||||
border-radius: var(--radius-sm);
|
||||
color: var(--text-muted);
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
transition: all 0.15s ease;
|
||||
text-decoration: none;
|
||||
}
|
||||
.topbar-right a:hover {
|
||||
|
||||
.sidebar-nav .nav-link:hover {
|
||||
background: var(--surface-2);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.topbar-right .badge {
|
||||
margin: 0 8px;
|
||||
.sidebar-nav .nav-link.active {
|
||||
background: var(--accent-soft);
|
||||
color: var(--accent);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.sidebar-nav .nav-link svg {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.sidebar-footer {
|
||||
padding: 14px;
|
||||
border-top: 1px solid var(--border-soft);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.sidebar-user {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 8px;
|
||||
border-radius: var(--radius-sm);
|
||||
}
|
||||
|
||||
.sidebar-user-avatar {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border-radius: 50%;
|
||||
background: var(--surface-2);
|
||||
color: var(--text);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-weight: 600;
|
||||
font-size: 13px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.sidebar-user-info {
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.sidebar-user-email {
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
color: var(--text);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.sidebar-user-role {
|
||||
font-size: 11px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.btn-logout {
|
||||
width: 100%;
|
||||
background: transparent;
|
||||
color: var(--text-muted);
|
||||
box-shadow: none;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.btn-logout:hover {
|
||||
background: var(--danger-soft);
|
||||
color: var(--danger);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
Main + container
|
||||
============================================================ */
|
||||
|
||||
.main {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
background: var(--bg);
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 48px 32px 80px;
|
||||
padding: 40px 32px 80px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.dashboard-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 28px;
|
||||
flex-wrap: wrap;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.page-title {
|
||||
font-size: 28px;
|
||||
font-weight: 600;
|
||||
letter-spacing: -0.02em;
|
||||
margin: 0 0 8px;
|
||||
margin: 0 0 6px;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.page-sub {
|
||||
color: var(--text-muted);
|
||||
margin: 0 0 36px;
|
||||
font-size: 15px;
|
||||
margin: 0;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
Stats cards — виджеты на дашборде
|
||||
============================================================ */
|
||||
|
||||
.stats-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
||||
gap: 16px;
|
||||
margin-bottom: 28px;
|
||||
}
|
||||
|
||||
.stat-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
padding: 18px 20px;
|
||||
background: var(--surface);
|
||||
border-radius: var(--radius-lg);
|
||||
box-shadow: var(--shadow-sm);
|
||||
transition: box-shadow 0.15s ease;
|
||||
}
|
||||
|
||||
.stat-card:hover {
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
.stat-card-icon {
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
border-radius: var(--radius);
|
||||
background: var(--surface-2);
|
||||
color: var(--text-muted);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.stat-success .stat-card-icon {
|
||||
background: var(--success-soft);
|
||||
color: var(--success);
|
||||
}
|
||||
|
||||
.stat-muted .stat-card-icon {
|
||||
background: var(--surface-2);
|
||||
color: var(--text-dim);
|
||||
}
|
||||
|
||||
.stat-danger .stat-card-icon {
|
||||
background: var(--danger-soft);
|
||||
color: var(--danger);
|
||||
}
|
||||
|
||||
.stat-card-body { min-width: 0; }
|
||||
|
||||
.stat-card-label {
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.04em;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.stat-card-value {
|
||||
font-size: 24px;
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
letter-spacing: -0.02em;
|
||||
line-height: 1.2;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
@@ -244,7 +422,161 @@ a:hover { color: var(--accent-hover); }
|
||||
.card + .card { margin-top: 16px; }
|
||||
|
||||
/* ============================================================
|
||||
Forms
|
||||
Create form
|
||||
============================================================ */
|
||||
|
||||
.create-form {
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.form-section {
|
||||
margin-bottom: 22px;
|
||||
}
|
||||
|
||||
.form-label {
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
color: var(--text-muted);
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.form-row {
|
||||
display: grid;
|
||||
grid-template-columns: 2fr 1fr 1fr;
|
||||
gap: 14px;
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
|
||||
.os-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.os-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 14px 16px;
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
cursor: pointer;
|
||||
transition: all 0.15s ease;
|
||||
text-align: left;
|
||||
font-family: inherit;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.os-card:hover:not(.disabled) {
|
||||
background: var(--surface-2);
|
||||
border-color: var(--accent-dim);
|
||||
}
|
||||
|
||||
.os-card.active {
|
||||
background: var(--accent-soft);
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.os-card.disabled {
|
||||
opacity: 0.4;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.os-name {
|
||||
font-weight: 600;
|
||||
font-size: 14px;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.os-desc {
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
margin-top: 1px;
|
||||
}
|
||||
|
||||
.preset-row {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
flex-wrap: wrap;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.preset-select {
|
||||
flex: 1;
|
||||
min-width: 220px;
|
||||
padding: 11px 14px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--surface);
|
||||
font-size: 13px;
|
||||
color: var(--text);
|
||||
cursor: pointer;
|
||||
transition: border-color 0.15s ease;
|
||||
}
|
||||
|
||||
.preset-select:hover { border-color: var(--accent-dim); }
|
||||
.preset-select:focus { outline: none; border-color: var(--accent); }
|
||||
|
||||
.preset-buttons {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.preset-btn {
|
||||
min-width: 60px;
|
||||
padding: 8px 14px;
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-sm);
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
font-family: inherit;
|
||||
color: var(--text);
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
|
||||
.preset-btn:hover:not(.disabled) {
|
||||
background: var(--surface-2);
|
||||
border-color: var(--accent-dim);
|
||||
}
|
||||
|
||||
.preset-btn.active {
|
||||
background: var(--accent);
|
||||
border-color: var(--accent);
|
||||
color: var(--accent-text);
|
||||
}
|
||||
|
||||
.preset-btn.disabled {
|
||||
opacity: 0.35;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.preset-label {
|
||||
font-weight: 700;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.preset-status {
|
||||
font-size: 11px;
|
||||
color: var(--text-muted);
|
||||
margin-top: 1px;
|
||||
}
|
||||
|
||||
.preset-btn.active .preset-status { color: var(--accent-text); }
|
||||
|
||||
.submit-btn {
|
||||
width: 100%;
|
||||
padding: 12px;
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
Forms — старые стили (для совместимости)
|
||||
============================================================ */
|
||||
|
||||
.field {
|
||||
@@ -336,6 +668,10 @@ a:hover { color: var(--accent-hover); }
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
Статусы — цветовая кодировка
|
||||
============================================================ */
|
||||
|
||||
.status-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -410,6 +746,10 @@ a:hover { color: var(--accent-hover); }
|
||||
box-shadow: var(--shadow-xs);
|
||||
}
|
||||
|
||||
.empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.7; }
|
||||
.empty-title { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
|
||||
.empty-sub { font-size: 14px; color: var(--text-muted); }
|
||||
|
||||
/* ============================================================
|
||||
Tabs
|
||||
============================================================ */
|
||||
@@ -515,13 +855,35 @@ table.data-table tr:hover td { background: var(--surface-2); }
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
Mobile
|
||||
Mobile — sidebar превращается в top-bar
|
||||
============================================================ */
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.topbar { padding: 14px 20px; }
|
||||
.container { padding: 32px 20px 64px; }
|
||||
.instance-grid { grid-template-columns: 1fr; }
|
||||
.page-title { font-size: 24px; }
|
||||
.topbar-right a { padding: 6px 10px; font-size: 13px; }
|
||||
@media (max-width: 768px) {
|
||||
.shell { flex-direction: column; }
|
||||
.sidebar {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
position: relative;
|
||||
flex-direction: row;
|
||||
border-right: none;
|
||||
border-bottom: 1px solid var(--border-soft);
|
||||
overflow-x: auto;
|
||||
}
|
||||
.sidebar-brand { display: none; }
|
||||
.sidebar-nav {
|
||||
flex-direction: row;
|
||||
padding: 8px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.sidebar-footer {
|
||||
flex-direction: row;
|
||||
border-top: none;
|
||||
border-left: 1px solid var(--border-soft);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.sidebar-user { padding: 4px 8px; }
|
||||
.container { padding: 24px 20px 64px; }
|
||||
.form-row { grid-template-columns: 1fr; }
|
||||
.stats-grid { grid-template-columns: repeat(2, 1fr); }
|
||||
.page-title { font-size: 22px; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user