mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 03:10:46 +08:00
2346 lines
37 KiB
CSS
2346 lines
37 KiB
CSS
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
font-family: Inter, "Segoe UI", Arial, sans-serif;
|
|
background: #eef2f7;
|
|
color: #1f2937;
|
|
}
|
|
|
|
#root {
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.app--shell {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.app-brand {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
height: 52px;
|
|
padding: 0 24px;
|
|
background: linear-gradient(90deg, #1565c0 0%, #1e88e5 55%, #2196f3 100%);
|
|
box-shadow: 0 2px 8px rgba(21, 101, 192, 0.25);
|
|
}
|
|
|
|
.app-brand__logo {
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.4px;
|
|
color: #fff;
|
|
text-decoration: none;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.app-brand__logo--static {
|
|
display: inline-block;
|
|
}
|
|
|
|
.app-brand__sep {
|
|
width: 1px;
|
|
height: 22px;
|
|
background: rgba(255, 255, 255, 0.35);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.app-brand__start {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.app-brand__apps {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 36px;
|
|
height: 36px;
|
|
padding: 0;
|
|
border: none;
|
|
border-radius: 4px;
|
|
background: transparent;
|
|
color: #fff;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.app-brand__apps:hover,
|
|
.app-brand__apps:focus-visible {
|
|
background: rgba(255, 255, 255, 0.16);
|
|
outline: none;
|
|
}
|
|
|
|
.app-brand__module-title {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: #fff;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.app-brand__actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.app-main {
|
|
flex: 1;
|
|
padding: 20px 28px 32px;
|
|
background: #eef2f7;
|
|
color: #1f2937;
|
|
}
|
|
|
|
.workbench {
|
|
max-width: 1280px;
|
|
}
|
|
|
|
.wb-section {
|
|
margin-bottom: 28px;
|
|
}
|
|
|
|
.wb-section__title {
|
|
margin: 0 0 14px;
|
|
padding-bottom: 10px;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
color: #334155;
|
|
border-bottom: 1px solid #d8dee8;
|
|
}
|
|
|
|
.wb-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
gap: 14px;
|
|
}
|
|
|
|
.wb-card {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
min-height: 72px;
|
|
padding: 14px 16px;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 4px;
|
|
background: #fff;
|
|
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
|
|
cursor: pointer;
|
|
text-align: left;
|
|
text-decoration: none;
|
|
color: inherit;
|
|
transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
|
|
}
|
|
|
|
.wb-card:hover {
|
|
border-color: #90caf9;
|
|
box-shadow: 0 4px 14px rgba(33, 150, 243, 0.15);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.wb-card__icon {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 4px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.wb-card__icon--blue {
|
|
background: #e3f2fd;
|
|
color: #1565c0;
|
|
}
|
|
|
|
.wb-card__icon--green {
|
|
background: #e8f5e9;
|
|
color: #2e7d32;
|
|
}
|
|
|
|
.wb-card__icon--amber {
|
|
background: #fff8e1;
|
|
color: #f57f17;
|
|
}
|
|
|
|
.wb-card__icon--slate {
|
|
background: #eceff1;
|
|
color: #455a64;
|
|
}
|
|
|
|
.wb-card__text {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.wb-card__label {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: #1e293b;
|
|
}
|
|
|
|
.wb-card__desc {
|
|
font-size: 12px;
|
|
color: #64748b;
|
|
line-height: 1.35;
|
|
}
|
|
|
|
.conn-pill--on-brand {
|
|
border-color: rgba(255, 255, 255, 0.35);
|
|
background: rgba(255, 255, 255, 0.12);
|
|
color: #fff;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.header-menu__trigger--on-brand {
|
|
border-color: rgba(255, 255, 255, 0.45);
|
|
background: rgba(255, 255, 255, 0.12);
|
|
color: #fff;
|
|
}
|
|
|
|
.header-menu__trigger--on-brand:hover,
|
|
.header-menu__trigger--on-brand:focus-visible {
|
|
background: rgba(255, 255, 255, 0.22);
|
|
border-color: #fff;
|
|
}
|
|
|
|
.header-menu__panel--light {
|
|
background: #fff;
|
|
border-color: #e2e8f0;
|
|
box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
|
|
}
|
|
|
|
.header-menu__label--light {
|
|
color: #64748b;
|
|
}
|
|
|
|
.header-menu__item--light {
|
|
color: #334155;
|
|
}
|
|
|
|
.header-menu__item--light:hover {
|
|
background: #f1f5f9;
|
|
color: #0f172a;
|
|
}
|
|
|
|
.header-menu__item--active-light {
|
|
background: #e3f2fd;
|
|
color: #1565c0;
|
|
}
|
|
|
|
.header-menu {
|
|
position: relative;
|
|
}
|
|
|
|
.header-menu__trigger {
|
|
min-width: 36px;
|
|
height: 36px;
|
|
padding: 0 10px;
|
|
font-size: 20px;
|
|
line-height: 1;
|
|
letter-spacing: 0.12em;
|
|
}
|
|
|
|
.header-menu__trigger:hover,
|
|
.header-menu__trigger:focus-visible {
|
|
border-color: #3d82f7;
|
|
outline: none;
|
|
}
|
|
|
|
.header-menu__panel {
|
|
position: absolute;
|
|
top: calc(100% + 6px);
|
|
right: 0;
|
|
z-index: 50;
|
|
min-width: 148px;
|
|
padding: 6px;
|
|
border: 1px solid #2c405f;
|
|
border-radius: 10px;
|
|
background: #0f1e34;
|
|
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
|
|
}
|
|
|
|
.header-menu__label {
|
|
padding: 6px 10px 4px;
|
|
font-size: 11px;
|
|
color: #6b7f9c;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.header-menu__item {
|
|
display: block;
|
|
width: 100%;
|
|
text-align: left;
|
|
padding: 8px 10px;
|
|
border: none;
|
|
border-radius: 6px;
|
|
background: transparent;
|
|
color: #c1cde0;
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.header-menu__item:hover {
|
|
background: rgba(61, 130, 247, 0.14);
|
|
color: #dce8ff;
|
|
}
|
|
|
|
.header-menu__item--active {
|
|
background: rgba(61, 130, 247, 0.22);
|
|
color: #dce8ff;
|
|
}
|
|
|
|
.app-main button,
|
|
.app-main select,
|
|
.app-main input,
|
|
.app-main textarea {
|
|
border: 1px solid #cbd5e1;
|
|
background: #fff;
|
|
color: #1f2937;
|
|
border-radius: 6px;
|
|
padding: 8px 10px;
|
|
}
|
|
|
|
button,
|
|
select,
|
|
input,
|
|
textarea {
|
|
border: 1px solid #cbd5e1;
|
|
background: #fff;
|
|
color: #1f2937;
|
|
border-radius: 6px;
|
|
padding: 8px 10px;
|
|
}
|
|
|
|
textarea {
|
|
width: 100%;
|
|
resize: vertical;
|
|
}
|
|
|
|
button {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(220px, 1fr));
|
|
gap: 12px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.app-main .card,
|
|
.app-main .panel {
|
|
border: 1px solid #e2e8f0;
|
|
background: #fff;
|
|
border-radius: 8px;
|
|
padding: 14px;
|
|
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
|
|
}
|
|
|
|
.card,
|
|
.panel {
|
|
border: 1px solid #e2e8f0;
|
|
background: #fff;
|
|
border-radius: 8px;
|
|
padding: 14px;
|
|
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
|
|
}
|
|
|
|
.card h3,
|
|
.panel h2 {
|
|
margin: 0 0 10px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.card__section-title {
|
|
margin: 14px 0 8px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.card input:not([type="checkbox"]):not([type="radio"]),
|
|
.card select,
|
|
.card textarea {
|
|
width: 100%;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.card input[type="checkbox"],
|
|
.card input[type="radio"] {
|
|
width: auto;
|
|
margin-bottom: 0;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.pager input,
|
|
.pager select {
|
|
width: auto;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.actions-row {
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.actions-row--inline {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: nowrap;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.card--full {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.filter-inline {
|
|
display: grid;
|
|
grid-template-columns: minmax(280px, 2fr) minmax(180px, 1fr) minmax(180px, 1fr) 180px;
|
|
gap: 8px;
|
|
align-items: center;
|
|
}
|
|
|
|
.filter-inline input,
|
|
.filter-inline select {
|
|
width: 100%;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
a {
|
|
color: #1565c0;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.muted {
|
|
color: #64748b;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
th,
|
|
td {
|
|
border-bottom: 1px solid #e2e8f0;
|
|
padding: 8px;
|
|
text-align: left;
|
|
font-size: 13px;
|
|
vertical-align: top;
|
|
color: #334155;
|
|
}
|
|
|
|
th {
|
|
color: #64748b;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.split {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 12px;
|
|
}
|
|
|
|
pre {
|
|
white-space: pre-wrap;
|
|
margin: 0;
|
|
background: #091425;
|
|
border: 1px solid #223651;
|
|
border-radius: 8px;
|
|
padding: 10px;
|
|
}
|
|
|
|
.ws-log-panel {
|
|
margin-top: 12px;
|
|
max-height: 240px;
|
|
overflow-y: auto;
|
|
background: #f8fafc;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 8px;
|
|
padding: 8px 10px;
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
font-size: 12px;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.ws-log-line {
|
|
padding: 3px 0;
|
|
border-bottom: 1px solid #e8edf3;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.ws-log-line:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.ws-log-line--error {
|
|
color: #c62828;
|
|
}
|
|
|
|
.ws-log-line--warning {
|
|
color: #e65100;
|
|
}
|
|
|
|
.ws-log-line--info {
|
|
color: #475569;
|
|
}
|
|
|
|
.ws-log-ts {
|
|
color: #94a3b8;
|
|
margin-right: 8px;
|
|
}
|
|
|
|
.pill {
|
|
margin-top: 8px;
|
|
padding: 6px 10px;
|
|
border-radius: 6px;
|
|
width: fit-content;
|
|
font-size: 12px;
|
|
background: #f1f5f9;
|
|
color: #334155;
|
|
border: 1px solid #e2e8f0;
|
|
}
|
|
|
|
.pill--high {
|
|
background: #ffebee;
|
|
border-color: #ffcdd2;
|
|
color: #b71c1c;
|
|
}
|
|
|
|
.pill--medium {
|
|
background: #fff8e1;
|
|
border-color: #ffe082;
|
|
color: #e65100;
|
|
}
|
|
|
|
.pill--low {
|
|
background: #e8f5e9;
|
|
border-color: #c8e6c9;
|
|
color: #2e7d32;
|
|
}
|
|
|
|
.link-btn {
|
|
border: none;
|
|
background: transparent;
|
|
color: #1565c0;
|
|
padding: 0;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.link-btn--danger {
|
|
color: #c62828;
|
|
}
|
|
|
|
.link-btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.table-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
align-items: center;
|
|
}
|
|
|
|
.status {
|
|
margin-top: 12px;
|
|
color: #9db2cf;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.app-main .conn-pill:not(.conn-pill--on-brand) {
|
|
font-size: 12px;
|
|
border: 1px solid #cbd5e1;
|
|
border-radius: 999px;
|
|
padding: 4px 10px;
|
|
background: #f8fafc;
|
|
color: #475569;
|
|
}
|
|
|
|
.conn-pill {
|
|
font-size: 12px;
|
|
border: 1px solid #cbd5e1;
|
|
border-radius: 999px;
|
|
padding: 4px 10px;
|
|
background: #f8fafc;
|
|
}
|
|
|
|
.conn-pill--up {
|
|
border-color: #a5d6a7;
|
|
color: #2e7d32;
|
|
background: #e8f5e9;
|
|
}
|
|
|
|
.conn-pill--down {
|
|
border-color: #ef9a9a;
|
|
color: #c62828;
|
|
background: #ffebee;
|
|
}
|
|
|
|
.conn-pill--unknown {
|
|
border-color: #cbd5e1;
|
|
color: #64748b;
|
|
}
|
|
|
|
.toast {
|
|
position: fixed;
|
|
right: 20px;
|
|
bottom: 20px;
|
|
padding: 12px 16px;
|
|
border-radius: 8px;
|
|
border: 1px solid #cbd5e1;
|
|
background: #fff;
|
|
color: #1e293b;
|
|
font-size: 14px;
|
|
line-height: 1.45;
|
|
z-index: 60;
|
|
max-width: 420px;
|
|
box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
|
|
}
|
|
|
|
.toast--ok {
|
|
border-color: #81c784;
|
|
background: #e8f5e9;
|
|
color: #1b5e20;
|
|
}
|
|
|
|
.toast--error {
|
|
border-color: #ef9a9a;
|
|
background: #ffebee;
|
|
color: #b71c1c;
|
|
}
|
|
|
|
.inline-spinner {
|
|
display: inline-block;
|
|
width: 14px;
|
|
height: 14px;
|
|
margin-right: 8px;
|
|
border: 2px solid rgba(255, 255, 255, 0.22);
|
|
border-top-color: rgba(255, 255, 255, 0.85);
|
|
border-radius: 50%;
|
|
vertical-align: -2px;
|
|
animation: inline-spin 0.65s linear infinite;
|
|
}
|
|
|
|
@keyframes inline-spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
.conn-pill--warn {
|
|
border-color: #ffe082;
|
|
color: #e65100;
|
|
background: #fff8e1;
|
|
}
|
|
|
|
.app-main .inline-spinner {
|
|
border-color: rgba(21, 101, 192, 0.2);
|
|
border-top-color: #1565c0;
|
|
}
|
|
|
|
.skeleton-line {
|
|
height: 32px;
|
|
border-radius: 8px;
|
|
margin-bottom: 10px;
|
|
background: linear-gradient(90deg, #14253e 25%, #1d3558 50%, #14253e 75%);
|
|
background-size: 200% 100%;
|
|
animation: shimmer 1.4s infinite;
|
|
}
|
|
|
|
.mini-chart {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.mini-chart__row {
|
|
display: grid;
|
|
grid-template-columns: 70px 1fr 36px;
|
|
gap: 8px;
|
|
align-items: center;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.mini-chart__label,
|
|
.mini-chart__value {
|
|
font-size: 12px;
|
|
color: #a8bad5;
|
|
}
|
|
|
|
.card-title-with-hint {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin: 0;
|
|
}
|
|
|
|
.help-hint {
|
|
position: relative;
|
|
display: inline-flex;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.help-hint__trigger {
|
|
width: 18px;
|
|
height: 18px;
|
|
padding: 0;
|
|
border: 1px solid #cbd5e1;
|
|
border-radius: 50%;
|
|
background: #f8fafc;
|
|
color: #64748b;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.help-hint__trigger:hover,
|
|
.help-hint__trigger:focus-visible {
|
|
border-color: #1565c0;
|
|
color: #1565c0;
|
|
outline: none;
|
|
}
|
|
|
|
.help-hint__popover {
|
|
position: absolute;
|
|
top: calc(100% + 6px);
|
|
left: 0;
|
|
z-index: 40;
|
|
width: min(360px, 80vw);
|
|
padding: 10px 12px;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 8px;
|
|
background: #fff;
|
|
color: #334155;
|
|
font-size: 13px;
|
|
font-weight: 400;
|
|
line-height: 1.45;
|
|
white-space: pre-line;
|
|
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
|
|
}
|
|
|
|
.help-hint--align-end .help-hint__popover {
|
|
left: auto;
|
|
right: 0;
|
|
}
|
|
|
|
.help-hint__popover--portal {
|
|
z-index: 2000;
|
|
width: auto;
|
|
}
|
|
|
|
.help-hint__popover--nowrap {
|
|
width: max-content;
|
|
max-width: min(90vw, 720px);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.panel__toolbar-end {
|
|
margin-left: auto;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
/* ── NE stats card ── */
|
|
.ne-stats-card {
|
|
padding: 12px 14px;
|
|
}
|
|
|
|
.ne-stats-card__header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
justify-content: space-between;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.ne-stats-card__header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.ne-stats-card__header-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.ne-stats-card__title {
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
color: #1e293b;
|
|
}
|
|
|
|
.ne-stats-pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 2px 9px;
|
|
border-radius: 999px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.ne-stats-pill--pass { background: #dcfce7; color: #166534; }
|
|
.ne-stats-pill--fail { background: #fee2e2; color: #991b1b; }
|
|
.ne-stats-pill--testing{ background: #fef9c3; color: #854d0e; }
|
|
.ne-stats-pill--unknown{ background: #f1f5f9; color: #475569; }
|
|
|
|
.ne-stats-card__actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.ne-stats-card__tag-select {
|
|
height: 32px;
|
|
font-size: 13px;
|
|
padding: 0 8px;
|
|
border: 1px solid #cbd5e1;
|
|
border-radius: 6px;
|
|
background: #fff;
|
|
min-width: 150px;
|
|
}
|
|
|
|
.ne-stats-card__loading {
|
|
color: #94a3b8;
|
|
font-size: 13px;
|
|
margin: 0;
|
|
}
|
|
|
|
.ne-stats-card__tag-cards {
|
|
width: 100%;
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(190px, 1fr));
|
|
gap: 10px;
|
|
}
|
|
|
|
.ne-tag-card {
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 10px;
|
|
background: #f8fafc;
|
|
padding: 10px 10px;
|
|
}
|
|
|
|
.ne-tag-card__title {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: #0f172a;
|
|
margin-bottom: 4px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.ne-tag-card__total {
|
|
font-size: 12px;
|
|
color: #64748b;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.ne-tag-card__pills {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
}
|
|
|
|
.mini-chart__bar-wrap {
|
|
height: 10px;
|
|
border-radius: 999px;
|
|
background: #10213a;
|
|
border: 1px solid #223651;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.mini-chart__bar {
|
|
height: 100%;
|
|
background: linear-gradient(90deg, #3973d2, #5aa1ff);
|
|
}
|
|
|
|
.pager {
|
|
margin-top: 12px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.pager__meta {
|
|
color: #9db2cf;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.pager__controls {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
flex-wrap: nowrap;
|
|
}
|
|
|
|
.pager__btn,
|
|
.pager__num {
|
|
min-width: 34px;
|
|
padding: 6px 10px;
|
|
}
|
|
|
|
.pager__num.active {
|
|
border-color: #4f7ec7;
|
|
background: rgba(61, 130, 247, 0.24);
|
|
color: #dce8ff;
|
|
}
|
|
|
|
.pager__size {
|
|
width: auto;
|
|
min-width: 88px;
|
|
}
|
|
|
|
@keyframes shimmer {
|
|
0% {
|
|
background-position: 200% 0;
|
|
}
|
|
100% {
|
|
background-position: -200% 0;
|
|
}
|
|
}
|
|
|
|
.page-stack {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.page-stack > .cards {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.panel--warn {
|
|
border-color: #ffe082;
|
|
background: #fff8e1;
|
|
color: #5d4037;
|
|
}
|
|
|
|
.panel__toolbar {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.panel__toolbar h2,
|
|
.panel__toolbar h3 {
|
|
margin: 0;
|
|
}
|
|
|
|
.panel__actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
.btn--danger {
|
|
color: #b71c1c;
|
|
border-color: #ef9a9a;
|
|
background: #ffebee;
|
|
}
|
|
|
|
.btn--danger:hover:not(:disabled) {
|
|
background: #ffcdd2;
|
|
}
|
|
|
|
.btn--danger:disabled {
|
|
opacity: 0.55;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.table-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.modal-backdrop {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 50;
|
|
background: rgba(15, 23, 42, 0.45);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 16px;
|
|
}
|
|
|
|
.modal {
|
|
width: min(720px, 100%);
|
|
max-height: 90vh;
|
|
overflow: auto;
|
|
background: #fff;
|
|
border-radius: 10px;
|
|
padding: 20px;
|
|
box-shadow: 0 16px 48px rgba(15, 23, 42, 0.2);
|
|
}
|
|
|
|
.modal--wide {
|
|
width: min(920px, 100%);
|
|
}
|
|
|
|
.connect-detail-summary {
|
|
margin-left: 8px;
|
|
color: #64748b;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.connect-log {
|
|
margin: 12px 0 0;
|
|
padding: 12px;
|
|
max-height: min(52vh, 480px);
|
|
overflow: auto;
|
|
background: #0f172a;
|
|
color: #e2e8f0;
|
|
border-radius: 8px;
|
|
font-size: 12px;
|
|
line-height: 1.45;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
}
|
|
|
|
.modal h3 {
|
|
margin: 0 0 16px;
|
|
}
|
|
|
|
.modal__actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.cli-connect-panel {
|
|
width: 100%;
|
|
text-align: left;
|
|
}
|
|
|
|
.cli-connect-panel .form-grid,
|
|
.cli-connect-panel .form-fieldset {
|
|
width: 100%;
|
|
max-width: none;
|
|
}
|
|
|
|
.cli-connect-panel .form-grid label:not(.form-check) {
|
|
align-items: stretch;
|
|
text-align: left;
|
|
}
|
|
|
|
.cli-connect-panel .form-label {
|
|
display: block;
|
|
margin: 0;
|
|
text-align: left;
|
|
}
|
|
|
|
.cli-connect-panel .form-grid input,
|
|
.cli-connect-panel .form-grid select,
|
|
.cli-connect-panel .form-fieldset input,
|
|
.cli-connect-panel .form-fieldset select {
|
|
width: 100%;
|
|
margin: 0;
|
|
text-align: left;
|
|
}
|
|
|
|
.cli-connect-panel .form-fieldset {
|
|
text-align: left;
|
|
width: 100%;
|
|
min-width: 0;
|
|
min-inline-size: 0;
|
|
}
|
|
|
|
.cli-connect-panel .hop-proxy-fields,
|
|
.cli-connect-panel .hop-proxy-fields .form-grid {
|
|
width: 100%;
|
|
}
|
|
|
|
.cli-connect-panel .hop-proxy-fields .form-grid label {
|
|
align-items: flex-start;
|
|
justify-content: flex-start;
|
|
text-align: left;
|
|
width: 100%;
|
|
}
|
|
|
|
.cli-connect-panel .hop-proxy-fields .form-grid select,
|
|
.cli-connect-panel .hop-proxy-fields .form-grid input {
|
|
display: block;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
margin: 0;
|
|
box-sizing: border-box;
|
|
text-align: left;
|
|
text-align-last: left;
|
|
}
|
|
|
|
.cli-connect-panel .hop-proxy-fields .form-field-hint {
|
|
text-align: left;
|
|
}
|
|
|
|
.cli-connect-panel .form-fieldset legend {
|
|
margin: 0 0 8px;
|
|
padding: 0 6px;
|
|
text-align: left;
|
|
}
|
|
|
|
.cli-connect-panel .form-check {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
width: fit-content;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.card .cli-connect-panel input,
|
|
.card .cli-connect-panel select,
|
|
.card .cli-connect-panel textarea {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.cli-connect-test-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
align-items: center;
|
|
}
|
|
|
|
.cli-connect-test-row input {
|
|
flex: 1 1 320px;
|
|
min-width: 240px;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.form-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 12px;
|
|
}
|
|
|
|
.form-hint {
|
|
margin: 0 0 12px;
|
|
font-size: 12px;
|
|
color: #64748b;
|
|
}
|
|
|
|
.form-label__required {
|
|
color: #c62828;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.form-label__optional {
|
|
color: #94a3b8;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.form-field-hint {
|
|
font-size: 11px;
|
|
color: #94a3b8;
|
|
line-height: 1.35;
|
|
}
|
|
|
|
.form-label {
|
|
display: block;
|
|
margin: 0;
|
|
font-size: 12px;
|
|
color: #64748b;
|
|
text-align: left;
|
|
}
|
|
|
|
.form-grid label {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
font-size: 12px;
|
|
color: #64748b;
|
|
}
|
|
|
|
.form-grid input,
|
|
.form-grid select {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.form-grid__full {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.form-fieldset {
|
|
margin-top: 16px;
|
|
padding: 12px;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.form-fieldset legend,
|
|
.form-fieldset__title {
|
|
padding: 0 6px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: #334155;
|
|
}
|
|
|
|
.form-fieldset__title {
|
|
display: block;
|
|
margin: 0 0 10px;
|
|
padding: 0;
|
|
text-align: left;
|
|
}
|
|
|
|
.form-check {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 12px;
|
|
font-size: 13px;
|
|
color: #334155;
|
|
width: fit-content;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.form-check__text {
|
|
white-space: nowrap;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
/* form-grid labels are column layout; checkbox rows must stay horizontal */
|
|
.form-grid label.form-check {
|
|
flex-direction: row;
|
|
align-items: center;
|
|
width: fit-content;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.table-tag {
|
|
display: inline-block;
|
|
margin-left: 6px;
|
|
padding: 1px 6px;
|
|
border-radius: 4px;
|
|
font-size: 11px;
|
|
background: #e0f2fe;
|
|
color: #0369a1;
|
|
}
|
|
|
|
.form-grid--single {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.panel__hint {
|
|
margin: 0 0 12px;
|
|
font-size: 13px;
|
|
color: #64748b;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.panel__hint--live {
|
|
color: #1565c0;
|
|
}
|
|
|
|
.collect-commands {
|
|
width: 100%;
|
|
min-height: 160px;
|
|
font-family: ui-monospace, Consolas, monospace;
|
|
font-size: 13px;
|
|
line-height: 1.4;
|
|
padding: 10px;
|
|
border: 1px solid #cbd5e1;
|
|
border-radius: 6px;
|
|
resize: vertical;
|
|
}
|
|
|
|
.collect-meta {
|
|
font-size: 13px;
|
|
color: #64748b;
|
|
margin-right: auto;
|
|
}
|
|
|
|
.collect-create-panel__head {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.collect-create-panel--collapsed {
|
|
padding-bottom: 16px;
|
|
}
|
|
|
|
.collect-create-panel h3 {
|
|
margin: 0;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
color: #334155;
|
|
}
|
|
|
|
.collect-selected-block,
|
|
.collect-pick-block {
|
|
margin-top: 20px;
|
|
padding-top: 16px;
|
|
border-top: 1px solid #e2e8f0;
|
|
}
|
|
|
|
.collect-selected-block__head {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 10px 16px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.collect-selected-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
max-height: 220px;
|
|
overflow: auto;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.collect-selected-chip {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 8px 12px;
|
|
background: #f8fafc;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.collect-selected-chip__main {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.collect-selected-chip__meta {
|
|
font-size: 12px;
|
|
color: #64748b;
|
|
}
|
|
|
|
.collect-pick-filters {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.collect-cmd-preview {
|
|
font-size: 12px;
|
|
background: #f8fafc;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 6px;
|
|
padding: 10px;
|
|
max-height: 120px;
|
|
overflow: auto;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.collect-runs-panel {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.collect-runs-toolbar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.collect-runs-filter {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 13px;
|
|
color: #475569;
|
|
}
|
|
|
|
.collect-runs-filter select {
|
|
min-width: 140px;
|
|
padding: 6px 8px;
|
|
border: 1px solid #cbd5e1;
|
|
border-radius: 6px;
|
|
background: #fff;
|
|
}
|
|
|
|
.collect-runs-filter input {
|
|
min-width: 180px;
|
|
padding: 6px 8px;
|
|
border: 1px solid #cbd5e1;
|
|
border-radius: 6px;
|
|
background: #fff;
|
|
}
|
|
|
|
.collect-run-message {
|
|
max-width: 420px;
|
|
max-height: 160px;
|
|
overflow: auto;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
font-size: 12px;
|
|
line-height: 1.45;
|
|
color: #334155;
|
|
padding: 6px 8px;
|
|
background: #f8fafc;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.webcrt-page {
|
|
min-height: calc(100vh - 120px);
|
|
}
|
|
|
|
.webcrt-session-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
margin-bottom: 8px;
|
|
font-size: 13px;
|
|
color: #334155;
|
|
}
|
|
|
|
.webcrt-term-panel {
|
|
padding: 0;
|
|
overflow: hidden;
|
|
min-height: 420px;
|
|
flex: 1;
|
|
}
|
|
|
|
.webcrt-term {
|
|
width: 100%;
|
|
height: 100%;
|
|
min-height: 240px;
|
|
background: #0f172a;
|
|
padding: 8px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.webcrt-term .xterm {
|
|
height: 100%;
|
|
}
|
|
|
|
.webcrt-term .xterm-viewport {
|
|
overflow-y: auto !important;
|
|
}
|
|
|
|
.webcrt-shell {
|
|
display: grid;
|
|
grid-template-columns: 280px 1fr;
|
|
height: calc(100vh - 56px);
|
|
min-height: 480px;
|
|
margin: -20px -28px -32px;
|
|
background: #c0c0c0;
|
|
border: 1px solid #808080;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.webcrt-sidebar {
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: #f0f0f0;
|
|
border-right: 1px solid #808080;
|
|
min-width: 0;
|
|
min-height: 0; /* grid/flex: allow tree to shrink and scroll */
|
|
overflow: hidden;
|
|
height: 100%;
|
|
}
|
|
|
|
.webcrt-sidebar__header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
padding: 6px 8px 6px 10px;
|
|
background: linear-gradient(#f8f8f8, #e4e4e4);
|
|
border-bottom: 1px solid #b0b0b0;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.webcrt-sidebar__title {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: #1e293b;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.webcrt-sidebar__toolbar {
|
|
display: none;
|
|
}
|
|
|
|
.webcrt-icon-btn {
|
|
width: 28px;
|
|
height: 24px;
|
|
padding: 0;
|
|
border: 1px solid #a0a0a0;
|
|
background: #f7f7f7;
|
|
border-radius: 2px;
|
|
cursor: pointer;
|
|
line-height: 1;
|
|
}
|
|
|
|
.webcrt-icon-btn:disabled {
|
|
opacity: 0.45;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.webcrt-sidebar__search {
|
|
padding: 6px;
|
|
border-bottom: 1px solid #d0d0d0;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.webcrt-sidebar__search input {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
height: 28px;
|
|
padding: 0 8px;
|
|
border: 1px solid #a8a8a8;
|
|
border-radius: 2px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.webcrt-source-tabs {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 0;
|
|
border-bottom: 1px solid #c8c8c8;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.webcrt-source-tabs__btn {
|
|
height: 26px;
|
|
border: 0;
|
|
border-right: 1px solid #c8c8c8;
|
|
background: #e8e8e8;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.webcrt-source-tabs__btn:last-child {
|
|
border-right: 0;
|
|
}
|
|
|
|
.webcrt-source-tabs__btn.is-active {
|
|
background: #fff;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.webcrt-tree {
|
|
flex: 1 1 auto;
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
background: #fff;
|
|
min-height: 0;
|
|
overscroll-behavior: contain;
|
|
}
|
|
|
|
.webcrt-tree__folder {
|
|
padding: 6px 8px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: #334155;
|
|
}
|
|
|
|
.webcrt-tree__empty {
|
|
padding: 10px 12px;
|
|
font-size: 12px;
|
|
color: #64748b;
|
|
}
|
|
|
|
.webcrt-tree__list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0 0 8px;
|
|
}
|
|
|
|
.webcrt-tree__item {
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 6px;
|
|
padding: 4px 8px 4px 18px;
|
|
border: 0;
|
|
background: transparent;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.webcrt-tree__item:hover {
|
|
background: #f1f5f9;
|
|
}
|
|
|
|
.webcrt-tree__item.is-selected,
|
|
.webcrt-tree__item.is-active {
|
|
background: #cde8ff;
|
|
}
|
|
|
|
.webcrt-tree__icon {
|
|
color: #2563eb;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.webcrt-tree__label {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
}
|
|
|
|
.webcrt-tree__name {
|
|
color: #0f172a;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.webcrt-tree__meta {
|
|
color: #64748b;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.webcrt-sidebar__pager {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 6px;
|
|
padding: 4px 8px;
|
|
border-top: 1px solid #c8c8c8;
|
|
background: #ececec;
|
|
font-size: 11px;
|
|
color: #475569;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.webcrt-sidebar__pager-btns {
|
|
display: flex;
|
|
gap: 2px;
|
|
}
|
|
|
|
.webcrt-sidebar__pager-btns button {
|
|
width: 22px;
|
|
height: 20px;
|
|
border: 1px solid #a0a0a0;
|
|
background: #f7f7f7;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.webcrt-sidebar__pager-btns button:disabled {
|
|
opacity: 0.4;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.webcrt-sidebar__footer {
|
|
display: flex;
|
|
border-top: 1px solid #a8a8a8;
|
|
background: #ddd;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.webcrt-sidebar__footer button {
|
|
flex: 1;
|
|
height: 28px;
|
|
border: 0;
|
|
border-right: 1px solid #b8b8b8;
|
|
background: transparent;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.webcrt-sidebar__footer button.is-active {
|
|
background: #fff;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.webcrt-main {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
background: #808080;
|
|
}
|
|
|
|
.webcrt-tabs {
|
|
display: flex;
|
|
gap: 1px;
|
|
overflow-x: auto;
|
|
background: #6e6e6e;
|
|
border-bottom: 1px solid #505050;
|
|
min-height: 28px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.webcrt-tabs__item {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
padding: 4px 8px;
|
|
background: #cfcfcf;
|
|
color: #1e293b;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.webcrt-tabs__item.is-active {
|
|
background: #f3f3f3;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.webcrt-tabs__close {
|
|
appearance: none;
|
|
-webkit-appearance: none;
|
|
display: inline;
|
|
margin: 0;
|
|
margin-left: 2px;
|
|
padding: 0;
|
|
border: 0;
|
|
border-radius: 0;
|
|
background: transparent;
|
|
box-shadow: none;
|
|
outline: none;
|
|
cursor: pointer;
|
|
font: inherit;
|
|
font-weight: 400;
|
|
font-size: 1em;
|
|
line-height: 1;
|
|
color: inherit;
|
|
opacity: 0.45;
|
|
vertical-align: baseline;
|
|
}
|
|
|
|
.webcrt-tabs__close:hover,
|
|
.webcrt-tabs__item:hover .webcrt-tabs__close {
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.webcrt-tabs__close:focus-visible {
|
|
opacity: 1;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.webcrt-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
padding: 6px 8px;
|
|
background: #f3f4f6;
|
|
border-bottom: 1px solid #d1d5db;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.webcrt-action-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
height: 28px;
|
|
padding: 0 10px;
|
|
border: 1px solid #c0c0c0;
|
|
border-radius: 3px;
|
|
background: #fff;
|
|
color: #1e293b;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.webcrt-action-btn:hover {
|
|
background: #f8fafc;
|
|
}
|
|
|
|
.webcrt-action-btn.is-active {
|
|
background: #dbeafe;
|
|
border-color: #93c5fd;
|
|
color: #1d4ed8;
|
|
}
|
|
|
|
.webcrt-main__body {
|
|
flex: 1;
|
|
min-height: 0;
|
|
position: relative;
|
|
background: #0f172a;
|
|
}
|
|
|
|
.webcrt-main__pane {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.webcrt-main__pane[hidden] {
|
|
display: none !important;
|
|
}
|
|
|
|
.webcrt-main__pane .webcrt-term {
|
|
flex: 1;
|
|
width: 100%;
|
|
height: auto !important;
|
|
min-height: 240px !important;
|
|
}
|
|
|
|
.webcrt-main__empty,
|
|
.webcrt-main__placeholder {
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
color: #e2e8f0;
|
|
background: #6b7280;
|
|
text-align: center;
|
|
padding: 24px;
|
|
}
|
|
|
|
.webcrt-main__placeholder--error {
|
|
color: #fecaca;
|
|
}
|
|
|
|
.webcrt-error-detail {
|
|
margin: 8px 0 0;
|
|
max-width: 80%;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
font-size: 12px;
|
|
color: #fee2e2;
|
|
text-align: left;
|
|
}
|
|
|
|
.webcrt-statusline {
|
|
display: none;
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.webcrt-shell {
|
|
grid-template-columns: 1fr;
|
|
height: auto;
|
|
min-height: calc(100vh - 64px);
|
|
}
|
|
|
|
.webcrt-sidebar {
|
|
max-height: 42vh;
|
|
}
|
|
|
|
.webcrt-main {
|
|
min-height: 50vh;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 1200px) {
|
|
.cards {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
.filter-inline {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
.actions-row--inline {
|
|
flex-wrap: wrap;
|
|
}
|
|
.split {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
.form-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
/* ---- Topology ---- */
|
|
.topo-page {
|
|
display: grid;
|
|
grid-template-columns: 280px 1fr;
|
|
gap: 12px;
|
|
height: calc(100vh - 72px);
|
|
min-height: 520px;
|
|
padding: 12px 16px 16px;
|
|
transition: grid-template-columns 0.18s ease;
|
|
}
|
|
|
|
.topo-page.is-sidebar-collapsed {
|
|
grid-template-columns: 40px 1fr;
|
|
}
|
|
|
|
.topo-sidebar {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
min-height: 0;
|
|
background: #fff;
|
|
border: 1px solid #dbe3ee;
|
|
border-radius: 10px;
|
|
padding: 12px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.topo-page.is-sidebar-collapsed .topo-sidebar {
|
|
padding: 6px;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.topo-sidebar__rail {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
gap: 10px;
|
|
width: 100%;
|
|
border: 0;
|
|
background: transparent;
|
|
padding: 8px 0;
|
|
cursor: pointer;
|
|
color: #475569;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.topo-sidebar__rail:hover {
|
|
background: #f1f5f9;
|
|
color: #0f172a;
|
|
}
|
|
|
|
.topo-sidebar__rail-icon {
|
|
font-size: 18px;
|
|
line-height: 1;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.topo-sidebar__rail-label {
|
|
writing-mode: vertical-rl;
|
|
text-orientation: mixed;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.06em;
|
|
}
|
|
|
|
.topo-sidebar__section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
min-height: 0;
|
|
}
|
|
|
|
.topo-sidebar__section--grow {
|
|
flex: 1;
|
|
}
|
|
|
|
.topo-sidebar__head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
}
|
|
|
|
.topo-sidebar__head-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.topo-palette-source {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 4px;
|
|
padding: 2px;
|
|
background: #f1f5f9;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.topo-palette-source__btn {
|
|
border: 0;
|
|
background: transparent;
|
|
border-radius: 6px;
|
|
padding: 6px 8px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: #64748b;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.topo-palette-source__btn.is-active {
|
|
background: #fff;
|
|
color: #0f172a;
|
|
box-shadow: 0 1px 2px rgb(15 23 42 / 8%);
|
|
}
|
|
|
|
.topo-map-list,
|
|
.topo-palette {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
overflow: auto;
|
|
flex: 1;
|
|
}
|
|
|
|
.topo-map-list li {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.topo-map-list li.is-active {
|
|
background: #e8f1fb;
|
|
}
|
|
|
|
.topo-map-list__item,
|
|
.topo-palette__item {
|
|
flex: 1;
|
|
text-align: left;
|
|
border: 0;
|
|
background: transparent;
|
|
padding: 8px;
|
|
cursor: pointer;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.topo-map-list__item:hover,
|
|
.topo-palette__item:hover:not(:disabled) {
|
|
background: #f1f5f9;
|
|
}
|
|
|
|
.topo-palette__item:disabled {
|
|
opacity: 0.55;
|
|
cursor: default;
|
|
}
|
|
|
|
.topo-palette__empty {
|
|
padding: 8px;
|
|
}
|
|
|
|
.topo-map-list__name,
|
|
.topo-palette__name {
|
|
display: block;
|
|
font-weight: 600;
|
|
color: #0f172a;
|
|
}
|
|
|
|
.topo-map-list__meta,
|
|
.topo-palette__meta {
|
|
display: block;
|
|
font-size: 12px;
|
|
color: #64748b;
|
|
}
|
|
|
|
.topo-main {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
background: #fff;
|
|
border: 1px solid #dbe3ee;
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.topo-toolbar {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 10px 12px;
|
|
border-bottom: 1px solid #e2e8f0;
|
|
}
|
|
|
|
.topo-toolbar__left {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.topo-toolbar__title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.topo-toolbar__actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.topo-display-toggles {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-right: 4px;
|
|
font-size: 12px;
|
|
color: #475569;
|
|
}
|
|
|
|
.topo-display-toggles__item {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.topo-selection {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 8px 12px;
|
|
background: #f8fafc;
|
|
border-bottom: 1px solid #e2e8f0;
|
|
}
|
|
|
|
.topo-selection__actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
.topo-discover {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
max-height: 220px;
|
|
padding: 10px 12px;
|
|
background: #f8fafc;
|
|
border-bottom: 1px solid #e2e8f0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.topo-discover__head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
}
|
|
|
|
.topo-discover__summary {
|
|
margin: 0;
|
|
font-size: 13px;
|
|
color: #334155;
|
|
}
|
|
|
|
.topo-discover__error {
|
|
margin: 0;
|
|
font-size: 13px;
|
|
color: #b91c1c;
|
|
}
|
|
|
|
.topo-discover__list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
overflow: auto;
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
|
|
.topo-discover__list li {
|
|
padding: 8px;
|
|
border-radius: 8px;
|
|
margin-bottom: 4px;
|
|
background: #fff;
|
|
border: 1px solid #e2e8f0;
|
|
}
|
|
|
|
.topo-discover__list li.is-fail {
|
|
border-color: #fecaca;
|
|
background: #fff1f2;
|
|
}
|
|
|
|
.topo-discover__item-title {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
font-weight: 600;
|
|
color: #0f172a;
|
|
}
|
|
|
|
.topo-discover__badge {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
color: #166534;
|
|
}
|
|
|
|
.topo-discover__list li.is-fail .topo-discover__badge {
|
|
color: #b91c1c;
|
|
}
|
|
|
|
.topo-discover__item-meta,
|
|
.topo-discover__item-cmd {
|
|
margin-top: 2px;
|
|
font-size: 12px;
|
|
color: #64748b;
|
|
}
|
|
|
|
.topo-discover__item-cmd {
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
}
|
|
|
|
.topo-canvas {
|
|
position: relative;
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
|
|
.topo-canvas__empty {
|
|
display: grid;
|
|
place-items: center;
|
|
height: 100%;
|
|
color: #64748b;
|
|
}
|
|
|
|
.topo-node {
|
|
min-width: 72px;
|
|
max-width: 160px;
|
|
padding: 0;
|
|
border: 0;
|
|
background: transparent;
|
|
box-shadow: none;
|
|
font-size: 11px;
|
|
text-align: center;
|
|
--topo-vendor: #64748b;
|
|
}
|
|
|
|
.topo-node--cisco { --topo-vendor: #1d4ed8; }
|
|
.topo-node--huawei { --topo-vendor: #c62828; }
|
|
.topo-node--zte { --topo-vendor: #0277bd; }
|
|
.topo-node--juniper { --topo-vendor: #2e7d32; }
|
|
.topo-node--nokia { --topo-vendor: #00838f; }
|
|
.topo-node--ericsson { --topo-vendor: #f9a825; }
|
|
.topo-node--h3c { --topo-vendor: #ef6c00; }
|
|
.topo-node--other { --topo-vendor: #546e7a; }
|
|
|
|
.topo-node__glyph {
|
|
position: relative;
|
|
width: 56px;
|
|
height: 56px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.topo-node__handle {
|
|
width: 12px !important;
|
|
height: 12px !important;
|
|
min-width: 12px !important;
|
|
min-height: 12px !important;
|
|
background: transparent !important;
|
|
border: 0 !important;
|
|
opacity: 0;
|
|
}
|
|
|
|
.topo-node__handle--center {
|
|
left: 50% !important;
|
|
top: 50% !important;
|
|
right: auto !important;
|
|
bottom: auto !important;
|
|
transform: translate(-50%, -50%) !important;
|
|
}
|
|
|
|
.topo-node.is-selected .topo-node__icon-body {
|
|
stroke: #0f172a;
|
|
stroke-width: 1.6;
|
|
}
|
|
|
|
.topo-node.is-selected .topo-node__caption {
|
|
color: #0f172a;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.topo-node__icon {
|
|
display: block;
|
|
width: 56px;
|
|
height: 56px;
|
|
margin: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.topo-node__icon-shadow {
|
|
fill: rgba(15, 23, 42, 0.28);
|
|
}
|
|
|
|
.topo-node__icon-rim {
|
|
fill: color-mix(in srgb, var(--topo-vendor, #64748b) 70%, #0f172a);
|
|
}
|
|
|
|
.topo-node__icon-body {
|
|
fill: var(--topo-vendor, #64748b);
|
|
stroke: color-mix(in srgb, var(--topo-vendor, #64748b) 45%, #0f172a);
|
|
stroke-width: 1;
|
|
}
|
|
|
|
.topo-node__icon-face {
|
|
fill: color-mix(in srgb, var(--topo-vendor, #64748b) 62%, #cbd5e1);
|
|
}
|
|
|
|
.topo-node__icon-arrows {
|
|
fill: #ffffff;
|
|
stroke: none;
|
|
}
|
|
|
|
/* Same plain-text style as edge port labels */
|
|
.topo-node__caption {
|
|
margin-top: 2px;
|
|
color: #475569;
|
|
line-height: 1.25;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.react-flow__edge-textbg {
|
|
fill: #ffffff;
|
|
}
|
|
|
|
.react-flow__edge-text {
|
|
fill: #475569;
|
|
font-size: 11px;
|
|
}
|
|
|
|
@media (max-width: 960px) {
|
|
.topo-page,
|
|
.topo-page.is-sidebar-collapsed {
|
|
grid-template-columns: 1fr;
|
|
height: auto;
|
|
}
|
|
|
|
.topo-sidebar {
|
|
max-height: 40vh;
|
|
}
|
|
|
|
.topo-page.is-sidebar-collapsed .topo-sidebar {
|
|
max-height: none;
|
|
min-height: 40px;
|
|
}
|
|
|
|
.topo-sidebar__rail {
|
|
flex-direction: row;
|
|
justify-content: center;
|
|
padding: 6px 8px;
|
|
}
|
|
|
|
.topo-sidebar__rail-label {
|
|
writing-mode: horizontal-tb;
|
|
}
|
|
|
|
.topo-canvas {
|
|
min-height: 420px;
|
|
}
|
|
}
|