| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025 |
- :root {
- --rail: #1e293b;
- --rail-ink: #e2e8f0;
- --accent: #0d9488;
- }
- html, body {
- height: 100%;
- margin: 0;
- overflow: hidden;
- background: #f1f5f9;
- }
- .app {
- height: 100%;
- width: 100%;
- min-height: 100%;
- }
- .rail {
- width: 220px;
- background: var(--rail);
- color: var(--rail-ink);
- display: flex;
- flex-direction: column;
- height: 100%;
- position: sticky;
- top: 0;
- flex-shrink: 0;
- }
- .brand-mark {
- width: 32px;
- height: 32px;
- border-radius: 8px;
- display: grid;
- place-items: center;
- font-weight: 800;
- color: #083f3b;
- background: linear-gradient(145deg, #5eead4, #0f766e);
- }
- .nav-item {
- color: rgba(226, 232, 240, 0.78) !important;
- border-radius: 8px;
- padding: 0.45rem 0.75rem !important;
- border: 0;
- background: transparent;
- font-size: 0.92rem;
- }
- .nav-item:hover { background: rgba(255,255,255,.06); color: #fff !important; }
- .nav-item.is-active {
- background: rgba(13, 148, 136, 0.28) !important;
- color: #fff !important;
- }
- .nav-logout {
- color: rgba(248, 113, 113, 0.92) !important;
- }
- .nav-logout:hover {
- background: rgba(248, 113, 113, 0.14) !important;
- color: #fecaca !important;
- }
- .rail-foot {
- margin-top: auto;
- }
- .live .pulse {
- width: 8px;
- height: 8px;
- border-radius: 50%;
- background: #94a3b8;
- display: inline-block;
- }
- .live.is-ok .pulse { background: #34d399; box-shadow: 0 0 0 3px rgba(52,211,153,.2); }
- .live.is-bad .pulse { background: #f87171; }
- .main {
- flex: 1 1 auto;
- min-width: 0;
- width: 100%;
- max-width: none;
- height: 100%;
- padding: 1rem 1.25rem;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- }
- .top {
- flex-shrink: 0;
- margin-bottom: 0.85rem !important;
- }
- .view { display: none; }
- .view.is-active {
- display: flex;
- flex-direction: column;
- flex: 1 1 auto;
- min-height: 0;
- gap: 0.75rem;
- overflow: hidden;
- }
- /* List pages: stretch card + scroll table */
- .view.is-active > .card {
- flex: 1 1 auto;
- min-height: 0;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- margin-bottom: 0 !important;
- }
- .view.is-active > .card > .card-header {
- flex-shrink: 0;
- }
- .view.is-active > .card > .table-responsive {
- flex: 1 1 auto;
- min-height: 0;
- overflow: auto;
- }
- .view.is-active > .card > .card-body {
- flex: 1 1 auto;
- min-height: 0;
- overflow: auto;
- }
- /* Console: full width, scroll if needed; cards share space */
- #view-console.is-active {
- overflow: hidden;
- }
- #view-console.is-active > .card {
- flex: 1 1 auto;
- min-height: 0;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- }
- #view-console .card-body.min-h-0,
- .min-h-0 {
- min-height: 0;
- }
- #view-software.is-active {
- overflow: auto;
- }
- #view-software.is-active > .row {
- width: 100%;
- margin-left: 0;
- margin-right: 0;
- }
- #view-processes.is-active {
- overflow: hidden;
- display: flex;
- flex-direction: column;
- min-height: 0;
- }
- #view-processes.is-active > .card {
- flex: 1 1 auto;
- min-height: 0;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- }
- #view-processes .proc-table-wrap {
- flex: 1 1 auto;
- min-height: 0;
- overflow: auto;
- }
- #view-processes .proc-toolbar {
- min-width: 0;
- }
- #view-processes .proc-toolbar-actions {
- min-width: 0;
- flex: 1 1 auto;
- justify-content: flex-end;
- }
- #view-processes #proc-search {
- width: 16rem;
- max-width: 100%;
- min-width: 8rem;
- flex: 1 1 12rem;
- }
- #view-processes .proc-toolbar-actions .form-check,
- #view-processes #btn-proc-refresh {
- flex: 0 0 auto;
- }
- #proc-table th.proc-sort {
- cursor: pointer;
- user-select: none;
- white-space: nowrap;
- }
- #proc-table th.proc-sort.is-active {
- color: #0d6efd;
- }
- #proc-table th.proc-sort.is-active::after {
- content: "";
- display: inline-block;
- margin-left: 0.25rem;
- border: 4px solid transparent;
- }
- #proc-table th.proc-sort.is-active[data-sort-dir="asc"]::after {
- border-bottom-color: currentColor;
- transform: translateY(-2px);
- }
- #proc-table th.proc-sort.is-active[data-sort-dir="desc"]::after {
- border-top-color: currentColor;
- transform: translateY(2px);
- }
- #proc-table td.proc-cmd {
- max-width: 28rem;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
- font-size: 0.78rem;
- }
- #proc-table td.proc-name {
- font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
- font-size: 0.8rem;
- white-space: nowrap;
- }
- .metrics-range {
- width: auto;
- min-width: 5.5rem;
- font-size: 0.8rem;
- padding-top: 0.15rem;
- padding-bottom: 0.15rem;
- }
- .analytics-stat {
- background: #f8fafc;
- border: 1px solid #e2e8f0;
- border-radius: 10px;
- padding: 0.7rem 0.85rem;
- height: 100%;
- }
- .analytics-stat .label {
- font-size: 0.75rem;
- color: #64748b;
- margin-bottom: 0.2rem;
- }
- .analytics-stat .value {
- font-size: 1.05rem;
- font-weight: 700;
- color: #0f172a;
- word-break: break-all;
- }
- .analytics-panel {
- border: 1px solid #e2e8f0;
- border-radius: 12px;
- padding: 0.85rem 1rem;
- background: #fff;
- height: 100%;
- }
- .analytics-panel-title {
- font-weight: 600;
- font-size: 0.9rem;
- margin-bottom: 0.65rem;
- }
- .analytics-chart {
- position: relative;
- height: 220px;
- }
- .analytics-chart-sm {
- height: 200px;
- }
- .monitor-card {
- height: 100%;
- min-height: 220px;
- padding: 0.85rem 1rem;
- background: #fff;
- border: 1px solid #e2e8f0;
- border-radius: 12px;
- display: flex;
- flex-direction: column;
- }
- .monitor-chart {
- position: relative;
- flex: 1 1 auto;
- min-height: 160px;
- }
- .monitor-chart canvas {
- width: 100% !important;
- height: 100% !important;
- }
- .soft-card .card-body { padding: 0.75rem 0.9rem; }
- .soft-card .meta {
- font-size: 0.8rem;
- color: #64748b;
- margin: 0;
- padding-left: 1rem;
- }
- .soft-card .btn { --bs-btn-padding-y: 0.2rem; --bs-btn-padding-x: 0.5rem; --bs-btn-font-size: 0.8rem; }
- .table > :not(caption) > * > * {
- padding: 0.4rem 0.65rem;
- font-size: 0.875rem;
- }
- .table thead th {
- font-size: 0.78rem;
- text-transform: uppercase;
- letter-spacing: 0.02em;
- color: #64748b;
- background: #f8fafc;
- }
- .file-icon {
- width: 1.15rem;
- display: inline-flex;
- justify-content: center;
- margin-right: 0.35rem;
- color: #64748b;
- }
- .file-icon.dir { color: #ca8a04; }
- .file-icon.code { color: #2563eb; }
- .file-icon.web { color: #ea580c; }
- .file-icon.img { color: #db2777; }
- .file-icon.cfg { color: #0f766e; }
- .file-icon.doc { color: #475569; }
- .files-name {
- cursor: pointer;
- color: #0f172a;
- text-decoration: none;
- }
- .files-name:hover { color: var(--accent); text-decoration: underline; }
- .files-check-col {
- width: 2rem;
- text-align: center;
- vertical-align: middle;
- }
- #files-table tbody tr.is-selected {
- background: rgba(37, 99, 235, 0.08);
- }
- #files-table tbody tr.is-selected:hover {
- background: rgba(37, 99, 235, 0.12);
- }
- #files-bulk-actions .disabled {
- pointer-events: none;
- }
- .crumbs a, .crumbs button {
- appearance: none;
- border: 0;
- background: transparent;
- color: var(--accent);
- font: inherit;
- padding: 0;
- cursor: pointer;
- }
- .crumbs span { color: #94a3b8; margin: 0 0.2rem; }
- .toast-host {
- z-index: 120;
- pointer-events: none;
- }
- .toast-host .toast-item {
- pointer-events: none;
- background: #0f172a;
- color: #fff;
- border-radius: 8px;
- padding: 0.55rem 0.85rem;
- margin-top: 0.4rem;
- font-size: 0.85rem;
- box-shadow: 0 8px 24px rgba(15,23,42,.25);
- animation: toast-in 0.18s ease;
- }
- .toast-host .toast-item.ok {
- background: #0f766e;
- }
- .toast-host .toast-item.err { background: #b91c1c; }
- @keyframes toast-in {
- from { opacity: 0; transform: translateY(6px); }
- to { opacity: 1; transform: none; }
- }
- .alert-dialog-msg {
- white-space: pre-wrap;
- word-break: break-word;
- font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
- font-size: 0.8125rem;
- line-height: 1.45;
- max-height: min(50vh, 22rem);
- overflow: auto;
- margin: 0;
- color: #991b1b;
- background: #fef2f2;
- border: 1px solid #fecaca;
- border-radius: 0.5rem;
- padding: 0.75rem 0.9rem;
- }
- /* Nested dialogs (e.g. URL proxy form over site settings) */
- #modal.modal {
- z-index: 2010;
- }
- .modal-backdrop.modal-backdrop-nested {
- z-index: 2000;
- }
- .task-panel[hidden] { display: none !important; }
- .task-panel {
- position: fixed; inset: 0; z-index: 70;
- display: flex; align-items: center; justify-content: center;
- padding: 1.25rem;
- }
- .task-panel-backdrop {
- position: absolute; inset: 0;
- background: rgba(15, 23, 42, 0.5);
- backdrop-filter: blur(2px);
- }
- .task-panel-dialog {
- position: relative;
- z-index: 1;
- width: min(920px, 94vw);
- height: min(640px, 84vh);
- min-width: 480px;
- min-height: 320px;
- max-width: calc(100vw - 2.5rem);
- max-height: calc(100vh - 2.5rem);
- background: #0f172a; color: #e2e8f0;
- display: flex; flex-direction: column;
- border-radius: 12px;
- overflow: hidden;
- border: 1px solid rgba(255,255,255,.1);
- box-shadow: 0 24px 80px rgba(0,0,0,.45);
- animation: task-dialog-in .18s ease-out;
- }
- .task-panel-dialog.is-resizing {
- animation: none;
- user-select: none;
- }
- @keyframes task-dialog-in {
- from { opacity: 0; transform: translateY(10px) scale(.98); }
- to { opacity: 1; transform: none; }
- }
- /* Shared resize handle for all built-in dialogs */
- .dialog-resize {
- position: absolute;
- right: 0; bottom: 0;
- width: 18px; height: 18px;
- cursor: nwse-resize;
- z-index: 5;
- }
- .dialog-resize::before {
- content: "";
- position: absolute;
- right: 4px; bottom: 4px;
- width: 10px; height: 10px;
- border-right: 2px solid rgba(148, 163, 184, 0.85);
- border-bottom: 2px solid rgba(148, 163, 184, 0.85);
- border-radius: 1px;
- }
- .dialog-resize:hover::before {
- border-color: #0d9488;
- }
- .modal-content .dialog-resize::before {
- border-color: rgba(100, 116, 139, 0.9);
- }
- .modal-content .dialog-resize:hover::before {
- border-color: #0d9488;
- }
- .is-resizable-dialog {
- position: relative;
- }
- .is-resizable-dialog.is-resizing {
- user-select: none;
- }
- .modal-dialog.is-resizable-dialog.has-custom-size {
- max-width: none;
- margin-left: auto;
- margin-right: auto;
- display: flex;
- flex-direction: column;
- }
- .modal-dialog.is-resizable-dialog.has-custom-size .modal-content {
- width: 100%;
- height: 100%;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- position: relative;
- }
- .modal-dialog.is-resizable-dialog.has-custom-size .modal-header,
- .modal-dialog.is-resizable-dialog.has-custom-size .modal-footer {
- flex-shrink: 0;
- }
- .modal-dialog.is-resizable-dialog.has-custom-size .modal-body {
- flex: 1 1 auto;
- min-height: 0;
- overflow: auto;
- }
- .modal-dialog.is-resizable-dialog.has-custom-size .site-settings-body {
- min-height: 0;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- }
- .modal-dialog.is-resizable-dialog.has-custom-size .site-settings-layout {
- flex: 1;
- min-height: 0;
- height: 100%;
- overflow: hidden;
- }
- .modal-dialog.is-resizable-dialog.has-custom-size .site-settings-panels {
- display: flex;
- flex-direction: column;
- min-height: 0;
- overflow: hidden;
- }
- .modal-dialog.is-resizable-dialog.has-custom-size .site-settings-panel.is-active {
- flex: 1 1 auto;
- min-height: 0;
- overflow: auto;
- }
- .modal-dialog.is-resizable-dialog.has-custom-size .site-settings-panel.is-active[data-site-panel="logs"] {
- display: flex;
- flex-direction: column;
- overflow: hidden;
- }
- .modal-dialog.is-resizable-dialog.has-custom-size .site-settings-panel.is-active[data-site-panel="logs"] .site-log-toolbar {
- flex: 0 0 auto;
- }
- .modal-dialog.is-resizable-dialog.has-custom-size .site-settings-panel.is-active[data-site-panel="logs"] .site-log-view {
- flex: 1 1 auto;
- min-height: 0;
- max-height: none;
- height: auto;
- }
- .modal-dialog.is-resizable-dialog.has-custom-size .site-settings-panel.is-active[data-site-panel="nginx"] {
- display: flex;
- flex-direction: column;
- overflow: hidden;
- }
- .modal-dialog.is-resizable-dialog.has-custom-size .site-settings-panel.is-active[data-site-panel="nginx"] .site-nginx-toolbar,
- .modal-dialog.is-resizable-dialog.has-custom-size .site-settings-panel.is-active[data-site-panel="nginx"] .site-nginx-actions {
- flex: 0 0 auto;
- }
- .modal-dialog.is-resizable-dialog.has-custom-size .site-settings-panel.is-active[data-site-panel="nginx"] .site-nginx-monaco {
- flex: 1 1 auto;
- min-height: 0;
- height: auto;
- }
- .task-panel-head {
- padding: 0.9rem 1rem;
- border-bottom: 1px solid rgba(255,255,255,.08);
- flex-shrink: 0;
- }
- .task-panel-body {
- flex: 1; min-height: 0;
- display: grid;
- grid-template-columns: 240px 1fr;
- }
- .task-side {
- display: flex;
- flex-direction: column;
- min-height: 0;
- border-right: 1px solid rgba(255,255,255,.08);
- }
- .task-list {
- overflow: auto;
- padding: 0.4rem;
- flex: 1;
- min-height: 0;
- }
- .task-item {
- width: 100%;
- appearance: none; border: 0; background: transparent; color: inherit;
- text-align: left; padding: 0.55rem 0.65rem; border-radius: 8px;
- cursor: pointer; display: grid; gap: 2px; font: inherit; font-size: 0.85rem;
- }
- .task-item:hover { background: rgba(255,255,255,.05); }
- .task-item.is-active { background: rgba(13,148,136,.35); }
- .task-item.is-running {
- border: 1px solid rgba(251, 191, 36, 0.55);
- background: rgba(251, 191, 36, 0.12);
- }
- .task-item.is-running.is-active {
- background: rgba(251, 191, 36, 0.22);
- border-color: #fbbf24;
- }
- .task-item .task-running-dot {
- width: 7px; height: 7px; border-radius: 50%;
- background: #fbbf24; display: inline-block;
- margin-right: 0.35rem;
- box-shadow: 0 0 0 3px rgba(251,191,36,.2);
- animation: task-pulse 1.2s ease infinite;
- }
- @keyframes task-pulse {
- 0%, 100% { opacity: 1; }
- 50% { opacity: 0.45; }
- }
- .task-side-foot .btn.d-none { display: none !important; }
- .task-log-wrap { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
- .task-log-head { padding: 0.55rem 0.85rem; border-bottom: 1px solid rgba(255,255,255,.08); }
- .task-log {
- margin: 0; flex: 1; overflow: auto; padding: 0.75rem;
- font: 0.78rem/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
- white-space: pre-wrap; word-break: break-word; background: #020617; color: #cbd5e1;
- }
- .code-editor {
- position: fixed; inset: 0; z-index: 80;
- display: flex; align-items: center; justify-content: center;
- padding: 1.25rem;
- }
- .code-editor[hidden] { display: none !important; }
- .code-editor-backdrop {
- position: absolute; inset: 0;
- background: rgba(15, 23, 42, 0.45);
- backdrop-filter: blur(2px);
- }
- .code-editor-window {
- position: relative;
- z-index: 1;
- width: min(1100px, 92vw);
- height: min(720px, 82vh);
- min-width: 560px;
- min-height: 360px;
- max-width: calc(100vw - 2.5rem);
- max-height: calc(100vh - 2.5rem);
- display: flex; flex-direction: column;
- background: #1e1e1e; color: #d4d4d4;
- border-radius: 12px;
- overflow: hidden;
- box-shadow: 0 24px 80px rgba(0,0,0,.45);
- border: 1px solid #333;
- }
- .code-editor-bar {
- display: flex; align-items: center; justify-content: space-between; gap: 12px;
- padding: 0.45rem 0.65rem 0.45rem 0.85rem; background: #252526; border-bottom: 1px solid #333; flex-shrink: 0;
- }
- .code-editor-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
- .code-editor-meta span {
- font-size: 0.78rem; color: #9ca3af;
- overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
- }
- .code-editor-x {
- appearance: none; border: 0; background: transparent;
- color: #9ca3af; font-size: 1.45rem; line-height: 1;
- width: 2rem; height: 2rem; border-radius: 6px; cursor: pointer;
- }
- .code-editor-x:hover { background: rgba(255,255,255,.08); color: #fff; }
- .code-editor-main {
- flex: 1; min-height: 0;
- display: grid;
- grid-template-columns: 220px 1fr;
- }
- .code-editor-tree {
- display: flex; flex-direction: column; min-height: 0;
- background: #181818; border-right: 1px solid #333;
- }
- .code-editor-tree-head {
- display: flex; align-items: center; gap: 6px;
- padding: 0.4rem 0.5rem; border-bottom: 1px solid #333; flex-shrink: 0;
- }
- .code-editor-tree-path {
- flex: 1; min-width: 0; font-size: 0.75rem; color: #9ca3af;
- overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
- }
- .code-editor-tree-body {
- flex: 1; overflow: auto; padding: 0.25rem;
- font-size: 0.82rem;
- }
- .editor-tree-item {
- width: 100%;
- appearance: none; border: 0; background: transparent; color: #d4d4d4;
- text-align: left; padding: 0.28rem 0.45rem; border-radius: 4px;
- cursor: pointer; display: flex; align-items: center; gap: 0.35rem;
- font: inherit; font-size: 0.82rem;
- }
- .editor-tree-item:hover { background: rgba(255,255,255,.06); }
- .editor-tree-item.is-open { background: rgba(13,148,136,.28); }
- .code-editor-workspace {
- display: flex; flex-direction: column; min-width: 0; min-height: 0;
- }
- .code-editor-tabs {
- display: flex; gap: 2px; overflow-x: auto; flex-shrink: 0;
- background: #252526; border-bottom: 1px solid #333; padding: 0.2rem 0.25rem 0;
- min-height: 34px;
- }
- .editor-tab {
- appearance: none; border: 0; background: #2d2d2d; color: #ccc;
- padding: 0.35rem 0.55rem; border-radius: 6px 6px 0 0;
- display: inline-flex; align-items: center; gap: 0.4rem;
- cursor: pointer; font: inherit; font-size: 0.8rem; white-space: nowrap;
- border: 1px solid transparent; border-bottom: 0;
- }
- .editor-tab.is-active {
- background: #1e1e1e; color: #fff; border-color: #333;
- }
- .editor-tab.is-dirty .editor-tab-name::after {
- content: " •";
- color: #fbbf24;
- }
- .editor-tab-close {
- appearance: none; border: 0; background: transparent; color: #999;
- padding: 0 2px; line-height: 1; cursor: pointer; border-radius: 3px;
- }
- .editor-tab-close:hover { background: rgba(255,255,255,.12); color: #fff; }
- .monaco-host { flex: 1; min-height: 0; }
- .upload-dropzone {
- border: 1.5px dashed #cbd5e1;
- border-radius: 10px;
- background: #f8fafc;
- padding: 1.25rem;
- text-align: center;
- transition: border-color 0.15s ease, background 0.15s ease;
- outline: none;
- }
- .upload-dropzone.is-dragover {
- border-color: var(--accent);
- background: rgba(13, 148, 136, 0.08);
- }
- .upload-dropzone-inner { pointer-events: none; }
- .upload-dropzone-inner .btn-group { pointer-events: auto; }
- .upload-drop-icon {
- font-size: 1.75rem;
- color: var(--accent);
- display: block;
- margin-bottom: 0.35rem;
- }
- .upload-queue {
- max-height: 260px;
- overflow: auto;
- border: 1px solid #e2e8f0;
- border-radius: 8px;
- background: #fff;
- }
- .upload-queue:empty {
- display: none;
- }
- .upload-queue-item {
- display: grid;
- grid-template-columns: 1fr auto auto;
- gap: 0.5rem;
- align-items: center;
- padding: 0.45rem 0.65rem;
- border-bottom: 1px solid #f1f5f9;
- font-size: 0.82rem;
- }
- .upload-queue-item:last-child { border-bottom: 0; }
- .upload-queue-item .path {
- min-width: 0;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
- }
- .upload-queue-item .size { color: #64748b; }
- .upload-queue-item .st { min-width: 3.5rem; text-align: right; color: #64748b; }
- .upload-queue-item.is-ok .st { color: #0f766e; }
- .upload-queue-item.is-err .st { color: #b91c1c; }
- .upload-queue-item.is-run .st { color: #0369a1; }
- .progress-bar.bg-teal { background-color: var(--accent) !important; }
- .site-modules-list {
- display: grid;
- gap: 0.65rem;
- }
- .site-module-card {
- display: grid;
- grid-template-columns: 1fr auto;
- gap: 0.75rem;
- align-items: start;
- padding: 0.75rem 0.85rem;
- border: 1px solid #e2e8f0;
- border-radius: 10px;
- background: #fff;
- }
- .site-module-card .meta { min-width: 0; }
- .site-module-card .name {
- font-weight: 600;
- font-size: 0.95rem;
- }
- .site-module-card .name-en {
- font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
- font-size: 0.78rem;
- color: #64748b;
- }
- .site-module-card .desc {
- margin-top: 0.25rem;
- font-size: 0.82rem;
- color: #475569;
- }
- .site-module-card .actions {
- display: flex;
- flex-direction: column;
- gap: 0.35rem;
- align-items: stretch;
- min-width: 5.5rem;
- }
- .site-settings-layout {
- display: grid;
- grid-template-columns: 168px 1fr;
- min-height: 420px;
- }
- .site-settings-nav {
- display: flex;
- flex-direction: column;
- gap: 2px;
- padding: 0.75rem 0.5rem;
- background: #f8fafc;
- border-right: 1px solid #e2e8f0;
- min-height: 0;
- overflow: auto;
- }
- .site-settings-tab {
- appearance: none; border: 0; background: transparent;
- text-align: left; padding: 0.55rem 0.75rem; border-radius: 8px;
- font: inherit; font-size: 0.88rem; color: #334155; cursor: pointer;
- }
- .site-settings-tab:hover { background: #e2e8f0; }
- .site-settings-tab.is-active {
- background: rgba(13, 148, 136, 0.14);
- color: #0f766e;
- font-weight: 600;
- }
- .site-settings-panels { padding: 1rem 1.15rem; min-width: 0; min-height: 0; }
- .site-settings-panel { display: none; }
- .site-settings-panel.is-active { display: block; }
- .site-nginx-monaco {
- min-height: 280px;
- height: min(420px, 50vh);
- border: 1px solid #1e293b;
- border-radius: 8px;
- overflow: hidden;
- background: #1e1e1e;
- }
- .site-log-view {
- margin: 0;
- max-height: min(360px, 50vh);
- overflow: auto;
- padding: 0.75rem;
- background: #0f172a;
- color: #cbd5e1;
- border-radius: 8px;
- font: 0.75rem/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
- white-space: pre-wrap;
- word-break: break-word;
- }
- .site-log-view.table-mode {
- padding: 0;
- white-space: normal;
- font: inherit;
- }
- .site-log-view.table-mode table {
- width: 100%;
- margin: 0;
- color: #e2e8f0;
- font-size: 0.75rem;
- border-collapse: collapse;
- table-layout: auto;
- }
- .site-log-view.table-mode th,
- .site-log-view.table-mode td {
- padding: 0.4rem 0.55rem;
- border-bottom: 1px solid #1e293b;
- vertical-align: top;
- white-space: nowrap;
- }
- .site-log-view.table-mode th {
- position: sticky;
- top: 0;
- background: #1e293b;
- color: #94a3b8;
- font-weight: 600;
- z-index: 1;
- }
- .site-log-view.table-mode td.uri {
- white-space: normal;
- word-break: break-all;
- max-width: clamp(12rem, 32vw, 40rem);
- }
- .site-log-view.table-mode .status-ok { color: #4ade80; }
- .site-log-view.table-mode .status-redir { color: #38bdf8; }
- .site-log-view.table-mode .status-client { color: #fbbf24; }
- .site-log-view.table-mode .status-server { color: #f87171; }
- .site-log-empty {
- padding: 1rem;
- color: #94a3b8;
- }
- .analytics-ip-link {
- color: #0d9488;
- cursor: pointer;
- text-decoration: underline;
- text-underline-offset: 2px;
- }
- .analytics-ip-link:hover {
- color: #0f766e;
- }
- .site-log-ip-filter {
- display: inline-flex;
- align-items: center;
- gap: 0.15rem;
- font-weight: 500;
- color: #334155;
- }
- .site-log-search {
- width: min(260px, 100%);
- min-width: 160px;
- }
- .site-log-ip-filter .btn-close {
- width: 0.55em;
- height: 0.55em;
- padding: 0.15em;
- opacity: 0.55;
- }
- .site-log-ip-filter .btn-close:hover {
- opacity: 0.9;
- }
- .sites-link {
- color: var(--accent);
- text-decoration: none;
- cursor: pointer;
- }
- .sites-link:hover { text-decoration: underline; }
- .site-ssl-pem {
- font-size: 0.78rem;
- line-height: 1.4;
- resize: vertical;
- min-height: 140px;
- }
- .site-ssl-domain-list {
- max-height: 180px;
- overflow: auto;
- }
- .site-ssl-domain-list .form-check {
- margin-bottom: 0.35rem;
- }
- .site-ssl-domain-list .form-check:last-child {
- margin-bottom: 0;
- }
- .site-ssl-domain-list .host {
- font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
- font-size: 0.82rem;
- }
- .site-ssl-domain-list .port-hint {
- color: #64748b;
- font-size: 0.75rem;
- margin-left: 0.35rem;
- }
- #task-badge .badge { font-size: 0.65rem; }
- #task-badge.has-active { border-color: #fbbf24; }
- @media (max-width: 900px) {
- html, body {
- height: auto;
- overflow: auto;
- }
- .app {
- flex-direction: column;
- height: auto;
- min-height: 100vh;
- }
- .rail {
- width: 100%;
- height: auto;
- position: relative;
- }
- .nav { flex-direction: row; flex-wrap: wrap; }
- .main {
- height: auto;
- overflow: visible;
- }
- .view.is-active {
- overflow: visible;
- height: auto;
- }
- .view.is-active > .card {
- flex: none;
- overflow: visible;
- }
- .view.is-active > .card > .table-responsive,
- .view.is-active > .card > .card-body {
- overflow: visible;
- }
- .task-panel { padding: 0.75rem; }
- .task-panel-dialog { height: min(720px, 90vh); }
- .task-panel-body { grid-template-columns: 1fr; }
- .task-side { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); max-height: 220px; }
- }
- .site-modules-list {
- display: grid;
- gap: 0.65rem;
- }
- .site-module-card {
- display: grid;
- grid-template-columns: 1fr auto;
- gap: 0.75rem;
- align-items: start;
- padding: 0.75rem 0.85rem;
- border: 1px solid #e2e8f0;
- border-radius: 10px;
- background: #fff;
- }
- .site-module-card .meta { min-width: 0; }
- .site-module-card .name {
- font-weight: 600;
- font-size: 0.95rem;
- }
- .site-module-card .name-en {
- font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
- font-size: 0.78rem;
- color: #64748b;
- }
- .site-module-card .desc {
- margin-top: 0.25rem;
- font-size: 0.82rem;
- color: #475569;
- }
- .site-module-card .actions {
- display: flex;
- flex-direction: column;
- gap: 0.35rem;
- align-items: stretch;
- min-width: 5.5rem;
- }
|