Files
virtuality/web/static/app.css
T

234 строки
17 KiB
CSS

:root {
--bg: #eef2f7;
--panel: #ffffff;
--panel-2: #f7f9fc;
--line: #d7deea;
--text: #1f2937;
--muted: #65748b;
--accent: #1976d2;
--accent-2: #0f5ea8;
--sidebar: #172033;
--sidebar-2: #101827;
--green: #16a34a;
--yellow: #d97706;
--red: #dc2626;
}
* { box-sizing: border-box; }
body {
margin: 0;
min-height: 100vh;
background: var(--bg);
color: var(--text);
font-family: Arial, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.v-layout { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.v-sidebar { position: sticky; top: 0; height: 100vh; padding: 14px 12px; background: linear-gradient(180deg, var(--sidebar), var(--sidebar-2)); color: #dbe7f7; border-right: 1px solid rgba(255,255,255,.08); z-index: 20; }
.v-logo { display: grid; gap: 2px; padding: 12px 12px 18px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 10px; }
.v-logo strong { font-size: 19px; letter-spacing: -.02em; }
.v-logo span { color: #8ea0bd; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.v-nav { display: grid; gap: 4px; }
.v-nav a { position: relative; color: #b9c7dc; text-decoration: none; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 700; transition: .16s ease; }
.v-nav a:hover, .v-nav a.active { color: #fff; background: rgba(255,255,255,.1); }
.v-nav a.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 99px; background: var(--accent); }
.v-nav-group { display: grid; gap: 3px; margin: 4px 0; padding: 7px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(255,255,255,.04); }
.v-nav-group-title { width: 100%; padding: 6px 7px; border: 0; background: transparent; color: #8ea0bd; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .09em; text-align: left; cursor: pointer; }
.v-nav-group-title::after { content: "▾"; float: right; opacity: .75; }
.v-nav-group:not(.open) a { display: none; }
.v-nav-group:not(.open) .v-nav-group-title::after { content: "▸"; }
.v-nav-group a { padding-left: 18px; font-size: 13px; }
.v-nav-group.open { background: rgba(25,118,210,.12); border-color: rgba(25,118,210,.22); }
.v-main { min-width: 0; padding: 16px 18px 40px; }
.v-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; margin-bottom: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 3px 12px rgba(31,41,55,.06); }
.v-title { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.v-subtitle { color: var(--muted); font-size: 13px; margin-top: 3px; }
.shell { width: min(1440px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 48px; }
.v-shell-embedded { width: 100%; padding: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; margin-bottom: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 3px 12px rgba(31,41,55,.06); }
.brand { font-size: 24px; font-weight: 800; letter-spacing: -.04em; }
.muted { color: var(--muted); }
.small-note { font-size: 13px; line-height: 1.45; }
.top-space { margin-top: 14px; }
.inline-form { margin: 0; }
.top-meta { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.top-meta span, .pill, .link-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: var(--panel-2); font-size: 13px; text-decoration: none; }
.link-pill.accent { color: #fff; border-color: var(--accent); background: var(--accent); font-weight: 800; }
.link-pill:hover { border-color: var(--accent); color: var(--accent); }
.link-pill.accent:hover { color: #fff; background: var(--accent-2); }
.table-link { color: var(--accent); text-decoration: none; font-weight: 800; }
.table-link:hover { text-decoration: underline; }
.grid { display: grid; gap: 12px; }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 12px; }
.compact-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 12px; }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 12px; }
.card, .auth-card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px; box-shadow: 0 3px 12px rgba(31,41,55,.05); margin-bottom: 12px; }
.card.stat { min-height: 86px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
h2 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.label { color: var(--muted); font-size: 12px; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.value { font-size: 23px; font-weight: 800; letter-spacing: -.03em; }
.value.small { font-size: 15px; }
.strong { font-weight: 700; }
.update-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-color: rgba(217,119,6,.3); background: #fff8eb; }
.update-actions form { margin: 0; }
#update-apply-button { min-width: 210px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.services { display: grid; gap: 8px; }
.service-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 7px; }
.service-row small { display: block; margin-top: 3px; color: var(--muted); }
.service-link { color: var(--text); text-decoration: none; }
.service-link:hover { border-color: var(--accent); background: #eef6ff; }
.status { display: inline-flex; padding: 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; border: 1px solid currentColor; white-space: nowrap; }
.status.ok { color: var(--green); background: rgba(22,163,74,.08); }
.status.warn { color: var(--yellow); background: rgba(217,119,6,.08); }
.status.err { color: var(--red); background: rgba(220,38,38,.08); }
.status-button { cursor: pointer; min-height: 26px; line-height: 1; }
.status-button:hover { filter: brightness(.96); box-shadow: 0 0 0 3px rgba(25,118,210,.10); }
table { width: 100%; border-collapse: collapse; background: var(--panel); }
th, td { text-align: left; padding: 9px 9px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: #41516a; font-size: 12px; font-weight: 800; background: #f1f5f9; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f8fbff; }
.vm-table th:last-child, .vm-table td:last-child { text-align: right; }
.vm-actions-cell { min-width: 285px; }
.autostart-cell { min-width: 100px; }
.actions { display: flex; gap: 7px; flex-wrap: wrap; }
.actions form, .logout-form, .compact-actions form { margin: 0; }
button { border: 1px solid var(--line); background: #f8fafc; color: var(--text); padding: 7px 9px; border-radius: 6px; cursor: pointer; font-weight: 700; }
button:hover { border-color: var(--accent); color: var(--accent); }
button.danger { background: rgba(220,38,38,.07); color: var(--red); }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.primary:hover { background: var(--accent-2); color: #fff; }
button.ghost { background: transparent; color: var(--muted); }
button.wide { width: 100%; padding: 11px 14px; }
button:disabled { cursor: not-allowed; opacity: .45; }
.compact-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; flex-wrap: wrap; }
.icon-action { display: inline-flex; align-items: center; gap: 5px; min-height: 29px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel-2); color: var(--text); text-decoration: none; font-size: 12px; font-weight: 800; line-height: 1; cursor: pointer; }
.icon-action span { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; font-size: 13px; }
.icon-action em { font-style: normal; }
.icon-action:hover { border-color: var(--accent); color: var(--accent); background: #eef6ff; }
.icon-action.accent { border-color: var(--accent); color: #fff; background: var(--accent); }
.icon-action.accent:hover { background: var(--accent-2); color: #fff; }
.icon-action.success { color: var(--green); background: rgba(22,163,74,.07); border-color: rgba(22,163,74,.24); }
.icon-action.success:hover { border-color: var(--green); }
.icon-action.danger { color: var(--red); background: rgba(220,38,38,.07); border-color: rgba(220,38,38,.24); }
.icon-action.danger:hover { border-color: var(--red); }
.vm-control-panel { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 12px; }
.vm-control-panel > div { min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); }
.vm-control-panel .label { margin-bottom: 8px; }
.danger-zone-inline { border-color: rgba(220,38,38,.18) !important; background: rgba(220,38,38,.035) !important; }
.autostart-form { width: 100%; margin: 0; }
.autostart-indicator { width: 100%; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 3px 9px; text-align: left; padding: 11px 12px; border-radius: 9px; border: 1px solid currentColor; background: #fff; }
.autostart-indicator span { grid-row: 1 / span 2; font-size: 16px; }
.autostart-indicator strong { font-size: 15px; line-height: 1; }
.autostart-indicator small { font-size: 12px; opacity: .78; }
.autostart-indicator.on { color: var(--green); background: rgba(22,163,74,.08); }
.autostart-indicator.off { color: var(--red); background: rgba(220,38,38,.08); }
.autostart-indicator:hover { filter: brightness(.98); box-shadow: 0 0 0 3px rgba(25,118,210,.10); }
pre { overflow: auto; margin: 12px 0 0; padding: 12px; border-radius: 7px; background: #0b1220; border: 1px solid #1f2937; color: #d9e5f6; line-height: 1.55; }
.auth-body { display: grid; place-items: center; padding: 20px; }
.auth-shell { width: min(440px, 100%); }
.auth-card { padding: 28px; }
.auth-brand { margin-bottom: 6px; }
.auth-form, .form-grid { display: grid; gap: 13px; margin-top: 18px; }
.auth-form label, .form-grid label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 700; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-form input, .form-grid input, .form-grid select { width: 100%; border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 7px; padding: 10px 11px; outline: none; }
.auth-form input:focus, .form-grid input:focus, .form-grid select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(25,118,210,.12); }
.form-subcard { display: grid; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); }
.form-subcard label { margin: 0; }
.check-row { display: flex !important; grid-template-columns: none !important; align-items: flex-start; gap: 9px !important; color: var(--text) !important; font-size: 13px !important; }
.check-row input { width: auto !important; margin-top: 2px; }
.alert, .notice { padding: 10px 12px; border-radius: 7px; margin: 0 0 12px; font-weight: 700; }
.notice { margin: 0; color: var(--accent); background: #eef6ff; border: 1px solid #bfdbfe; }
.alert.danger { color: var(--red); background: rgba(220,38,38,.08); border: 1px solid rgba(220,38,38,.22); }
.quick-actions { display: grid; gap: 8px; }
.big-action { display: grid; gap: 4px; padding: 11px; color: var(--text); text-decoration: none; background: var(--panel-2); border: 1px solid var(--line); border-radius: 7px; }
.big-action:hover { border-color: var(--accent); background: #eef6ff; }
.big-action.static:hover { border-color: var(--line); background: var(--panel-2); }
.big-action span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.progress { height: 8px; overflow: hidden; background: #e5eaf2; border: 1px solid #d7deea; border-radius: 999px; }
.progress.big { height: 13px; }
.progress span { display: block; height: 100%; width: 0; min-width: 3px; background: linear-gradient(90deg, var(--accent), #16a34a); border-radius: inherit; transition: width .35s ease; }
.upload-progress-wrap { display: grid; gap: 9px; padding: 12px; border-radius: 7px; border: 1px solid #bfdbfe; background: #eef6ff; }
.upload-progress-wrap[hidden] { display: none; }
.upload-progress-head, .upload-progress-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.upload-progress-head strong { font-size: 13px; }
.upload-progress-head span { color: var(--accent); font-weight: 900; }
.upload-progress-meta { color: var(--muted); font-size: 12px; }
.operation-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 12px; }
.meta-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.meta-grid div { display: grid; gap: 4px; padding: 9px 10px; border-radius: 7px; background: var(--panel-2); border: 1px solid var(--line); }
.meta-grid span { color: var(--muted); font-size: 12px; }
.meta-grid strong { overflow-wrap: anywhere; }
.command-box { white-space: pre-wrap; overflow-wrap: anywhere; }
.op-log { min-height: 420px; max-height: 650px; white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; font-size: 13px; }
.live-dot::before { content: ""; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 18px rgba(22,163,74,.5); }
.log-source-card { text-decoration: none; color: var(--text); }
.log-source-card.selected { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
#ajax-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 9999; background: linear-gradient(90deg, var(--accent), #16a34a); box-shadow: 0 0 18px rgba(25,118,210,.4); opacity: 0; transition: width .22s ease, opacity .18s ease; }
#ajax-progress.active { width: 82%; opacity: 1; }
.ajax-loading .v-main { cursor: progress; }
.page-enter { animation: pageIn .2s ease both; }
.page-exit { opacity: .65; transform: translateY(2px); transition: .08s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.mobile-menu-toggle { display: none; position: fixed; right: 12px; bottom: 12px; z-index: 50; background: var(--sidebar); color: #fff; border-color: rgba(255,255,255,.18); box-shadow: 0 12px 30px rgba(15,23,42,.25); }
.console-body { height: 100vh; min-height: 100vh; overflow: hidden; background: #03060b; }
.console-window { display: grid; grid-template-rows: 46px 1fr; width: 100vw; height: 100vh; overflow: hidden; }
.console-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 10px; background: #111827; border-bottom: 1px solid #1f2937; box-shadow: 0 10px 28px rgba(0,0,0,.28); z-index: 2; }
.console-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; color: #f8fafc; }
.console-title strong { font-size: 15px; white-space: nowrap; }
.console-title span { color: #94a3b8; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console-actions { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.console-main { width: 100%; height: calc(100vh - 46px); min-height: 0; overflow: hidden; background: #000; }
.console-frame-full { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.console-error-wrap { display: grid; place-items: center; padding: 18px; background: #03060b; }
.console-error-card { width: min(760px, calc(100vw - 32px)); }
@media (max-width: 1180px) {
.three { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
.v-layout { grid-template-columns: 1fr; }
.v-sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; height: 100vh; transform: translateX(-102%); transition: transform .2s ease; box-shadow: 12px 0 30px rgba(15,23,42,.25); }
.v-sidebar.open { transform: translateX(0); }
.mobile-menu-toggle { display: inline-flex; }
.v-nav { grid-template-columns: 1fr; }
.v-main { padding: 10px; }
.topbar, .v-topbar { align-items: flex-start; flex-direction: column; }
.stats, .compact-stats, .two, .form-row, .operation-summary, .meta-grid, .vm-control-panel { grid-template-columns: 1fr; }
.shell { width: min(100% - 20px, 1440px); padding-top: 10px; }
.v-shell-embedded { width: 100%; }
table { display: block; overflow-x: auto; }
.vm-table th:last-child, .vm-table td:last-child { text-align: left; }
.compact-actions { justify-content: flex-start; }
.vm-actions-cell { min-width: 240px; }
.icon-action em { display: none; }
.update-banner { align-items: flex-start; flex-direction: column; }
.console-window { grid-template-rows: 54px 1fr; }
.console-main { height: calc(100vh - 54px); }
.console-title { flex-direction: column; align-items: flex-start; gap: 1px; }
.console-actions .status { display: none; }
}