/
efr
/
SmartCity
Обзор
Документация
Войти
/
efr
/
SmartCity
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
static/css/detection.css
323 строки
6 KB
Sergey
add_project
27 фев 2025, 19:33
27 фев 2025, 19:33
7eeda08
Код
Авторство
О чём код?
* { margin: 0; padding: 0; box-sizing: border-box; } body { height: 100vh; display: flex; background: #f0f2f5; font-family: Arial, sans-serif; } #tools-panel { width: 200px; padding: 20px 15px; background: #fff; box-shadow: 2px 0 8px rgba(0,0,0,0.1); height: 100vh; overflow-y: auto; z-index: 100; display: flex; flex-direction: column; align-items: center; } .logo-container { text-align: center; margin-bottom: 20px; width: 100%; } #tools-panel-logo { cursor: pointer; width: 158px; height: 80px; transition: all 0.3s ease; } /* Разделитель с иконками */ .section-divider { width: 100%; display: flex; align-items: center; margin: 15px 0; /* Единый отступ */ color: #d1d1d1; } .divider-line { flex: 1; height: 1px; background: currentColor; } .divider-icon { font-size: 0.8em; margin: 0 8px; color: rgba(0, 0, 0, 0.4); } /* Группы инструментов */ .tool-group { width: 100%; /* Гарантируем полную ширину */ } /* Кнопки инструментов */ .tool { display: flex; align-items: center; width: 100%; /* Занимают всю ширину */ padding: 12px; margin: 8px 0; /* Единые отступы */ border-radius: 6px; cursor: pointer; transition: all 0.2s; color: #a8a8a8; } .tool:hover { background: #f5f6f7; } .tool.active { background: #e7f3ff; color: #1877f2 !important; } .tool i { font-size: 20px; width: 30px; text-align: center; margin-right: 12px; color: inherit; } #video-container { flex: 1; padding: 20px; display: flex; justify-content: center; align-items: center; width: calc(100% - 200px); box-sizing: border-box; } #container { position: relative; width: 95%; max-height: 95vh; aspect-ratio: 16/9; background: #000; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,0.3); } #video, #overlay, #draw-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; } @media (max-width: 768px) { #tools-panel { width: 60px; padding: 10px; } .logo-title { display: none; } #tools-panel-logo { cursor: pointer; width: 40px; height: 40px; margin-bottom: 15px; } .section-divider { margin: 10px 0; /* Уменьшенные, но равные отступы */ } .tool { margin: 5px 0; padding: 10px; } .tool span { display: none; } .tool i { margin-right: 0; font-size: 18px; } #video-container { max-width: calc(100vw - 80px); padding: 10px; } /* Скрываем иконки разделителей на мобильных */ .divider-icon { display: none; } } #loading { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1000; } .spinner { border: 4px solid rgba(0, 0, 0, 0.1); border-left-color: #09f; border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 10000; justify-content: center; align-items: center; } .modal-content { background: white; border-radius: 16px; width: 90%; max-width: 600px; padding: 25px; box-shadow: 0 12px 40px rgba(0,0,0,0.2); position: relative; animation: modalScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); } .modal-header { position: absolute; top: 15px; right: 15px; } .modal-close { cursor: pointer; font-size: 28px; color: #999; transition: all 0.25s; line-height: 1; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; } .modal-close:hover { background: #f5f5f5; color: #666; transform: rotate(90deg); } .modal-body { display: flex; flex-wrap: wrap; gap: 12px; padding: 30px 15px; max-height: 70vh; overflow-y: auto; } .class-btn { padding: 14px 28px; border-radius: 50px; border: 2px solid #e0e0e0; background: none; color: #666; font-weight: 500; cursor: pointer; transition: all 0.25s ease; font-size: 15px; user-select: none; } .class-btn.selected { background: #1877f2; border-color: #1877f2; color: white; transform: scale(1.05); box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3); } .class-btn:hover:not(.selected) { border-color: #1877f2; color: #1877f2; transform: translateY(-2px); } .modal-footer { text-align: right; } #confirmClasses { background: #1877f2; color: white; border: none; padding: 12px 36px; border-radius: 50px; cursor: pointer; font-size: 15px; transition: all 0.25s ease; } #confirmClasses:hover { background: #166fe5; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3); } @keyframes modalScale { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } } #undo-button { color: #999; } #undo-button.disabled { opacity: 0.5; cursor: not-allowed; } #undo-button.disabled:hover { background: transparent; color: #999; }