/* Stackwatch : suivi des mises à jour de stacks docker compose. Même charte qu'Up And Down et Excalicloud : jetons clair/sombre, coque, dialogues. */ :root { --bg: #ffffff; --panel: #ffffff; --panel-2: #ececf4; /* --color-surface-low : boutons, champs */ --hover: #f1f0ff; /* --color-surface-high */ --fg: #1b1b1f; --muted: #7a7a7a; --border: #ebebeb; --accent: #6965db; --accent-hover: #5753d0; --accent-soft: #e0dfff; --accent-fg: #ffffff; --danger: #c92a2a; --danger-soft: #ffe3e3; --ok: #2b8a3e; --warn: #e67700; --folder: var(--accent); /* dossiers dans la couleur d'accent, comme Excalicloud */ --shadow: 0 0 0.93px 0 rgb(0 0 0 / 0.17), 0 0 3.13px 0 rgb(0 0 0 / 0.08), 0 7px 14px 0 rgb(0 0 0 / 0.05); --shadow-lg: 0 100px 80px rgb(0 0 0 / 0.07), 0 41.8px 33.4px rgb(0 0 0 / 0.05), 0 22.3px 17.9px rgb(0 0 0 / 0.042), 0 12.5px 10px rgb(0 0 0 / 0.035), 0 6.65px 5.3px rgb(0 0 0 / 0.028), 0 2.77px 2.2px rgb(0 0 0 / 0.02); --radius: 0.5rem; --radius-sm: 0.375rem; --btn: 2.25rem; --topbar-h: 48px; --sidebar-w: 248px; --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; color-scheme: light; } :root[data-theme="dark"] { --bg: #0f1218; --panel: #171b24; --panel-2: #1e2330; --hover: #222838; --fg: #e6e9f2; --muted: #8e95aa; --border: #2a3042; --accent: #6e9bff; --accent-hover: #8cb0ff; --accent-soft: #22325a; --accent-fg: #0b1020; --danger: #ff8787; --danger-soft: #4a1d1d; --ok: #69db7c; --warn: #ffa94d; --folder: var(--accent); --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 4px 14px rgb(0 0 0 / 0.3); --shadow-lg: 0 20px 50px rgb(0 0 0 / 0.6); color-scheme: dark; } * { box-sizing: border-box; } html, body, #root { margin: 0; height: 100%; background: var(--bg); color: var(--fg); font: 14px/1.45 var(--font); } html, body { overflow: hidden; } a { color: var(--accent); } code, pre { font-family: var(--mono); font-size: 0.85em; } .muted { color: var(--muted); } .spacer { flex: 1; } .grow { flex: 1; min-width: 0; } .block { display: block; } .small-text { font-size: 12px; margin: 0.25rem 0; } .center { text-align: center; } .splash { height: 100%; display: grid; place-items: center; } /* --- Boutons ------------------------------------------------------------------ */ button, .ex-btn, .actions a { -webkit-tap-highlight-color: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; height: var(--btn); padding: 0 0.75rem; font: 500 13px/1 var(--font); color: var(--fg); background: var(--panel-2); border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; text-decoration: none; white-space: nowrap; } button svg, .ex-btn svg { flex: none; } button:hover:not(:disabled), .ex-btn:hover { background: var(--hover); } button:focus-visible, .ex-btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; } button:active:not(:disabled), .ex-btn:active { border-color: var(--accent-hover); } button:disabled { opacity: 0.45; cursor: default; } button.primary, .ex-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); } button.primary:hover:not(:disabled), .ex-btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); } button.danger-fill { background: var(--danger); border-color: var(--danger); color: #fff; } .ex-btn.danger, button.danger-outline { color: var(--danger); } button.big, .ex-btn.big { height: 2.75rem; padding: 0 1.2rem; font-size: 14px; } .ex-btn.square { width: var(--btn); padding: 0; } .icon-btn { width: 2rem; height: 2rem; padding: 0; background: transparent; border-color: transparent; color: var(--fg); text-decoration: none; } .icon-btn:hover:not(:disabled) { background: var(--hover); color: var(--fg); } .icon-btn.on { background: var(--accent-soft); color: var(--accent); } .icon-btn.danger { color: var(--danger); } button.link { height: auto; padding: 0; border: none; background: none; color: var(--accent); font-weight: 500; } .flip { transform: rotate(180deg); } /* --- Champs ------------------------------------------------------------------- */ input[type="text"], input[type="search"], input[type="email"], input[type="password"], input[type="number"], input:not([type]), select { height: var(--btn); padding: 0 0.7rem; font: 14px var(--font); color: var(--fg); background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius); min-width: 0; } input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):hover, select:hover { border-color: var(--accent-hover); } input:focus, select:focus { border-color: var(--accent); } select { padding-right: 0.4rem; } .field { display: flex; flex-direction: column; gap: 0.3rem; } .field > span { font-size: 12px; font-weight: 600; color: var(--muted); } .field input, .field select { width: 100%; } .check-row { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0.6rem 0; } .check-row input { margin-top: 0.2rem; } .inline-form { display: flex; gap: 0.6rem; align-items: flex-end; margin: 0.5rem 0; } .inline-form > input { flex: 1; } .form { display: flex; flex-direction: column; gap: 0.85rem; } .form h4, .section h4 { margin: 1.2rem 0 0.2rem; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); } .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; } /* --- Messages ----------------------------------------------------------------- */ .error { margin: 0.5rem 0; padding: 0.55rem 0.8rem; border-radius: var(--radius-sm); background: var(--danger-soft); color: var(--danger); cursor: pointer; white-space: pre-line; } .error.floating { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 3000; } .error-text { color: var(--danger); } .notice { margin: 0.5rem 0; padding: 0.55rem 0.8rem; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--fg); } .badge { display: inline-block; min-width: 1.35rem; padding: 0.05rem 0.4rem; margin-left: 0.35rem; border-radius: 999px; background: var(--accent); color: var(--accent-fg); font-size: 11px; font-weight: 700; text-align: center; } .pill { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.05rem 0.5rem; margin: 0 0.4rem; border-radius: 999px; background: var(--panel-2); color: var(--muted); font-size: 11px; font-weight: 600; } .app { height: 100%; display: flex; flex-direction: column; } .topbar { flex: none; height: var(--topbar-h); display: flex; align-items: center; gap: 0.4rem; padding: 0 0.9rem; background: var(--panel); border-bottom: 1px solid var(--border); } .brand { display: flex; align-items: center; gap: 0.55rem; color: var(--fg); font-weight: 700; font-size: 16px; text-decoration: none; min-width: 0; } .brand svg { color: var(--accent); } .brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .topbar-tools { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; padding-left: 0.5rem; border-left: 1px solid var(--border); } .logo { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; } .menu-btn { display: none; } .user-btn { gap: 0.5rem; padding: 0 0.6rem 0 0.3rem; height: 2.25rem; border-radius: 999px; } .avatar { width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-fg); font-size: 12px; font-weight: 700; } .user-name { max-width: 12rem; overflow: hidden; text-overflow: ellipsis; } .layout { flex: 1; min-height: 0; display: grid; grid-template-columns: var(--sidebar-w) 5px minmax(0, 1fr); } .sidebar { display: flex; flex-direction: column; justify-content: space-between; min-height: 0; overflow: auto; padding: 0.7rem 0.5rem; background: var(--panel); } .sidebar nav { display: flex; flex-direction: column; gap: 2px; } .nav-item { justify-content: flex-start; width: 100%; height: 2.5rem; border-color: transparent; background: transparent; font-size: 14px; color: var(--fg); } .nav-item svg { color: var(--muted); } .nav-item.on { background: var(--accent-soft); color: var(--accent); } .nav-item.on svg { color: var(--accent); } .sidebar-foot { padding: 0.7rem 0.6rem 0.2rem; display: flex; flex-direction: column; gap: 0.5rem; } .main { min-width: 0; min-height: 0; background: var(--bg); } .scrim { display: none; } /* --- Explorateur --------------------------------------------------------------- */ .menu-popup { position: fixed; z-index: 3500; min-width: 14rem; max-width: 20rem; padding: 0.35rem; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); } .menu-popup button, .menu-popup a { display: flex; width: 100%; justify-content: flex-start; height: 2.2rem; border: none; background: transparent; font-weight: 500; } .menu-popup button:hover, .menu-popup a:hover { background: var(--hover); } .menu-popup .danger { color: var(--danger); } .menu-popup hr { border: none; border-top: 1px solid var(--border); margin: 0.3rem 0; } .menu-popup .size { display: block; padding: 0.3rem 0.7rem 0.1rem; font-size: 11px; white-space: pre-line; } .menu-head { display: flex; flex-direction: column; padding: 0.4rem 0.7rem; min-width: 12rem; } /* --- Fenêtres ---------------------------------------------------------------------- */ .modal-backdrop { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 1rem; background: rgb(10 14 28 / 0.5); } .modal { width: min(560px, 100%); max-height: min(86vh, 900px); overflow: auto; padding: 1.2rem 1.3rem; background: var(--panel); border-radius: 14px; box-shadow: var(--shadow-lg); } .modal.small { width: min(420px, 100%); } .modal.share-dialog { width: min(680px, 100%); } .modal.settings { width: min(900px, 100%); height: min(86vh, 760px); display: flex; flex-direction: column; padding: 0; overflow: hidden; } .modal h3 { margin: 0 0 0.6rem; font-size: 17px; } .modal-actions { display: flex; align-items: center; gap: 0.5rem; margin-top: 1rem; } .modal-text p { margin: 0; } .settings-head { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1.2rem 0; } .settings-head h3 { margin: 0; } .tabs { display: flex; gap: 0.2rem; padding: 0.6rem 1.2rem 0; border-bottom: 1px solid var(--border); overflow-x: auto; } .tabs button { height: 2.3rem; border: none; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--muted); } .tabs button.on { color: var(--accent); border-bottom-color: var(--accent); } .login-card .tabs { padding: 0; margin-bottom: 0.4rem; } .settings-body { flex: 1; overflow: auto; padding: 0.6rem 1.2rem 1.2rem; } .settings .error, .kv { display: grid; grid-template-columns: 11rem 1fr; gap: 0.35rem 1rem; margin: 0.6rem 0 1rem; } .kv dt { color: var(--muted); } .kv dd { margin: 0; } .card { padding: 0.9rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel-2); } .row-between { display: flex; align-items: center; justify-content: space-between; margin: 0.6rem 0; } .secret { margin: 0.8rem 0; padding: 0.8rem; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent-soft); display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; } .secret code { word-break: break-all; user-select: all; } .example { margin: 0; padding: 0.6rem; background: var(--panel); border-radius: var(--radius-sm); overflow-x: auto; max-width: 100%; } .actions-cell { display: flex; gap: 0.3rem; justify-content: flex-end; align-items: center; } .status { padding: 0.1rem 0.5rem; border-radius: 99px; font-size: 11px; font-weight: 600; background: var(--panel-2); } .status.active { color: var(--ok); } .status.pending { color: var(--warn); background: color-mix(in srgb, var(--warn) 15%, transparent); } .status.disabled { color: var(--danger); } /* --- Panneau Détails --------------------------------------------------------------- */ .login { min-height: 100%; display: grid; place-items: center; padding: 1.5rem; overflow: auto; background: radial-gradient(1200px 500px at 50% -10%, var(--accent-soft), transparent), var(--bg); } .login-card { width: min(400px, 100%); padding: 1.6rem; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); } .login-brand { text-align: center; margin-bottom: 1rem; } .login-brand svg { color: var(--accent); } .login-brand .logo { width: 56px; height: 56px; } .login-brand h1 { margin: 0.4rem 0 0.1rem; font-size: 22px; } .login-brand p { margin: 0; } .or { display: flex; align-items: center; gap: 0.8rem; margin: 1rem 0; color: var(--muted); font-size: 12px; } .or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); } .login-card .ex-btn.big { width: 100%; } /* --- Lien de partage ------------------------------------------------------------------------- */ /* --- Stackwatch ----------------------------------------------------------------- */ textarea { width: 100%; padding: 0.5rem 0.7rem; font: 13px/1.4 var(--mono); color: var(--fg); background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius); resize: vertical; } textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; } .splitter-line { border-left: 1px solid var(--border); } .menu-btn-inline { display: none; } .badge.warn { background: var(--warn); color: #fff; } .pill.warn { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); } .nav-item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: left; } .nav-item .badge { margin-left: 0; } .dot { flex: none; width: 10px; height: 10px; margin: 0 3px; border-radius: 50%; background: var(--muted); } .dot.ok { background: var(--ok); } .dot.upd { background: var(--warn); } .dot.err { background: var(--danger); } .dot.off { background: transparent; border: 2px solid var(--muted); } .sidebar-foot button { justify-content: flex-start; } @keyframes spin { to { transform: rotate(360deg); } } .spin { animation: spin 1s linear infinite; } .fleet { height: 100%; display: flex; flex-direction: column; min-height: 0; } .main { position: relative; } .error.floating { z-index: 1000; } .head { flex: none; display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding: 1rem 1.2rem 0.4rem; } .head-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.2rem 0.8rem; } .head h2 { margin: 0; font-size: 20px; } .stats { display: flex; flex-wrap: wrap; gap: 0.4rem; } .stat { padding: 0.15rem 0.65rem; border-radius: 999px; background: var(--panel-2); font-size: 12px; font-weight: 600; color: var(--muted); } .stat.warn { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); } .stat.err { background: var(--danger-soft); color: var(--danger); } .toolbar { flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; padding: 0.5rem 1.2rem 0.7rem; border-bottom: 1px solid var(--border); } .segmented { display: inline-flex; padding: 2px; border-radius: var(--radius); background: var(--panel-2); } .segmented button { height: 2rem; background: transparent; } .segmented button.on { background: var(--panel); color: var(--accent); box-shadow: var(--shadow); } .searchbox { display: flex; align-items: center; gap: 0.4rem; height: var(--btn); padding: 0 0.6rem; min-width: 14rem; background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius); color: var(--muted); } .searchbox:focus-within { border-color: var(--accent); } .searchbox input { flex: 1; height: 100%; padding: 0; border: none; background: transparent; outline: none !important; } .scroll { flex: 1; min-height: 0; overflow: auto; padding: 0.6rem 1.2rem 3rem; } .empty-state { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; padding: 2rem; text-align: center; color: var(--muted); } .empty-state h2 { margin: 0; color: var(--fg); } .empty-state p { max-width: 34rem; margin: 0; } .row-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 0.6rem; } .server-block { margin: 0.6rem 0 1.4rem; } .server-head { display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0; border-bottom: 2px solid var(--accent-soft); } .server-head svg { color: var(--accent); } .server-head h3 { margin: 0; font-size: 16px; } .target { margin: 0.4rem 0 0.9rem; } .target-head { display: flex; align-items: center; flex-wrap: wrap; gap: 0.2rem 0.7rem; padding: 0.3rem 0; font-size: 12px; } .target-head .roots { font-family: var(--mono); } .running { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--accent); } .pad { margin: 0.4rem 0.2rem; } .error.static { cursor: default; display: flex; align-items: flex-start; gap: 0.4rem; } .warn-notice { background: color-mix(in srgb, var(--warn) 15%, transparent); display: flex; align-items: center; gap: 0.4rem; color: var(--warn); } .stacks { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; } .stack { border-bottom: 1px solid var(--border); background: var(--panel); } .stack:last-child { border-bottom: none; } .stack.st-updates { box-shadow: inset 3px 0 0 var(--warn); } .stack.st-error { box-shadow: inset 3px 0 0 var(--danger); } .stack-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0.7rem 0.4rem 0.3rem; min-height: 3rem; cursor: pointer; } .stack-row:hover { background: var(--hover); } .status-pill { flex: none; display: inline-flex; align-items: center; gap: 0.3rem; min-width: 6.6rem; justify-content: center; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--panel-2); color: var(--muted); } .status-pill.st-uptodate { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); } .status-pill.st-updates { color: var(--warn); background: color-mix(in srgb, var(--warn) 18%, transparent); } .status-pill.st-error { color: var(--danger); background: var(--danger-soft); } .stack-name { flex: 1; min-width: 0; display: flex; flex-direction: column; } .stack-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 11px; } .stack-meta { flex: 0 1 28rem; min-width: 0; font-size: 12px; text-align: right; } .clip { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .stack-detail { padding: 0.2rem 1rem 0.9rem 2.6rem; } .services { width: 100%; margin: 0.5rem 0; border-collapse: collapse; } .services th, .services td { padding: 0.35rem 0.6rem 0.35rem 0; border-bottom: 1px solid var(--border); text-align: left; font-size: 12.5px; } .services th { color: var(--muted); font-size: 11px; font-weight: 600; } .svc { font-weight: 700; font-size: 11px; } .svc.ok { color: var(--ok); } .svc.update { color: var(--warn); } .svc.unknown { color: var(--muted); } /* Fenêtres : serveur, clé */ .modal.wide { width: min(720px, 100%); } .settings-head.flat { padding: 0 0 0.4rem; } .grid-host { display: grid; grid-template-columns: 1fr 6rem; gap: 0.6rem; } .grid-target { display: grid; grid-template-columns: 1fr 12rem auto; gap: 0.6rem; align-items: end; margin-bottom: 0.6rem; } .target-form { display: flex; flex-direction: column; gap: 0.2rem; } .ping { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.5rem; font-size: 12.5px; } .ping.ok { color: var(--ok); } .ping.ko { color: var(--danger); } .keyhelp summary { cursor: pointer; font-weight: 600; } .example { white-space: pre-wrap; word-break: break-all; user-select: all; } .users { width: 100%; border-collapse: collapse; } .users th, .users td { padding: 0.5rem; border-bottom: 1px solid var(--border); text-align: left; font-size: 13px; } .users th { color: var(--muted); font-size: 12px; } .users tr.disabled td { opacity: 0.6; } @media (max-width: 860px) { .layout { grid-template-columns: minmax(0, 1fr); } .splitter-line { display: none; } .menu-btn-inline { display: inline-flex; } .brand span, .user-name, .hide-sm { display: none; } .sidebar { position: fixed; z-index: 2600; top: var(--topbar-h); bottom: 0; left: 0; width: min(280px, 82vw); transform: translateX(-100%); transition: transform 0.2s; box-shadow: var(--shadow-lg); } .sidebar.open { transform: none; } .scrim { display: block; position: fixed; inset: var(--topbar-h) 0 0 0; z-index: 2550; background: rgb(10 14 28 / 0.45); } .head, .toolbar, .scroll { padding-left: 0.7rem; padding-right: 0.7rem; } .searchbox { min-width: 100%; order: 5; } .stack-row { flex-wrap: wrap; } .stack-meta { flex-basis: 100%; text-align: left; padding-left: 2.4rem; } .stack-detail { padding-left: 0.8rem; overflow-x: auto; } .grid2, .grid-host, .grid-target, .kv { grid-template-columns: 1fr; } }