/
DriveVision
/
Smart-Column-S3
Обзор
Документация
Войти
/
DriveVision
/
Smart-Column-S3
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
data/style.css
739 строк
13 KB
Claude
Реализовать детальный просмотр процесса с графиками (v1.2.4)
07 дек 2025, 19:10
07 дек 2025, 19:10
64e0c14
Код
Авторство
О чём код?
/* Smart-Column S3 - Стили веб-интерфейса */ :root { --bg-primary: #f5f5f5; --bg-secondary: #ffffff; --bg-card: #ffffff; --text-primary: #333333; --text-secondary: #666666; --border-color: #dddddd; --accent: #007bff; --success: #28a745; --warning: #ffc107; --danger: #dc3545; --info: #17a2b8; --shadow: rgba(0, 0, 0, 0.1); } [data-theme="dark"] { --bg-primary: #1a1a1a; --bg-secondary: #2d2d2d; --bg-card: #2d2d2d; --text-primary: #e0e0e0; --text-secondary: #b0b0b0; --border-color: #404040; --shadow: rgba(0, 0, 0, 0.3); } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; } .container { max-width: 1400px; margin: 0 auto; padding: 20px; } /* Header */ header { background: var(--bg-card); padding: 20px; border-radius: 10px; margin-bottom: 20px; box-shadow: 0 2px 4px var(--shadow); } header h1 { font-size: 2em; margin-bottom: 10px; } .status-bar { display: flex; align-items: center; gap: 15px; font-size: 0.9em; color: var(--text-secondary); } .status-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; } .status-dot.online { background: var(--success); animation: pulse 2s infinite; } .status-dot.offline { background: var(--danger); } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } /* Tabs */ .tabs { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; } .tab { background: var(--bg-card); border: 2px solid var(--border-color); padding: 12px 24px; border-radius: 8px; cursor: pointer; font-size: 1em; color: var(--text-primary); transition: all 0.3s; } .tab:hover { border-color: var(--accent); } .tab.active { background: var(--accent); color: white; border-color: var(--accent); } /* Tab Content */ .tab-content { display: none; } .tab-content.active { display: block; } /* Cards Grid */ .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; } .card { background: var(--bg-card); padding: 20px; border-radius: 10px; box-shadow: 0 2px 4px var(--shadow); } .card h2 { font-size: 1.3em; margin-bottom: 15px; color: var(--accent); } /* Big Value Display */ .big-value { text-align: center; padding: 15px; margin: 10px 0; } .big-value .label { font-size: 0.9em; color: var(--text-secondary); margin-bottom: 5px; } .big-value .value { font-size: 2.5em; font-weight: bold; } /* Mode Colors */ .mode-idle { color: var(--text-secondary); } .mode-rectification { color: var(--success); } .mode-manual { color: var(--info); } .mode-distillation { color: var(--warning); } .mode-error { color: var(--danger); } /* Metrics */ .metrics { display: flex; flex-direction: column; gap: 10px; } .metric { display: flex; justify-content: space-between; align-items: center; padding: 10px; background: var(--bg-primary); border-radius: 6px; } .metric-label { font-size: 0.9em; color: var(--text-secondary); } .metric-value { font-weight: bold; font-size: 1.1em; } /* Buttons */ .btn { background: var(--bg-secondary); border: 2px solid var(--border-color); padding: 10px 20px; border-radius: 6px; cursor: pointer; font-size: 1em; color: var(--text-primary); transition: all 0.3s; } .btn:hover { transform: translateY(-2px); box-shadow: 0 4px 8px var(--shadow); } .btn-primary { background: var(--accent); color: white; border-color: var(--accent); } .btn-success { background: var(--success); color: white; border-color: var(--success); } .btn-warning { background: var(--warning); color: #333; border-color: var(--warning); } .btn-danger { background: var(--danger); color: white; border-color: var(--danger); } .btn-info { background: var(--info); color: white; border-color: var(--info); } .btn-sm { padding: 6px 12px; font-size: 0.9em; } /* Controls */ .controls { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; } .control-group { margin: 15px 0; } .control-group label { display: block; margin-bottom: 8px; font-weight: 500; } .control-group input[type="range"] { width: 100%; height: 8px; border-radius: 4px; background: var(--border-color); outline: none; } .control-group input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); cursor: pointer; } .control-group input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); cursor: pointer; border: none; } /* Form Groups */ .form-group { margin: 15px 0; } .form-group label { display: block; margin-bottom: 6px; font-weight: 500; } .form-group input { width: 100%; padding: 10px; border: 2px solid var(--border-color); border-radius: 6px; background: var(--bg-primary); color: var(--text-primary); font-size: 1em; } .form-group input:focus { outline: none; border-color: var(--accent); } .info-display { padding: 10px; background: var(--bg-primary); border: 2px solid var(--border-color); border-radius: 6px; color: var(--text-primary); font-size: 1em; font-weight: 600; min-height: 44px; display: flex; align-items: center; } /* Log Container */ .log-container { background: var(--bg-primary); padding: 15px; border-radius: 6px; max-height: 400px; overflow-y: auto; margin-bottom: 15px; font-family: 'Courier New', monospace; font-size: 0.9em; } .log-entry { padding: 5px 0; border-bottom: 1px solid var(--border-color); } .log-entry:last-child { border-bottom: none; } .log-entry.error { color: var(--danger); } .log-entry.warning { color: var(--warning); } .log-entry.info { color: var(--info); } /* Footer */ footer { text-align: center; padding: 20px; margin-top: 40px; color: var(--text-secondary); font-size: 0.9em; } /* Responsive */ @media (max-width: 768px) { .container { padding: 10px; } header h1 { font-size: 1.5em; } .tabs { gap: 5px; } .tab { padding: 8px 12px; font-size: 0.9em; } .cards { grid-template-columns: 1fr; } .big-value .value { font-size: 2em; } .controls { flex-direction: column; } .btn { width: 100%; } } /* Scrollbar */ ::-webkit-scrollbar { width: 10px; } ::-webkit-scrollbar-track { background: var(--bg-primary); } ::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 5px; } ::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); } /* History List */ .history-list { display: flex; flex-direction: column; gap: 15px; } .history-item { background: var(--bg-card); border: 2px solid var(--border-color); border-radius: 8px; padding: 15px; transition: all 0.3s; } .history-item:hover { border-color: var(--accent); box-shadow: 0 4px 8px var(--shadow); } .history-item-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; } .history-item-title { font-size: 1.1em; font-weight: 600; color: var(--text-primary); } .history-item-type { padding: 4px 8px; border-radius: 4px; font-size: 0.85em; font-weight: 500; } .history-type-rectification { background: #e3f2fd; color: #1976d2; } .history-type-distillation { background: #fce4ec; color: #c2185b; } .history-type-mashing { background: #fff3e0; color: #f57c00; } [data-theme="dark"] .history-type-rectification { background: #1a237e; color: #90caf9; } [data-theme="dark"] .history-type-distillation { background: #4a148c; color: #f48fb1; } [data-theme="dark"] .history-type-mashing { background: #e65100; color: #ffcc80; } .history-item-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 10px; font-size: 0.9em; } .history-info-item { display: flex; flex-direction: column; } .history-info-label { color: var(--text-secondary); font-size: 0.85em; } .history-info-value { color: var(--text-primary); font-weight: 600; } .history-item-actions { display: flex; gap: 8px; flex-wrap: wrap; } .history-status-badge { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 0.8em; font-weight: 600; } .history-status-completed { background: #4caf50; color: white; } .history-status-stopped { background: #ff9800; color: white; } .history-status-error { background: #f44336; color: white; } /* ============================================================================ Модальное окно ============================================================================ */ .modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); z-index: 1000; overflow-y: auto; } .modal-overlay.active { display: flex; align-items: center; justify-content: center; padding: 20px; } .modal-content { background: var(--bg-card); border-radius: 12px; max-width: 1200px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); position: relative; } .modal-header { padding: 20px; border-bottom: 2px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--bg-card); z-index: 10; } .modal-title { font-size: 1.5em; font-weight: 600; color: var(--text-primary); } .modal-close { background: transparent; border: none; font-size: 2em; color: var(--text-secondary); cursor: pointer; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all 0.3s; } .modal-close:hover { background: var(--bg-secondary); color: var(--text-primary); } .modal-body { padding: 20px; } .modal-section { margin-bottom: 30px; } .modal-section-title { font-size: 1.2em; font-weight: 600; color: var(--text-primary); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid var(--border-color); } .modal-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; margin-bottom: 20px; } .modal-info-item { background: var(--bg-secondary); padding: 15px; border-radius: 8px; border: 1px solid var(--border-color); } .modal-info-label { font-size: 0.9em; color: var(--text-secondary); margin-bottom: 5px; } .modal-info-value { font-size: 1.1em; font-weight: 600; color: var(--text-primary); } .modal-chart { background: var(--bg-secondary); border-radius: 8px; padding: 15px; margin-bottom: 20px; border: 1px solid var(--border-color); } .modal-phases { display: flex; flex-direction: column; gap: 10px; } .modal-phase-item { background: var(--bg-secondary); border-radius: 8px; padding: 15px; border-left: 4px solid var(--accent); } .modal-phase-name { font-weight: 600; color: var(--text-primary); margin-bottom: 8px; } .modal-phase-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; font-size: 0.9em; } .modal-phase-detail { color: var(--text-secondary); } .modal-phase-detail strong { color: var(--text-primary); } /* Темная тема для модального окна */ [data-theme="dark"] .modal-overlay { background: rgba(0, 0, 0, 0.85); } [data-theme="dark"] .modal-content { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); } /* Адаптивность модального окна */ @media (max-width: 768px) { .modal-content { max-height: 95vh; } .modal-header { padding: 15px; } .modal-body { padding: 15px; } .modal-title { font-size: 1.2em; } .modal-info-grid { grid-template-columns: 1fr; } }