Files
xk-hy-forward-go/internal/forward/testweb/web/t.css

225 lines
5.6 KiB
CSS
Raw Normal View History

2026-05-28 17:04:29 +08:00
:root {
--bg: #1e1e2e;
--sidebar: #181825;
--surface: #252536;
--surface2: #2d2d44;
--border: #3d3d5c;
--text: #e8e8f0;
--muted: #9393b0;
--accent: #7c6cf0;
--accent-hover: #9588f5;
--send: #f59e0b;
--send-hover: #fbbf24;
--ok: #4ade80;
--err: #f87171;
--warn: #fbbf24;
}
* { box-sizing: border-box; }
body {
margin: 0;
font-family: "Segoe UI", "PingFang SC", system-ui, sans-serif;
background: var(--bg);
color: var(--text);
font-size: 13px;
height: 100vh;
overflow: hidden;
}
.app { display: flex; flex-direction: column; height: 100vh; }
.topbar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.5rem 1rem;
background: var(--sidebar);
border-bottom: 1px solid var(--border);
flex-wrap: wrap;
gap: 0.5rem;
}
.brand { display: flex; align-items: center; gap: 0.5rem; }
.logo {
width: 28px; height: 28px;
background: linear-gradient(135deg, var(--accent), #ec4899);
border-radius: 6px;
display: flex; align-items: center; justify-content: center;
font-weight: 700; font-size: 14px;
}
.title { font-weight: 600; font-size: 14px; }
.connect-bar { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.connect-bar .label { color: var(--muted); margin-right: 0.25rem; }
.connect-results { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-left: 0.5rem; }
.badge {
padding: 0.15rem 0.45rem;
border-radius: 4px;
font-size: 11px;
border: 1px solid var(--border);
background: var(--surface);
}
.badge.ok { border-color: var(--ok); color: var(--ok); }
.badge.err { border-color: var(--err); color: var(--err); }
.layout { display: flex; flex: 1; min-height: 0; }
.sidebar {
width: 280px;
background: var(--sidebar);
border-right: 1px solid var(--border);
display: flex;
flex-direction: column;
min-height: 0;
}
.sidebar-head {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.65rem 0.75rem;
border-bottom: 1px solid var(--border);
}
.sidebar-head h2 { margin: 0; font-size: 13px; font-weight: 600; }
.meta-hint {
padding: 0.4rem 0.75rem;
font-size: 11px;
color: var(--muted);
border-bottom: 1px solid var(--border);
word-break: break-all;
}
.log-list {
list-style: none;
margin: 0;
padding: 0;
overflow-y: auto;
flex: 1;
}
.log-list li {
padding: 0.5rem 0.75rem;
border-bottom: 1px solid var(--border);
cursor: pointer;
transition: background 0.1s;
}
.log-list li:hover { background: var(--surface); }
.log-list li.active { background: var(--surface2); border-left: 3px solid var(--accent); }
.log-list .name { font-weight: 500; font-size: 12px; }
.log-list .sub { color: var(--muted); font-size: 11px; margin-top: 0.15rem; }
.workspace {
flex: 1;
display: flex;
flex-direction: column;
min-width: 0;
min-height: 0;
}
.toolbar {
display: flex;
gap: 0.35rem;
padding: 0.5rem 0.75rem;
border-bottom: 1px solid var(--border);
flex-wrap: wrap;
}
.url-bar {
display: flex;
gap: 0.35rem;
padding: 0.5rem 0.75rem;
background: var(--surface);
border-bottom: 1px solid var(--border);
}
.url-bar select {
width: 72px;
background: var(--surface2);
border: 1px solid var(--border);
color: var(--text);
border-radius: 4px;
padding: 0.35rem;
}
.url-input {
flex: 1;
background: var(--bg);
border: 1px solid var(--border);
color: var(--text);
border-radius: 4px;
padding: 0.4rem 0.6rem;
font-family: ui-monospace, monospace;
font-size: 12px;
}
.tabs {
display: flex;
gap: 0;
padding: 0 0.75rem;
background: var(--surface);
border-bottom: 1px solid var(--border);
}
.tab {
background: none;
border: none;
color: var(--muted);
padding: 0.55rem 1rem;
cursor: pointer;
border-bottom: 2px solid transparent;
font-size: 13px;
}
.tab:hover { color: var(--text); }
.tab.active {
color: var(--accent);
border-bottom-color: var(--accent);
}
.tab-panels { flex: 1; min-height: 0; overflow: hidden; position: relative; }
.panel {
display: none;
height: 100%;
overflow: auto;
padding: 0.75rem;
}
.panel.active { display: flex; flex-direction: column; }
.btn {
background: var(--surface2);
border: 1px solid var(--border);
color: var(--text);
border-radius: 4px;
padding: 0.35rem 0.65rem;
cursor: pointer;
font-size: 12px;
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.send { background: var(--send); border-color: var(--send); color: #1a1a1a; font-weight: 600; }
.btn.send:hover { background: var(--send-hover); }
.btn.sm { padding: 0.2rem 0.45rem; font-size: 11px; }
.kv-table { width: 100%; border-collapse: collapse; }
.kv-table th, .kv-table td {
border: 1px solid var(--border);
padding: 0.35rem 0.5rem;
text-align: left;
}
.kv-table th { background: var(--surface2); color: var(--muted); font-weight: 500; }
.kv-table input {
width: 100%;
background: var(--bg);
border: 1px solid transparent;
color: var(--text);
padding: 0.25rem;
font-size: 12px;
}
.kv-table input:focus { border-color: var(--accent); outline: none; }
#body-raw {
flex: 1;
min-height: 200px;
background: var(--bg);
border: 1px solid var(--border);
color: var(--text);
border-radius: 4px;
padding: 0.6rem;
font-family: ui-monospace, monospace;
font-size: 12px;
resize: vertical;
}
.body-info { color: var(--muted); font-size: 11px; margin-bottom: 0.35rem; }
.code-block {
flex: 1;
margin: 0;
background: var(--bg);
border: 1px solid var(--border);
border-radius: 4px;
padding: 0.6rem;
overflow: auto;
font-family: ui-monospace, monospace;
font-size: 12px;
white-space: pre-wrap;
word-break: break-all;
}