Files
BetterDesk/web-nodejs/public/css/variables.css
T
UNITRONIX 7a0b3b7387 fix: resolve 8 GitHub issues (#90 #97 #100 #82 #78 #75 #98 #68)
- #90: Bump z-index hierarchy (modal 1100, toast 1200, tooltip 1300)
- #97: Block old peer ID re-registration after ID change (IsRenamedPeerID)
- #100: Add broken pipe/connection refused to isNormalClose(), reduce TCP log spam
- #82: Reset cookie secure flag + CSRF downgrade on SSL cert fallback
- #78: Docker entrypoint write-check before start with clear error message
- #75: Replace transition:all with specific properties in 6 CSS files
- #98: Show HTTPS URL in Docker startup banner when SSL enabled
- #68: Add %% escaping for systemd specifiers alongside web-nodejs/server.js escaping

Files: 5 Go (signal, db), 2 Node.js (server, csrf), 6 CSS, 1 Docker, 1 installer
2026-04-10 00:00:04 +02:00

169 lines
7.0 KiB
CSS

/**
* BetterDesk Console v2.0 - CSS Variables
* Dark theme design tokens
*/
:root {
/* ═══════════════════════════════════════════════════════════════════════
COLORS - Dark Theme
═══════════════════════════════════════════════════════════════════════ */
/* Background colors */
--bg-primary: #0d1117;
--bg-secondary: #161b22;
--bg-tertiary: #21262d;
--bg-elevated: #30363d;
--bg-overlay: rgba(0, 0, 0, 0.7);
/* Text colors */
--text-primary: #e6edf3;
--text-secondary: #8b949e;
--text-tertiary: #6e7681;
--text-link: #58a6ff;
/* Border colors */
--border-primary: #30363d;
--border-secondary: #21262d;
--border-hover: #8b949e;
--border-color: #30363d; /* Alias for --border-primary */
/* Hover/Active backgrounds */
--bg-hover: rgba(255, 255, 255, 0.05);
--bg-active: rgba(255, 255, 255, 0.08);
/* Accent colors */
--accent-green: #2ea44f;
--accent-green-hover: #3fb950;
--accent-green-muted: rgba(46, 164, 79, 0.15);
--accent-blue: #58a6ff;
--accent-blue-hover: #79c0ff;
--accent-blue-muted: rgba(88, 166, 255, 0.15);
--accent-red: #f85149;
--accent-red-hover: #ff6b6b;
--accent-red-muted: rgba(248, 81, 73, 0.15);
--accent-yellow: #d29922;
--accent-yellow-hover: #e3b341;
--accent-yellow-muted: rgba(210, 153, 34, 0.15);
--accent-purple: #a371f7;
--accent-purple-hover: #bc8cff;
--accent-purple-muted: rgba(163, 113, 247, 0.15);
/* Status colors */
--status-online: #2ea44f;
--status-offline: #8b949e;
--status-banned: #f85149;
--status-warning: #d29922;
/* ═══════════════════════════════════════════════════════════════════════
TYPOGRAPHY
═══════════════════════════════════════════════════════════════════════ */
--font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
--font-mono: 'SF Mono', 'Consolas', 'Liberation Mono', Menlo, monospace;
--font-size-xs: 0.75rem; /* 12px */
--font-size-sm: 0.875rem; /* 14px */
--font-size-md: 1rem; /* 16px */
--font-size-lg: 1.125rem; /* 18px */
--font-size-xl: 1.25rem; /* 20px */
--font-size-2xl: 1.5rem; /* 24px */
--font-size-3xl: 2rem; /* 32px */
--font-weight-normal: 400;
--font-weight-medium: 500;
--font-weight-semibold: 600;
--font-weight-bold: 700;
--line-height: 1.5;
--line-height-tight: 1.25;
/* ═══════════════════════════════════════════════════════════════════════
SPACING
═══════════════════════════════════════════════════════════════════════ */
--space-xs: 0.25rem; /* 4px */
--space-sm: 0.5rem; /* 8px */
--space-md: 1rem; /* 16px */
--space-lg: 1.5rem; /* 24px */
--space-xl: 2rem; /* 32px */
--space-2xl: 3rem; /* 48px */
/* ═══════════════════════════════════════════════════════════════════════
LAYOUT
═══════════════════════════════════════════════════════════════════════ */
--sidebar-width: 260px;
--sidebar-width-collapsed: 64px;
--navbar-height: 60px;
--content-max-width: 1400px;
/* ═══════════════════════════════════════════════════════════════════════
SHAPES & EFFECTS
═══════════════════════════════════════════════════════════════════════ */
--radius-sm: 4px;
--radius-md: 8px;
--radius-lg: 12px;
--radius-xl: 16px;
--radius-full: 9999px;
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
--shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
--shadow-glow: 0 0 20px rgba(88, 166, 255, 0.3);
--transition-fast: 0.15s ease;
--transition-normal: 0.25s ease;
--transition-slow: 0.4s ease;
/* ═══════════════════════════════════════════════════════════════════════
Z-INDEX LAYERS
═══════════════════════════════════════════════════════════════════════ */
--z-dropdown: 100;
--z-sticky: 200;
--z-overlay: 300;
--z-modal: 1100;
--z-toast: 1200;
--z-tooltip: 1300;
/* ═══════════════════════════════════════════════════════════════════════
SCROLLBAR
═══════════════════════════════════════════════════════════════════════ */
--scrollbar-width: 8px;
--scrollbar-track: var(--bg-secondary);
--scrollbar-thumb: var(--bg-elevated);
--scrollbar-thumb-hover: var(--border-hover);
}
/* Material Icons */
.material-icons,
.material-icons-outlined,
.material-symbols-outlined {
font-family: 'Material Icons';
font-weight: normal;
font-style: normal;
font-size: 24px;
line-height: 1;
letter-spacing: normal;
text-transform: none;
display: inline-block;
white-space: nowrap;
word-wrap: normal;
direction: ltr;
-webkit-font-feature-settings: 'liga';
font-feature-settings: 'liga';
-webkit-font-smoothing: antialiased;
}
/* Icon sizes */
.icon-sm { font-size: 18px; }
.icon-md { font-size: 24px; }
.icon-lg { font-size: 32px; }
.icon-xl { font-size: 48px; }