Archived
Стилизация frontend под старый светлый интерфейс
This commit is contained in:
+42
-28
@@ -1,30 +1,44 @@
|
||||
* { box-sizing: border-box; }
|
||||
:root { color: #e5e7eb; background: #111827; font-family: system-ui, sans-serif; }
|
||||
:root { font-family: Inter, system-ui, sans-serif; color: #111827; background: #f7f8fa; }
|
||||
body { margin: 0; }
|
||||
.page { min-height: 100vh; padding: 24px; }
|
||||
.auth-card { max-width: 640px; margin: 10vh auto; }
|
||||
.card { padding: 24px; border: 1px solid #374151; border-radius: 16px; background: #1f2937; box-shadow: 0 16px 40px #0004; }
|
||||
.topbar { max-width: 1200px; margin: 0 auto 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
|
||||
.topbar strong { display: block; font-size: 1.25rem; }
|
||||
.topbar .muted { display: block; margin-top: 4px; }
|
||||
.grid { max-width: 1200px; margin: 0 auto 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
|
||||
.dashboard > .card { max-width: 1200px; margin: 0 auto 24px; }
|
||||
form { display: grid; gap: 16px; }
|
||||
label { display: grid; gap: 6px; color: #d1d5db; }
|
||||
input, select { padding: 11px 12px; border: 1px solid #4b5563; border-radius: 8px; color: #f9fafb; background: #111827; }
|
||||
button { padding: 11px 14px; border: 0; border-radius: 8px; color: white; background: #2563eb; cursor: pointer; }
|
||||
button:hover { background: #1d4ed8; }
|
||||
button:disabled { opacity: .55; cursor: wait; }
|
||||
button.danger { background: #b91c1c; margin-top: 8px; }
|
||||
button.link { margin-top: 16px; padding: 0; background: transparent; color: #93c5fd; }
|
||||
.message { max-width: 1200px; margin: 0 auto 16px; color: #fbbf24; }
|
||||
.muted { color: #9ca3af; }
|
||||
.items { display: grid; gap: 12px; }
|
||||
.item { display: grid; gap: 5px; padding: 14px; border: 1px solid #374151; border-radius: 10px; background: #111827; }
|
||||
.item span { color: #d1d5db; font-size: .9rem; }
|
||||
.stats { display: grid; gap: 4px; margin-top: 8px; padding: 10px; border-radius: 8px; background: #1f2937; color: #93c5fd; font-size: .85rem; }
|
||||
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
|
||||
.actions button { margin: 0; padding: 8px 10px; font-size: .85rem; }
|
||||
.error-text { color: #fca5a5 !important; }
|
||||
.form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
|
||||
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } .topbar { align-items: flex-start; flex-direction: column; } }
|
||||
button, input, select { font: inherit; }
|
||||
button { cursor: pointer; border: 0; }
|
||||
button:disabled { cursor: not-allowed; opacity: .55; }
|
||||
.auth-page { min-height: 100vh; display: grid; place-items: center; background: #f7f8fa; }
|
||||
.auth-box { width: 380px; padding: 36px; background: white; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 8px 30px #11182712; }
|
||||
.brand { display: flex; align-items: center; gap: 10px; font-size: 16px; }
|
||||
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: white; background: #087cf5; font-weight: 800; }
|
||||
h1 { margin: 0 0 8px; font-size: 30px; } h2 { margin: 0 0 20px; } h3 { margin: 18px 0 12px; }
|
||||
.auth-box h1 { margin-top: 28px; }
|
||||
form { display: grid; gap: 16px; } label { display: grid; gap: 7px; color: #64748b; font-size: 14px; }
|
||||
input, select { width: 100%; padding: 11px 12px; border: 1px solid #e5e7eb; border-radius: 7px; color: #111827; background: #f8fafc; outline: none; }
|
||||
input:focus, select:focus { border-color: #087cf5; box-shadow: 0 0 0 3px #087cf51c; }
|
||||
.primary { padding: 11px 18px; border-radius: 7px; color: white; background: #087cf5; font-weight: 700; } .primary:hover { background: #066bd4; }
|
||||
.wide { width: 100%; margin-top: 4px; } .text-button { margin-top: 18px; padding: 0; color: #087cf5; background: transparent; }
|
||||
.alert { padding: 10px 12px; color: #9a3412; background: #fff7ed; border-radius: 7px; }
|
||||
.app-layout { min-height: 100vh; display: flex; background: #f7f8fa; }
|
||||
.sidebar { width: 225px; display: flex; flex-direction: column; background: white; border-right: 1px solid #e5e7eb; }
|
||||
.sidebar .brand { height: 88px; padding: 0 18px; border-bottom: 1px solid #f1f5f9; }
|
||||
.sidebar nav { padding: 18px 10px; }
|
||||
.nav-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px; color: #64748b; text-align: left; border-radius: 7px; background: transparent; }
|
||||
.nav-item.active { color: #087cf5; background: #eaf3ff; font-weight: 700; }
|
||||
.sidebar-bottom { margin-top: auto; padding: 14px 10px; border-top: 1px solid #f1f5f9; }
|
||||
.account { display: flex; align-items: center; gap: 9px; padding: 8px; font-size: 12px; overflow: hidden; } .account small { display: block; margin-top: 3px; color: #64748b; }
|
||||
.avatar { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; color: white; background: #087cf5; font-weight: 700; }
|
||||
.logout { width: 100%; margin-top: 8px; padding: 10px; color: #374151; background: white; border: 1px solid #f1f5f9; border-radius: 7px; }
|
||||
.main-area { flex: 1; min-width: 0; } .content { max-width: 1140px; margin: 0 auto; padding: 36px 42px; }
|
||||
.page-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; } .page-heading p { margin: 0; color: #64748b; }
|
||||
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 26px; } .summary > div { padding: 22px; background: white; border: 1px solid #edf0f3; border-radius: 12px; box-shadow: 0 2px 8px #11182708; }
|
||||
.vps-list { display: grid; gap: 16px; max-width: 720px; } .vps-card, .panel-card, .template-manager { padding: 22px; background: white; border: 1px solid #edf0f3; border-radius: 12px; box-shadow: 0 2px 8px #11182708; }
|
||||
.vps-card h3 { margin: 12px 0 8px; font-size: 18px; } .vps-status { display: flex; align-items: center; gap: 7px; color: #64748b; font-size: 13px; }
|
||||
.dot { width: 8px; height: 8px; border-radius: 50%; } .dot.green { background: #10b981; } .dot.gray { background: #94a3b8; }
|
||||
.badge { padding: 3px 8px; color: #64748b; background: #f1f5f9; border-radius: 12px; font-size: 11px; } .vps-meta, .muted { color: #64748b; font-size: 13px; }
|
||||
.stats-line { display: flex; gap: 18px; margin: 14px 0; color: #64748b; font-size: 13px; } .actions { display: flex; gap: 8px; margin-top: 18px; }
|
||||
.actions button { padding: 8px 13px; color: #111827; background: white; border: 1px solid #e5e7eb; border-radius: 6px; } .actions .danger-light, .danger { color: #dc2626; background: #fff1f2; border-color: #ffe4e6; }
|
||||
.panel-card { max-width: 720px; margin-top: 24px; } .new-vps-form { grid-template-columns: repeat(2, 1fr); } .new-vps-form button { align-self: end; }
|
||||
.items { display: grid; gap: 10px; } .item { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 13px; border: 1px solid #e5e7eb; border-radius: 8px; }
|
||||
.item strong { min-width: 160px; } .item span { color: #64748b; font-size: 13px; } .item button { padding: 8px 12px; color: white; background: #087cf5; border-radius: 6px; } .item button.danger { color: #dc2626; background: #fff1f2; }
|
||||
.template-manager { max-width: 100%; } .template-manager > button { padding: 10px 14px; color: white; background: #087cf5; border-radius: 6px; }
|
||||
.discovered { margin: 20px 0; padding: 8px; background: #f8fafc; border-radius: 8px; } .error-text { display: block; width: 100%; color: #dc2626 !important; }
|
||||
@media (max-width: 800px) { .sidebar { width: 190px; } .content { padding: 24px 18px; } .summary { grid-template-columns: 1fr; } .new-vps-form { grid-template-columns: 1fr; } }
|
||||
@media (max-width: 560px) { .app-layout { display: block; } .sidebar { width: 100%; } .sidebar nav { display: flex; } .sidebar-bottom { display: none; } .content { padding: 22px 12px; } }
|
||||
|
||||
Reference in New Issue
Block a user