/
glrbbir
/
ShedulerOS
Обзор
Документация
Войти
/
glrbbir
/
ShedulerOS
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
style.css
713 строк
17 KB
Gleb
project
12 июн 2026, 19:15
12 июн 2026, 19:15
9180c5a
Код
Авторство
О чём код?
* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif; /* Мягкий, современный градиент на фоне */ background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 100%); color: #1f2937; min-height: 100vh; } .container { max-width: 1400px; margin: 0 auto; padding: 0 20px 40px; } /* HEADER */ .header { padding: 30px 0; margin-bottom: 10px; } .header h1 { font-size: 2.2rem; color: #1e1b4b; font-weight: 800; letter-spacing: -0.5px; } .header p { color: #4f46e5; font-size: 1.05rem; margin-top: 5px; font-weight: 500; } /* MAIN LAYOUT */ .main-content { display: grid; grid-template-columns: 320px 1fr; gap: 25px; align-items: start; } /* PANELS & SECTIONS (Glassmorphism) */ .control-panel { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 20px; } .main-panel { display: flex; flex-direction: column; gap: 25px; } .section { /* Эффект матового стекла */ background: rgba(255, 255, 255, 0.55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 16px; padding: 24px; box-shadow: 0 8px 32px rgba(31, 38, 135, 0.05); border: 1px solid rgba(255, 255, 255, 0.8); } .section h3 { color: #312e81; font-size: 1.1rem; font-weight: 700; margin-bottom: 18px; } .section-title { margin-bottom: 15px; color: #312e81; font-size: 1.1rem; font-weight: 700; } .transparent-section { background: transparent; box-shadow: none; border: none; padding: 0; backdrop-filter: none; } /* ═════════════════════════════════════════════════════════════════════════ */ /* FORMS (Единые стили для инпутов) */ /* ═════════════════════════════════════════════════════════════════════════ */ .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; } .comparison-grid { margin-bottom: 20px; } .form-group { display: flex; flex-direction: column; } .form-group.full-width { grid-column: 1 / -1; } .form-group label { font-size: 0.8rem; color: #4338ca; margin-bottom: 6px; font-weight: 600; } /* Единый стиль для всех полей ввода, селектов (включая модалки и таблицы) */ .form-group input, .form-group select, .modal-input, .td-edit-input, .td-edit-select, .queue-algorithm-select-MLQ, .queue-algorithm-select-MLQ-0, .queue-algorithm-select-MLFQ, .queue-quantum-input-MLQ, .queue-quantum-input-MLFQ { padding: 8px 12px; background: #ffffff; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.9rem; color: #312e81; font-family: inherit; transition: all 0.2s ease; } /* Специфичная ширина для определенных полей */ .form-group input, .form-group select { width: 100%; } .td-edit-input, .td-edit-select { width: auto; min-width: 70px; } .queue-quantum-input-MLQ, .queue-quantum-input-MLFQ { width: 70px; text-align: center; } .modal-input { width: 100%; } .select-large { padding: 10px 12px !important; font-weight: 500; } /* Единый фокус для всех элементов формы */ .form-group input:focus, .form-group select:focus, .modal-input:focus, .td-edit-input:focus, .td-edit-select:focus, .queue-algorithm-select-MLQ:focus, .queue-algorithm-select-MLQ-0:focus, .queue-algorithm-select-MLFQ:focus, .queue-quantum-input-MLQ:focus, .queue-quantum-input-MLFQ:focus { outline: none; border-color: #6366f1; background: #ffffff; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15); } .form-group input[type="color"] { padding: 2px 4px; height: 38px; cursor: pointer; border: none; } /* Стили для заблокированного инпута (блок сравнения) */ .comparison-input-disabled { width: 100%; padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 6px; background: #f3f4f6; color: #312e81; /* Темно-синий цвет, как у остальных инпутов */ font-weight: 500; } /* Стиль для селектора сравнения, чтобы он соответствовал левому инпуту */ #comparisonAlgorithm2 { font-weight: 500; color: #312e81; /* Темно-синий цвет текста */ } /* Класс для информационных плашек */ .info-alert { margin-top: 15px; padding: 12px; background: rgba(79, 70, 229, 0.05); font-size: 0.9rem; color: #4b5563; border-radius: 8px; border-left: 3px solid #6366f1; } /* ═════════════════════════════════════════════════════════════════════════ */ /* BUTTONS (Общее поведение и градиенты) */ /* ═════════════════════════════════════════════════════════════════════════ */ .button-group-vertical { display: flex; flex-direction: column; gap: 8px; } .button-group-horizontal { display: flex; gap: 10px; } .btn { padding: 10px 16px; border: none; border-radius: 10px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; text-align: center; width: 100%; } .btn-primary { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); color: white; box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25); } .btn-primary:hover { background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35); } .btn-secondary { background: rgba(255, 255, 255, 0.6); color: #4f46e5; border: 1px solid rgba(255, 255, 255, 0.9); } .btn-secondary:hover { background: rgba(255, 255, 255, 0.9); color: #4338ca; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); } .btn-outline { background: rgba(255, 255, 255, 0.5); border: 1px solid rgba(255, 255, 255, 0.8); color: #4338ca; } .btn-outline:hover { background: rgba(255, 255, 255, 0.9); border-color: #8b5cf6; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); } /* Плеер */ .visualization-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; } .visualization-header h3 { margin-bottom: 0; } .player-controls-wrapper { display: flex; align-items: center; background: rgba(255, 255, 255, 0.6); padding: 6px 14px; border-radius: 50px; border: 1px solid rgba(255, 255, 255, 0.8); gap: 15px; } .speed-label { font-size: 0.8rem; color: #6366f1; font-weight: 600; } .speed-select { border: none; background: transparent; font-weight: 600; color: #312e81; cursor: pointer; outline: none; } .player-buttons { display: flex; gap: 6px; align-items: center; } .btn-text { font-size: 0.8rem; color: #6366f1; font-weight: 600; border: none; } .btn-icon { background: transparent; border: none; color: #6366f1; font-size: 1.1rem; cursor: pointer; padding: 6px; border-radius: 50%; transition: all 0.2s; display: flex; align-items: center; justify-content: center; } .btn-icon:hover { background: rgba(255, 255, 255, 0.8); color: #4338ca; } .btn-icon-main { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); color: white; width: 36px; height: 36px; box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3); } .btn-icon-main:hover { background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); color: white; transform: scale(1.05); } .simulation-container { width: 100%; max-height: 500px; overflow-y: auto; overflow-x: hidden; background: #ffffff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); } #simulationCanvas { display: block; } /* ═════════════════════════════════════════════════════════════════════════ */ /* TABLES */ /* ═════════════════════════════════════════════════════════════════════════ */ .table-responsive { overflow-x: auto; } .threads-table { width: 100%; border-collapse: collapse; } .threads-table thead { background: rgba(255, 255, 255, 0.4); } .threads-table th { padding: 12px 16px; text-align: left; font-weight: 600; font-size: 0.85rem; color: #4338ca; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid rgba(255, 255, 255, 0.8); } .threads-table td { padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.5); font-size: 0.95rem; color: #1e1b4b; } /* ═════════════════════════════════════════════════════════════════════════ */ /* METRICS CARDS */ /* ═════════════════════════════════════════════════════════════════════════ */ .metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 15px; } .metric-card { background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 20px; border-radius: 16px; text-align: center; border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: 0 4px 15px rgba(31, 38, 135, 0.03); transition: transform 0.2s; } .metric-card:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.8); } .metric-label { font-size: 0.75rem; color: #6366f1; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; } .metric-value { font-size: 1.8rem; font-weight: 800; background: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } /* CHARTS */ .charts-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 20px; } .chart-wrapper { position: relative; height: 250px; width: 100%; } /* RESPONSIVE */ @media (max-width: 1024px) { .main-content { grid-template-columns: 1fr; } .control-panel, .sticky-section { position: static; } .form-grid { grid-template-columns: repeat(4, 1fr); } } @media (max-width: 768px) { .form-grid { grid-template-columns: 1fr 1fr; } .metrics-grid { grid-template-columns: repeat(2, 1fr); } .visualization-header { flex-direction: column; align-items: flex-start; gap: 15px; } } /* ═════════════════════════════════════════════════════════════════════════ */ /* INLINE THREAD EDITING & TABLE BUTTONS */ /* ═════════════════════════════════════════════════════════════════════════ */ /* Базовые стили для кнопок в таблице. display: inline-block нужен для правильной работы transform */ .btn-delete, .btn-edit, .btn-save, .btn-cancel { display: inline-block; border: none; padding: 6px 10px; border-radius: 6px; cursor: pointer; font-size: 0.8rem; font-weight: 600; transition: all 0.2s ease; margin-right: 4px; } .btn-delete { background: rgba(254, 226, 226, 0.8); color: #ef4444; } .btn-delete:hover { background: #fca5a5; color: #b91c1c; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); } .btn-edit { background: rgba(219, 234, 254, 0.8); color: #2563eb; } .btn-edit:hover { background: #bfdbfe; color: #1d4ed8; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); } .btn-save { background: rgba(209, 250, 229, 0.9); color: #059669; } .btn-save:hover { background: #a7f3d0; color: #047857; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); } .btn-cancel { background: rgba(243, 244, 246, 0.9); color: #6b7280; } .btn-cancel:hover { background: #e5e7eb; color: #374151; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); } /* Строка таблицы в режиме редактирования */ tr.editing { background: rgba(79, 70, 229, 0.06) !important; box-shadow: inset 3px 0 0 #6366f1; transition: background 0.2s; } tr.editing td { padding-top: 8px; padding-bottom: 8px; } /* ═════════════════════════════════════════════════════════════════════════ */ /* QUEUE CONFIGURATION BLOCKS (MLQ/MLFQ) */ /* ═════════════════════════════════════════════════════════════════════════ */ .queue-config-block { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; margin-bottom: 10px; padding: 10px; background: rgba(255, 255, 255, 0.4); border-radius: 6px; border-left: 3px solid #4f46e5; transition: all 0.2s ease; } .queue-config-block:hover { background: rgba(255, 255, 255, 0.6); box-shadow: 0 2px 8px rgba(79, 70, 229, 0.1); } .queue-config-block span { font-weight: 600; color: #312e81; min-width: 30px; font-size: 0.9rem; } /* Убираем стрелочки у числовых инпутов */ .queue-quantum-input-MLQ[type="number"], .queue-quantum-input-MLFQ[type="number"] { -moz-appearance: textfield; } .queue-quantum-input-MLQ[type="number"]::-webkit-outer-spin-button, .queue-quantum-input-MLFQ[type="number"]::-webkit-outer-spin-button, .queue-quantum-input-MLQ[type="number"]::-webkit-inner-spin-button, .queue-quantum-input-MLFQ[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; } /* ═════════════════════════════════════════════════════════════════════════ */ /* MODAL OVERLAY & CONTENT */ /* ═════════════════════════════════════════════════════════════════════════ */ .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px); z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; animation: fadeIn 0.2s forwards; } @keyframes fadeIn { to { opacity: 1; } } .modal-content { background: white; border-radius: 16px; padding: 25px; width: 90%; max-width: 650px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); } .modal-content h3 { color: #312e81; margin-bottom: 20px; font-size: 1.3rem; font-weight: 700; } .modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 25px; padding-top: 15px; border-top: 1px solid #e5e7eb; } .modal-actions .btn { width: auto; padding: 8px 20px; } .modal-table { width: 100%; border-collapse: collapse; margin-top: 10px; } .modal-table th, .modal-table td { padding: 10px; border-bottom: 1px solid #e5e7eb; text-align: left; font-size: 0.9rem; } .modal-table th { font-weight: 600; color: #4b5563; background: #f9fafb; }