Spaces:
Paused
Paused
Download src/dashboard/static/operator_console.css from ThomasHeisig/Brain-5D-Space: direct link, hf CLI and curl.
- Browser
- Download file 19 kB
-
https://huggingface.co/spaces/ThomasHeisig/Brain-5D-Space/resolve/main/src/dashboard/static/operator_console.css
- Command line
-
hf download hf://spaces/ThomasHeisig/Brain-5D-Space/src/dashboard/static/operator_console.css
-
curl -L -o operator_console.css https://huggingface.co/spaces/ThomasHeisig/Brain-5D-Space/resolve/main/src/dashboard/static/operator_console.css
19 kB
| /* ============================================================================ | |
| Brain-5D Operator Console CSS | |
| Professional dark-themed operator console with enhanced readability, | |
| responsive layout, and interactive controls for system monitoring. | |
| Design Tokens: | |
| - Primary: #4a7cf7 | |
| - Success: #24b46e | |
| - Warning: #e6aa28 | |
| - Danger: #dc3545 | |
| - Info: #17a2b8 | |
| - Background: rgba(12, 18, 28, 0.92) | |
| - Border: rgba(255, 255, 255, 0.14) | |
| ============================================================================ */ | |
| /* ============================================================================ | |
| Design Tokens (CSS Variables) | |
| ============================================================================ */ | |
| .operator-console { | |
| --color-primary: #4a7cf7; | |
| --color-primary-hover: #6a9cff; | |
| --color-success: #24b46e; | |
| --color-success-hover: #2dd485; | |
| --color-warning: #e6aa28; | |
| --color-warning-hover: #f0c040; | |
| --color-danger: #dc3545; | |
| --color-danger-hover: #f05060; | |
| --color-info: #17a2b8; | |
| --color-info-hover: #28b8d0; | |
| --color-undo: #e6aa28; | |
| --color-undo-hover: #f0c040; | |
| --bg-card: rgba(12, 18, 28, 0.92); | |
| --bg-input: rgba(0, 0, 0, 0.22); | |
| --bg-hover: rgba(255, 255, 255, 0.055); | |
| --bg-proposal: rgba(255, 255, 255, 0.03); | |
| --border-color: rgba(255, 255, 255, 0.14); | |
| --border-light: rgba(255, 255, 255, 0.08); | |
| --radius-card: 16px; | |
| --radius-medium: 10px; | |
| --radius-small: 8px; | |
| --radius-pill: 999px; | |
| --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.18); | |
| --shadow-focus: 0 0 0 3px rgba(74, 124, 247, 0.3); | |
| --font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif; | |
| --font-mono: 'SF Mono', 'Cascadia Code', 'Consolas', monospace; | |
| --transition-fast: 0.15s ease; | |
| --transition-medium: 0.25s ease; | |
| color: #e8edf5; | |
| font-family: var(--font-family); | |
| } | |
| /* ============================================================================ | |
| Card Container | |
| ============================================================================ */ | |
| .operator-console { | |
| border: 1px solid var(--border-color); | |
| border-radius: var(--radius-card); | |
| padding: 20px 24px; | |
| background: var(--bg-card); | |
| box-shadow: var(--shadow-card); | |
| backdrop-filter: blur(8px); | |
| transition: border-color var(--transition-medium), box-shadow var(--transition-medium); | |
| } | |
| .operator-console:hover { | |
| border-color: rgba(255, 255, 255, 0.2); | |
| } | |
| /* ============================================================================ | |
| Console Header | |
| ============================================================================ */ | |
| .console-header { | |
| display: flex; | |
| align-items: flex-start; | |
| justify-content: space-between; | |
| gap: 16px; | |
| flex-wrap: wrap; | |
| margin-bottom: 16px; | |
| } | |
| .console-title-group h2 { | |
| margin: 0; | |
| font-size: 1.25rem; | |
| font-weight: 600; | |
| letter-spacing: -0.01em; | |
| } | |
| .console-subtitle { | |
| margin: 2px 0 0; | |
| font-size: 0.82rem; | |
| opacity: 0.65; | |
| line-height: 1.4; | |
| } | |
| .console-status-group { | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| flex-shrink: 0; | |
| } | |
| /* Status Badge */ | |
| .status-badge { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 6px; | |
| padding: 4px 14px; | |
| border-radius: var(--radius-pill); | |
| font-weight: 600; | |
| font-size: 0.72rem; | |
| text-transform: uppercase; | |
| letter-spacing: 0.06em; | |
| background: rgba(120, 140, 170, 0.15); | |
| color: #8899bb; | |
| transition: background var(--transition-fast), color var(--transition-fast); | |
| } | |
| .status-badge::before { | |
| content: ''; | |
| display: inline-block; | |
| width: 7px; | |
| height: 7px; | |
| border-radius: 50%; | |
| background: currentColor; | |
| opacity: 0.6; | |
| transition: background var(--transition-fast); | |
| } | |
| .status-badge.status-running { | |
| background: rgba(36, 180, 110, 0.2); | |
| color: #4ddb8a; | |
| } | |
| .status-badge.status-running::before { | |
| animation: pulse-running 1.2s ease-in-out infinite; | |
| } | |
| .status-badge.status-paused { | |
| background: rgba(230, 170, 40, 0.2); | |
| color: #f0c040; | |
| } | |
| .status-badge.status-stopped, | |
| .status-badge.status-faulted { | |
| background: rgba(220, 70, 70, 0.2); | |
| color: #f06070; | |
| } | |
| .status-badge.status-idle { | |
| background: rgba(120, 140, 170, 0.1); | |
| color: #8899bb; | |
| } | |
| @keyframes pulse-running { | |
| 0%, 100% { opacity: 0.6; transform: scale(1); } | |
| 50% { opacity: 1; transform: scale(1.2); } | |
| } | |
| /* Tick Display */ | |
| .tick-display { | |
| font-family: var(--font-mono); | |
| font-weight: 600; | |
| font-size: 1.1rem; | |
| color: #c8d0e0; | |
| padding: 2px 12px; | |
| background: rgba(255, 255, 255, 0.05); | |
| border-radius: var(--radius-small); | |
| border: 1px solid rgba(255, 255, 255, 0.06); | |
| } | |
| /* ============================================================================ | |
| Console Metrics | |
| ============================================================================ */ | |
| .console-metrics { | |
| display: flex; | |
| gap: 16px; | |
| flex-wrap: wrap; | |
| padding: 10px 14px; | |
| margin-bottom: 16px; | |
| background: rgba(255, 255, 255, 0.03); | |
| border-radius: var(--radius-medium); | |
| border: 1px solid rgba(255, 255, 255, 0.04); | |
| } | |
| .console-metrics .metric { | |
| display: flex; | |
| align-items: center; | |
| gap: 6px; | |
| font-size: 0.85rem; | |
| color: #b0bcd0; | |
| } | |
| .console-metrics .metric span:last-child { | |
| font-weight: 600; | |
| color: #e8edf5; | |
| font-family: var(--font-mono); | |
| min-width: 40px; | |
| } | |
| /* ============================================================================ | |
| Console Controls (Grid) | |
| ============================================================================ */ | |
| .console-controls { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | |
| gap: 12px; | |
| margin-bottom: 16px; | |
| } | |
| /* Control Groups */ | |
| .control-group { | |
| background: rgba(255, 255, 255, 0.03); | |
| border-radius: var(--radius-medium); | |
| padding: 10px 14px; | |
| border: 1px solid rgba(255, 255, 255, 0.05); | |
| transition: border-color var(--transition-fast), background var(--transition-fast); | |
| } | |
| .control-group:hover { | |
| border-color: rgba(255, 255, 255, 0.1); | |
| } | |
| .control-group__header { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| margin-bottom: 8px; | |
| } | |
| .control-group__title { | |
| font-size: 0.7rem; | |
| font-weight: 600; | |
| text-transform: uppercase; | |
| letter-spacing: 0.06em; | |
| opacity: 0.6; | |
| } | |
| .shortcut-hint { | |
| font-size: 0.6rem; | |
| font-family: var(--font-mono); | |
| opacity: 0.35; | |
| background: rgba(255, 255, 255, 0.05); | |
| padding: 1px 8px; | |
| border-radius: 4px; | |
| } | |
| .control-group__body { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| flex-wrap: wrap; | |
| } | |
| .control-group__body .input-label { | |
| flex: 1; | |
| min-width: 60px; | |
| } | |
| .control-group__body .input-label input { | |
| width: 100%; | |
| box-sizing: border-box; | |
| padding: 6px 10px; | |
| border-radius: var(--radius-small); | |
| border: 1px solid rgba(255, 255, 255, 0.12); | |
| background: var(--bg-input); | |
| color: #e8edf5; | |
| font-size: 0.85rem; | |
| font-family: var(--font-mono); | |
| transition: border-color var(--transition-fast), box-shadow var(--transition-fast); | |
| min-width: 50px; | |
| } | |
| .control-group__body .input-label input:focus { | |
| outline: none; | |
| border-color: var(--color-primary); | |
| box-shadow: var(--shadow-focus); | |
| } | |
| .control-group__body .input-label input:hover { | |
| border-color: rgba(255, 255, 255, 0.25); | |
| } | |
| /* ============================================================================ | |
| Buttons | |
| ============================================================================ */ | |
| .control-group button, | |
| .operator-console button:not(.btn-approve):not(.btn-reject) { | |
| min-height: 34px; | |
| padding: 6px 14px; | |
| border: none; | |
| border-radius: var(--radius-small); | |
| cursor: pointer; | |
| font-weight: 600; | |
| font-size: 0.78rem; | |
| font-family: var(--font-family); | |
| transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast); | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 6px; | |
| white-space: nowrap; | |
| } | |
| .control-group button:hover, | |
| .operator-console button:not(.btn-approve):not(.btn-reject):hover { | |
| transform: translateY(-1px); | |
| } | |
| .control-group button:active, | |
| .operator-console button:not(.btn-approve):not(.btn-reject):active { | |
| transform: translateY(0px); | |
| } | |
| .control-group button:disabled, | |
| .operator-console button:disabled { | |
| opacity: 0.4; | |
| cursor: not-allowed; | |
| transform: none ; | |
| } | |
| /* Button Variants */ | |
| .btn-primary { | |
| background: var(--color-primary); | |
| color: white; | |
| } | |
| .btn-primary:hover:not(:disabled) { | |
| background: var(--color-primary-hover); | |
| } | |
| .btn-success { | |
| background: var(--color-success); | |
| color: white; | |
| } | |
| .btn-success:hover:not(:disabled) { | |
| background: var(--color-success-hover); | |
| } | |
| .btn-warning { | |
| background: var(--color-warning); | |
| color: #1a1a1a; | |
| } | |
| .btn-warning:hover:not(:disabled) { | |
| background: var(--color-warning-hover); | |
| } | |
| .btn-danger { | |
| background: var(--color-danger); | |
| color: white; | |
| } | |
| .btn-danger:hover:not(:disabled) { | |
| background: var(--color-danger-hover); | |
| } | |
| .btn-info { | |
| background: var(--color-info); | |
| color: white; | |
| } | |
| .btn-info:hover:not(:disabled) { | |
| background: var(--color-info-hover); | |
| } | |
| .btn-secondary { | |
| background: rgba(255, 255, 255, 0.08); | |
| color: #c0c8d8; | |
| } | |
| .btn-secondary:hover:not(:disabled) { | |
| background: rgba(255, 255, 255, 0.15); | |
| } | |
| .btn-undo { | |
| background: rgba(230, 170, 40, 0.15); | |
| color: #e6aa28; | |
| } | |
| .btn-undo:hover:not(:disabled) { | |
| background: rgba(230, 170, 40, 0.25); | |
| } | |
| /* Actions Row */ | |
| .actions-row { | |
| display: flex; | |
| gap: 6px; | |
| flex-wrap: wrap; | |
| width: 100%; | |
| } | |
| .actions-row button { | |
| flex: 1; | |
| min-width: 60px; | |
| justify-content: center; | |
| } | |
| /* ============================================================================ | |
| Proposals Section | |
| ============================================================================ */ | |
| .proposals-section { | |
| margin: 12px 0 14px; | |
| border: 1px solid rgba(255, 255, 255, 0.06); | |
| border-radius: var(--radius-small); | |
| padding: 0 12px; | |
| transition: border-color var(--transition-fast); | |
| } | |
| .proposals-section:hover { | |
| border-color: rgba(255, 255, 255, 0.12); | |
| } | |
| .proposals-summary { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| cursor: pointer; | |
| padding: 10px 0; | |
| user-select: none; | |
| list-style: none; | |
| gap: 12px; | |
| } | |
| .proposals-summary::-webkit-details-marker { | |
| display: none; | |
| } | |
| .proposals-title { | |
| font-weight: 500; | |
| color: #c8d0e0; | |
| font-size: 0.85rem; | |
| } | |
| .proposals-summary .badge { | |
| font-size: 0.68rem; | |
| padding: 2px 12px; | |
| border-radius: var(--radius-pill); | |
| background: rgba(255, 255, 255, 0.06); | |
| color: #8899bb; | |
| font-weight: 500; | |
| } | |
| .proposals-summary .badge.has-proposals { | |
| background: rgba(74, 124, 247, 0.2); | |
| color: var(--color-primary); | |
| } | |
| .proposals-summary .badge.has-proposals::after { | |
| content: ' ●'; | |
| color: var(--color-primary); | |
| animation: pulse-dot 1.5s ease-in-out infinite; | |
| } | |
| @keyframes pulse-dot { | |
| 0%, 100% { opacity: 0.5; } | |
| 50% { opacity: 1; } | |
| } | |
| /* Proposals List */ | |
| .proposals-list { | |
| padding: 4px 0 12px; | |
| } | |
| .proposal-empty { | |
| padding: 16px 12px; | |
| text-align: center; | |
| color: #666; | |
| font-size: 0.85rem; | |
| font-style: italic; | |
| } | |
| /* Proposal Item */ | |
| .proposal-item { | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| padding: 10px 14px; | |
| margin-bottom: 6px; | |
| border: 1px solid rgba(255, 255, 255, 0.08); | |
| border-radius: var(--radius-small); | |
| background: var(--bg-proposal); | |
| transition: background var(--transition-fast), border-color var(--transition-fast); | |
| flex-wrap: wrap; | |
| } | |
| .proposal-item:hover { | |
| background: rgba(255, 255, 255, 0.06); | |
| border-color: rgba(255, 255, 255, 0.15); | |
| } | |
| .proposal-item:last-child { | |
| margin-bottom: 0; | |
| } | |
| .proposal-kind { | |
| font-size: 0.7rem; | |
| font-weight: 600; | |
| text-transform: uppercase; | |
| letter-spacing: 0.04em; | |
| padding: 2px 10px; | |
| border-radius: var(--radius-pill); | |
| background: rgba(255, 255, 255, 0.06); | |
| color: #8899bb; | |
| white-space: nowrap; | |
| } | |
| .proposal-desc { | |
| font-family: var(--font-mono); | |
| font-size: 0.82rem; | |
| color: #c8d0e0; | |
| white-space: nowrap; | |
| } | |
| .proposal-conf { | |
| font-size: 0.75rem; | |
| font-weight: 600; | |
| padding: 2px 10px; | |
| border-radius: var(--radius-pill); | |
| background: rgba(255, 255, 255, 0.05); | |
| color: #4ddb8a; | |
| min-width: 50px; | |
| text-align: center; | |
| } | |
| .proposal-conf[data-level="low"] { | |
| color: #f06070; | |
| background: rgba(220, 70, 70, 0.15); | |
| } | |
| .proposal-conf[data-level="medium"] { | |
| color: #f0c040; | |
| background: rgba(230, 170, 40, 0.15); | |
| } | |
| .proposal-conf[data-level="high"] { | |
| color: #4ddb8a; | |
| background: rgba(36, 180, 110, 0.15); | |
| } | |
| .proposal-reason { | |
| font-size: 0.75rem; | |
| opacity: 0.6; | |
| flex: 1; | |
| min-width: 100px; | |
| } | |
| .proposal-actions { | |
| display: flex; | |
| gap: 6px; | |
| margin-left: auto; | |
| } | |
| .btn-approve, | |
| .btn-reject { | |
| min-height: 28px; | |
| padding: 3px 12px; | |
| border: none; | |
| border-radius: var(--radius-small); | |
| cursor: pointer; | |
| font-weight: 500; | |
| font-size: 0.7rem; | |
| font-family: var(--font-family); | |
| transition: background var(--transition-fast), transform var(--transition-fast); | |
| } | |
| .btn-approve { | |
| background: rgba(36, 180, 110, 0.15); | |
| color: var(--color-success); | |
| } | |
| .btn-approve:hover { | |
| background: rgba(36, 180, 110, 0.25); | |
| transform: translateY(-1px); | |
| } | |
| .btn-reject { | |
| background: rgba(220, 70, 70, 0.15); | |
| color: var(--color-danger); | |
| } | |
| .btn-reject:hover { | |
| background: rgba(220, 70, 70, 0.25); | |
| transform: translateY(-1px); | |
| } | |
| /* ============================================================================ | |
| Console Output | |
| ============================================================================ */ | |
| .console-output-wrapper { | |
| margin-top: 8px; | |
| } | |
| .console-output-header { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| padding: 6px 0 4px; | |
| border-bottom: 1px solid rgba(255, 255, 255, 0.05); | |
| } | |
| .console-output-title { | |
| font-size: 0.78rem; | |
| font-weight: 500; | |
| color: #c8d0e0; | |
| } | |
| .console-output-hint { | |
| font-size: 0.65rem; | |
| opacity: 0.4; | |
| font-family: var(--font-mono); | |
| } | |
| .console-output { | |
| max-height: 200px; | |
| overflow-y: auto; | |
| padding: 8px 12px; | |
| background: rgba(0, 0, 0, 0.3); | |
| border-radius: var(--radius-small); | |
| font-family: var(--font-mono); | |
| font-size: 0.78rem; | |
| line-height: 1.6; | |
| scroll-behavior: smooth; | |
| } | |
| .console-output::-webkit-scrollbar { | |
| width: 6px; | |
| } | |
| .console-output::-webkit-scrollbar-track { | |
| background: rgba(255, 255, 255, 0.03); | |
| border-radius: 3px; | |
| } | |
| .console-output::-webkit-scrollbar-thumb { | |
| background: rgba(255, 255, 255, 0.15); | |
| border-radius: 3px; | |
| } | |
| .console-output::-webkit-scrollbar-thumb:hover { | |
| background: rgba(255, 255, 255, 0.25); | |
| } | |
| /* Log Entries */ | |
| .log-entry { | |
| padding: 1px 0; | |
| opacity: 0.9; | |
| } | |
| .log-entry .log-time { | |
| color: #445566; | |
| margin-right: 8px; | |
| font-size: 0.7rem; | |
| } | |
| .log-entry.log-info { | |
| color: #7aabff; | |
| } | |
| .log-entry.log-success { | |
| color: #4ddb8a; | |
| } | |
| .log-entry.log-error { | |
| color: #f06070; | |
| } | |
| .log-entry.log-warning { | |
| color: #f0c040; | |
| } | |
| .log-entry.log-debug { | |
| color: #8899bb; | |
| opacity: 0.6; | |
| } | |
| /* ============================================================================ | |
| Operator Note | |
| ============================================================================ */ | |
| .operator-note { | |
| margin-top: 12px; | |
| padding: 8px 14px; | |
| border-radius: var(--radius-small); | |
| font-size: 0.78rem; | |
| opacity: 0.7; | |
| background: rgba(220, 70, 70, 0.05); | |
| border: 1px solid rgba(220, 70, 70, 0.08); | |
| color: #b0bcd0; | |
| line-height: 1.5; | |
| } | |
| .operator-note .icon { | |
| margin-right: 4px; | |
| } | |
| /* ============================================================================ | |
| Icons | |
| ============================================================================ */ | |
| .icon { | |
| font-size: 0.85em; | |
| line-height: 1; | |
| } | |
| /* ============================================================================ | |
| Responsive Design | |
| ============================================================================ */ | |
| /* Tablets and smaller screens */ | |
| @media (max-width: 900px) { | |
| .operator-console { | |
| padding: 16px 18px; | |
| } | |
| .console-controls { | |
| grid-template-columns: 1fr 1fr; | |
| } | |
| .console-header { | |
| flex-direction: column; | |
| align-items: stretch; | |
| } | |
| .console-status-group { | |
| justify-content: flex-start; | |
| } | |
| } | |
| /* Mobile devices */ | |
| @media (max-width: 600px) { | |
| .operator-console { | |
| padding: 14px; | |
| border-radius: 12px; | |
| } | |
| .console-controls { | |
| grid-template-columns: 1fr; | |
| gap: 8px; | |
| } | |
| .control-group__body { | |
| flex-wrap: wrap; | |
| } | |
| .control-group__body .input-label { | |
| min-width: 100%; | |
| } | |
| .actions-row button { | |
| flex: 1; | |
| min-width: 0; | |
| font-size: 0.7rem; | |
| padding: 4px 8px; | |
| min-height: 30px; | |
| } | |
| .console-metrics { | |
| gap: 10px; | |
| padding: 8px 12px; | |
| flex-wrap: wrap; | |
| } | |
| .console-metrics .metric { | |
| font-size: 0.75rem; | |
| } | |
| .proposal-item { | |
| flex-direction: column; | |
| align-items: stretch; | |
| gap: 6px; | |
| } | |
| .proposal-actions { | |
| margin-left: 0; | |
| justify-content: flex-start; | |
| } | |
| .proposal-kind, | |
| .proposal-desc, | |
| .proposal-conf, | |
| .proposal-reason { | |
| white-space: normal; | |
| } | |
| .shortcut-hint { | |
| display: none; | |
| } | |
| .console-output { | |
| max-height: 150px; | |
| font-size: 0.72rem; | |
| } | |
| .operator-note { | |
| font-size: 0.72rem; | |
| } | |
| } | |
| /* Very small screens */ | |
| @media (max-width: 380px) { | |
| .operator-console { | |
| padding: 10px; | |
| } | |
| .console-status-group { | |
| flex-wrap: wrap; | |
| } | |
| } | |
| /* ============================================================================ | |
| Accessibility & Focus States | |
| ============================================================================ */ | |
| *:focus-visible { | |
| outline: 2px solid var(--color-primary); | |
| outline-offset: 2px; | |
| border-radius: 4px; | |
| } | |
| /* Reduced motion preference */ | |
| @media (prefers-reduced-motion: reduce) { | |
| *, | |
| *::before, | |
| *::after { | |
| animation-duration: 0.01ms ; | |
| animation-iteration-count: 1 ; | |
| transition-duration: 0.01ms ; | |
| } | |
| .status-badge.status-running::before { | |
| animation: none; | |
| } | |
| .proposals-summary .badge.has-proposals::after { | |
| animation: none; | |
| } | |
| } | |
| /* High contrast mode */ | |
| @media (prefers-contrast: high) { | |
| .operator-console { | |
| border-color: rgba(255, 255, 255, 0.3); | |
| } | |
| .control-group { | |
| border-color: rgba(255, 255, 255, 0.15); | |
| } | |
| .status-badge { | |
| border: 1px solid currentColor; | |
| } | |
| .proposal-item { | |
| border-color: rgba(255, 255, 255, 0.2); | |
| } | |
| .btn-approve, | |
| .btn-reject { | |
| border: 1px solid currentColor; | |
| } | |
| } | |
| /* ============================================================================ | |
| Print Styles | |
| ============================================================================ */ | |
| @media print { | |
| .operator-console { | |
| background: white ; | |
| color: black ; | |
| border: 1px solid #ccc ; | |
| box-shadow: none ; | |
| } | |
| .control-group button, | |
| .operator-console button { | |
| background: #eee ; | |
| color: black ; | |
| } | |
| .console-output { | |
| max-height: none ; | |
| background: #f5f5f5 ; | |
| color: black ; | |
| } | |
| .status-badge.status-running::before { | |
| animation: none ; | |
| } | |
| } | |