616 lines
13 KiB
CSS
616 lines
13 KiB
CSS
/**
|
|
* Apple Design System - VPS Probe
|
|
* Grounded in Apple HIG (macOS / iOS) & Liquid Glass Design Specs
|
|
*/
|
|
|
|
:root {
|
|
/* Dynamic System Colors - Dark (Default) */
|
|
--system-bg: #000000;
|
|
--secondary-system-bg: #16181d;
|
|
--tertiary-system-bg: #21252d;
|
|
|
|
/* Materials & Overlays */
|
|
--liquid-glass-bg: rgba(22, 24, 29, 0.72);
|
|
--liquid-glass-border: rgba(255, 255, 255, 0.09);
|
|
--hairline-border: rgba(255, 255, 255, 0.08);
|
|
--hairline-border-hover: rgba(255, 255, 255, 0.16);
|
|
--hairline-highlight: rgba(255, 255, 255, 0.04);
|
|
|
|
/* Apple Semantic Labels */
|
|
--label-primary: #f5f5f7;
|
|
--label-secondary: #98989d;
|
|
--label-tertiary: #636366;
|
|
--label-quaternary: #48484a;
|
|
|
|
/* Apple System Accents & Status */
|
|
--accent: #0a84ff;
|
|
--accent-subtle: rgba(10, 132, 255, 0.15);
|
|
|
|
--system-green: #30d158;
|
|
--system-green-subtle: rgba(48, 209, 88, 0.14);
|
|
--system-yellow: #ffd60a;
|
|
--system-yellow-subtle: rgba(255, 214, 10, 0.14);
|
|
--system-red: #ff453a;
|
|
--system-red-subtle: rgba(255, 69, 58, 0.14);
|
|
--system-purple: #bf5af2;
|
|
|
|
/* Typography Stacks */
|
|
--font-system: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
--font-mono: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, monospace;
|
|
|
|
/* Radii & Shadows */
|
|
--radius-lg: 16px;
|
|
--radius-md: 10px;
|
|
--radius-sm: 6px;
|
|
--shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.35);
|
|
--shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.5);
|
|
|
|
/* Animation */
|
|
--ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
|
|
}
|
|
|
|
/* Light Appearance */
|
|
@media (prefers-color-scheme: light) {
|
|
:root {
|
|
--system-bg: #f5f5f7;
|
|
--secondary-system-bg: #ffffff;
|
|
--tertiary-system-bg: #e5e5ea;
|
|
|
|
--liquid-glass-bg: rgba(255, 255, 255, 0.78);
|
|
--liquid-glass-border: rgba(0, 0, 0, 0.08);
|
|
--hairline-border: rgba(0, 0, 0, 0.07);
|
|
--hairline-border-hover: rgba(0, 0, 0, 0.14);
|
|
--hairline-highlight: rgba(0, 0, 0, 0.02);
|
|
|
|
--label-primary: #1d1d1f;
|
|
--label-secondary: #86868b;
|
|
--label-tertiary: #a1a1a6;
|
|
--label-quaternary: #d1d1d6;
|
|
|
|
--accent: #0071e3;
|
|
--accent-subtle: rgba(0, 113, 227, 0.1);
|
|
|
|
--system-green: #34c759;
|
|
--system-green-subtle: rgba(52, 199, 89, 0.12);
|
|
--system-yellow: #ff9500;
|
|
--system-yellow-subtle: rgba(255, 149, 0, 0.12);
|
|
--system-red: #ff3b30;
|
|
--system-red-subtle: rgba(255, 59, 48, 0.12);
|
|
|
|
--shadow-subtle: 0 2px 14px rgba(0, 0, 0, 0.06);
|
|
--shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.12);
|
|
}
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body {
|
|
background-color: var(--system-bg);
|
|
color: var(--label-primary);
|
|
font-family: var(--font-system);
|
|
font-size: 13px;
|
|
line-height: 1.45;
|
|
min-height: 100vh;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
.layout {
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
padding: 0 24px 48px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Header & Liquid Glass Navbar
|
|
========================================================================== */
|
|
.navbar {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
margin: 0 -24px 28px;
|
|
padding: 14px 24px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 16px;
|
|
background: var(--liquid-glass-bg);
|
|
backdrop-filter: blur(24px) saturate(190%);
|
|
-webkit-backdrop-filter: blur(24px) saturate(190%);
|
|
border-bottom: 1px solid var(--liquid-glass-border);
|
|
transition: all 0.2s var(--ease-apple);
|
|
}
|
|
|
|
.brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.logo-dot {
|
|
width: 12px;
|
|
height: 12px;
|
|
background: var(--accent);
|
|
border-radius: 3px;
|
|
box-shadow: 0 0 10px var(--accent-subtle);
|
|
}
|
|
|
|
.brand-text {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 8px;
|
|
}
|
|
|
|
.brand-text h1 {
|
|
font-size: 17px;
|
|
font-weight: 600;
|
|
letter-spacing: -0.015em;
|
|
color: var(--label-primary);
|
|
}
|
|
|
|
.brand-text .sub {
|
|
font-size: 12px;
|
|
color: var(--label-secondary);
|
|
font-weight: 400;
|
|
}
|
|
|
|
.controls {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
/* Cluster Summary Pill */
|
|
.summary-badge {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
background: var(--hairline-highlight);
|
|
border: 1px solid var(--hairline-border);
|
|
padding: 5px 12px;
|
|
border-radius: 980px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
color: var(--label-secondary);
|
|
}
|
|
|
|
.dot-online {
|
|
width: 7px;
|
|
height: 7px;
|
|
border-radius: 50%;
|
|
background: var(--system-green);
|
|
box-shadow: 0 0 6px var(--system-green);
|
|
}
|
|
|
|
/* macOS-Style Segmented Control */
|
|
.view-switch {
|
|
display: flex;
|
|
background: var(--tertiary-system-bg);
|
|
border: 1px solid var(--hairline-border);
|
|
border-radius: 8px;
|
|
padding: 2px;
|
|
gap: 2px;
|
|
}
|
|
|
|
.view-switch .btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
height: 26px;
|
|
padding: 0 12px;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--label-secondary);
|
|
font-family: var(--font-system);
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
transition: all 0.15s ease-out;
|
|
user-select: none;
|
|
}
|
|
|
|
.view-switch .btn:hover {
|
|
color: var(--label-primary);
|
|
}
|
|
|
|
.view-switch .btn.active {
|
|
background: var(--secondary-system-bg);
|
|
color: var(--label-primary);
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 0.5px 1px rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Content Grid & Node Card (Content Layer)
|
|
========================================================================== */
|
|
.card-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
|
gap: 18px;
|
|
}
|
|
|
|
.node-card {
|
|
background: var(--secondary-system-bg);
|
|
border: 1px solid var(--hairline-border);
|
|
border-radius: var(--radius-lg);
|
|
padding: 18px 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
box-shadow: var(--shadow-subtle);
|
|
transition: transform 0.25s var(--ease-apple), border-color 0.25s var(--ease-apple), box-shadow 0.25s var(--ease-apple);
|
|
}
|
|
|
|
.node-card:hover {
|
|
transform: translateY(-1.5px);
|
|
border-color: var(--hairline-border-hover);
|
|
box-shadow: var(--shadow-hover);
|
|
}
|
|
|
|
.card-top {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
}
|
|
|
|
.node-title {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.node-name-wrap {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.flag-icon {
|
|
font-size: 15px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.node-name {
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
letter-spacing: -0.01em;
|
|
color: var(--label-primary);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.local-badge {
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
padding: 2px 6px;
|
|
border-radius: 5px;
|
|
background: var(--accent-subtle);
|
|
color: var(--accent);
|
|
border: 1px solid rgba(10, 132, 255, 0.25);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.node-meta {
|
|
font-size: 11px;
|
|
color: var(--label-secondary);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.meta-pill {
|
|
background: var(--hairline-highlight);
|
|
border: 1px solid var(--hairline-border);
|
|
padding: 1px 6px;
|
|
border-radius: 4px;
|
|
color: var(--label-secondary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Status Pill */
|
|
.status-badge {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
padding: 2px 8px;
|
|
border-radius: 980px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.status-badge.online {
|
|
background: var(--system-green-subtle);
|
|
color: var(--system-green);
|
|
border: 1px solid rgba(48, 209, 88, 0.22);
|
|
}
|
|
|
|
.status-badge.offline {
|
|
background: var(--system-red-subtle);
|
|
color: var(--system-red);
|
|
border: 1px solid rgba(255, 69, 58, 0.22);
|
|
}
|
|
|
|
.status-badge .dot {
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
background: currentColor;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Metrics & Progress Bars (San Francisco Metrics)
|
|
========================================================================== */
|
|
.metrics-bars {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.metric-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 5px;
|
|
}
|
|
|
|
.metric-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.metric-label {
|
|
color: var(--label-secondary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.metric-value {
|
|
color: var(--label-primary);
|
|
font-family: var(--font-mono);
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.progress-track {
|
|
height: 5px;
|
|
background: var(--tertiary-system-bg);
|
|
border-radius: 980px;
|
|
overflow: hidden;
|
|
position: relative;
|
|
}
|
|
|
|
.progress-fill {
|
|
height: 100%;
|
|
border-radius: 980px;
|
|
transition: width 0.4s var(--ease-apple), background 0.3s ease;
|
|
}
|
|
|
|
.progress-fill.normal {
|
|
background: var(--system-green);
|
|
}
|
|
|
|
.progress-fill.warn {
|
|
background: var(--system-yellow);
|
|
}
|
|
|
|
.progress-fill.danger {
|
|
background: var(--system-red);
|
|
}
|
|
|
|
/* Secondary Stat Widget (Inset Grouped) */
|
|
.card-stats-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 8px;
|
|
background: var(--hairline-highlight);
|
|
border-radius: var(--radius-md);
|
|
padding: 10px 12px;
|
|
border: 1px solid var(--hairline-border);
|
|
}
|
|
|
|
.stat-box {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.stat-title {
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
color: var(--label-secondary);
|
|
}
|
|
|
|
.stat-desc {
|
|
font-size: 12px;
|
|
color: var(--label-secondary);
|
|
font-family: var(--font-mono);
|
|
font-variant-numeric: tabular-nums;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.stat-desc b {
|
|
color: var(--label-primary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.traffic-in { color: var(--accent) !important; font-weight: 600; }
|
|
.traffic-out { color: var(--system-purple) !important; font-weight: 600; }
|
|
|
|
/* ==========================================================================
|
|
Compact Table View (macOS Table Standard)
|
|
========================================================================== */
|
|
.table-wrapper {
|
|
background: var(--secondary-system-bg);
|
|
border: 1px solid var(--hairline-border);
|
|
border-radius: var(--radius-lg);
|
|
overflow-x: auto;
|
|
box-shadow: var(--shadow-subtle);
|
|
}
|
|
|
|
.probe-table {
|
|
width: 100%;
|
|
min-width: 960px;
|
|
border-collapse: collapse;
|
|
text-align: left;
|
|
}
|
|
|
|
.probe-table th {
|
|
background: var(--tertiary-system-bg);
|
|
padding: 10px 16px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: var(--label-secondary);
|
|
border-bottom: 1px solid var(--hairline-border);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.03em;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.probe-table td {
|
|
padding: 12px 16px;
|
|
border-bottom: 1px solid var(--hairline-border);
|
|
font-size: 12px;
|
|
vertical-align: middle;
|
|
color: var(--label-primary);
|
|
}
|
|
|
|
.probe-table tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.probe-table tr:hover td {
|
|
background: var(--hairline-highlight);
|
|
}
|
|
|
|
.col-mono {
|
|
font-family: var(--font-mono);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.mini-bar-wrap {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-width: 110px;
|
|
}
|
|
|
|
.mini-bar {
|
|
flex: 1;
|
|
height: 5px;
|
|
background: var(--tertiary-system-bg);
|
|
border-radius: 980px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.mini-bar-fill {
|
|
height: 100%;
|
|
border-radius: 980px;
|
|
}
|
|
|
|
.table-node {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.table-node .name {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--label-primary);
|
|
}
|
|
|
|
.table-node .sub {
|
|
font-size: 11px;
|
|
color: var(--label-secondary);
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Footer
|
|
========================================================================== */
|
|
.footer {
|
|
margin-top: auto;
|
|
padding-top: 32px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: 12px;
|
|
color: var(--label-secondary);
|
|
border-top: 1px solid var(--hairline-border);
|
|
}
|
|
|
|
.update-time {
|
|
font-family: var(--font-mono);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
/* Error State */
|
|
.error-msg {
|
|
text-align: center;
|
|
padding: 40px;
|
|
color: var(--system-red);
|
|
background: var(--system-red-subtle);
|
|
border: 1px dashed rgba(255, 69, 58, 0.3);
|
|
border-radius: var(--radius-lg);
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Responsive Adaptations
|
|
========================================================================== */
|
|
@media (max-width: 768px) {
|
|
.layout {
|
|
padding: 0 16px 36px;
|
|
}
|
|
|
|
.navbar {
|
|
margin: 0 -16px 20px;
|
|
padding: 12px 16px;
|
|
}
|
|
|
|
.brand-text h1 {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.controls {
|
|
width: 100%;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.card-grid {
|
|
grid-template-columns: 1fr;
|
|
gap: 14px;
|
|
}
|
|
|
|
.node-card {
|
|
padding: 16px;
|
|
}
|
|
|
|
.card-stats-grid {
|
|
grid-template-columns: 1fr;
|
|
gap: 6px;
|
|
}
|
|
|
|
.footer {
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
text-align: center;
|
|
padding-top: 24px;
|
|
}
|
|
}
|