/
9sber
/
author_search
Обзор
Документация
Войти
/
9sber
/
author_search
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
develop_baseline
client/src/widgets/loader/ui/loader.css
642 строки
11 KB
Knohhonk
Dev: paper preprocessing with VLM
14 ноя 2025, 12:25
14 ноя 2025, 12:25
52d0497
Код
Авторство
О чём код?
/* Waiting.css */ /* Стили для страницы ожидания */ #page-waiting .container { max-width: 800px; margin: 0 auto; background: var(--card-bg); padding: 30px; border-radius: 16px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05); } /* Кнопка назад */ .back-btn { background: #f1f5f9; color: var(--text); border: none; padding: 10px 20px; font-size: 15px; font-weight: 600; border-radius: 10px; cursor: pointer; transition: all 0.3s ease; margin-bottom: 30px; } .back-btn:hover { background: #e2e8f0; transform: translateX(-2px); } /* Основное содержимое */ .waiting-content { text-align: center; padding: 20px 0; } .waiting-content h2 { font-size: 2rem; color: var(--primary); margin-bottom: 40px; font-weight: 700; } /* Анимация */ .animation-container { margin: 0 auto 40px; width: 120px; height: 120px; position: relative; } .science-icon { width: 100%; height: 100%; position: relative; display: flex; align-items: center; justify-content: center; } .flask { width: 60px; height: 80px; background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); border-radius: 0 0 30px 30px; position: relative; animation: float 3s ease-in-out infinite; } .flask::before { content: ''; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 30px; height: 20px; background: #e2e8f0; border-radius: 10px 10px 0 0; } .flask::after { content: ''; position: absolute; top: -5px; left: 50%; transform: translateX(-50%); width: 20px; height: 10px; background: #f1f5f9; border-radius: 5px 5px 0 0; } .bubbles { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; height: 100%; } .bubble { position: absolute; background: rgba(255, 255, 255, 0.8); border-radius: 50%; animation: bubble-rise 2s ease-in infinite; } .bubble-1 { width: 8px; height: 8px; left: 20px; bottom: 10px; animation-delay: 0s; } .bubble-2 { width: 6px; height: 6px; left: 35px; bottom: 15px; animation-delay: 0.3s; } .bubble-3 { width: 10px; height: 10px; left: 50px; bottom: 5px; animation-delay: 0.6s; } .bubble-4 { width: 7px; height: 7px; left: 65px; bottom: 12px; animation-delay: 0.9s; } @keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-10px); } } @keyframes bubble-rise { 0% { transform: translateY(0) scale(1); opacity: 0.8; } 100% { transform: translateY(-60px) scale(1.2); opacity: 0; } } /* Прогресс бар */ .progress-section { margin-bottom: 30px; } .progress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; } .progress-text { color: var(--text); font-weight: 600; font-size: 0.95rem; } .progress-percent { color: var(--primary); font-weight: 700; font-size: 1.1rem; } .progress-container { width: 100%; height: 12px; background: #e2e8f0; border-radius: 6px; overflow: hidden; box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1); } .progress-bar { height: 100%; border-radius: 6px; transition: width 0.3s ease, background-color 0.3s ease; position: relative; overflow: hidden; } .progress-bar::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%); animation: shimmer 2s infinite; } @keyframes shimmer { 0% { left: -100%; } 100% { left: 100%; } } /* Время */ .time-estimate { display: flex; align-items: center; justify-content: center; gap: 15px; margin-bottom: 30px; padding: 15px; background: #f0f9ff; border-radius: 10px; border: 1px solid #bae6fd; } .time-icon { font-size: 1.5rem; } .time-text { text-align: left; } .time-main { font-weight: 600; color: var(--text); font-size: 1rem; } .time-sub { color: var(--text-light); font-size: 0.85rem; margin-top: 2px; } /* Текущий шаг */ .current-step { display: flex; align-items: center; justify-content: center; gap: 15px; margin-bottom: 30px; padding: 20px; background: #f8fafc; border-radius: 12px; border: 1px solid var(--border); } .step-indicator { background: var(--primary); color: white; padding: 8px 16px; border-radius: 20px; font-weight: 700; min-width: 60px; } .step-current { font-size: 1.2rem; } .step-total { font-size: 0.9rem; opacity: 0.8; } .step-text { color: var(--text); font-weight: 600; font-size: 1rem; text-align: left; flex: 1; } /* Детали анализа */ .analysis-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 30px; } .detail-item { display: flex; align-items: center; gap: 10px; padding: 12px 15px; background: white; border-radius: 8px; border: 1px solid var(--border); transition: transform 0.2s ease, box-shadow 0.2s ease; } .detail-item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); } .detail-icon { font-size: 1.2rem; } .detail-text { color: var(--text); font-size: 0.9rem; font-weight: 500; text-align: left; } /* Подсказка */ .loading-tip { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 25px; padding: 20px; background: #fffbeb; border-radius: 12px; border: 1px solid #fcd34d; text-align: left; } .tip-icon { font-size: 1.5rem; flex-shrink: 0; } .tip-content { color: var(--text); font-size: 0.95rem; line-height: 1.4; } .tip-content strong { color: #d97706; } /* Интересные факты */ .fun-facts { padding: 20px; background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); border-radius: 12px; border: 1px solid #bae6fd; } .fact-title { font-weight: 700; color: var(--primary); margin-bottom: 8px; font-size: 1rem; } .fact-text { color: var(--text); font-size: 0.9rem; line-height: 1.4; } /* Анимации для страницы */ #page-waiting { animation: fadeIn 0.5s ease; } @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } /* Адаптивность для мобильных устройств */ @media (max-width: 768px) { #page-waiting .container { padding: 20px; } .waiting-content h2 { font-size: 1.6rem; margin-bottom: 30px; } .animation-container { width: 100px; height: 100px; margin-bottom: 30px; } .flask { width: 50px; height: 70px; } .progress-header { flex-direction: column; gap: 5px; align-items: flex-start; } .current-step { flex-direction: column; gap: 10px; text-align: center; } .step-text { text-align: center; } .analysis-details { grid-template-columns: 1fr; gap: 10px; } .time-estimate { flex-direction: column; gap: 10px; text-align: center; } .time-text { text-align: center; } .loading-tip { flex-direction: column; gap: 10px; text-align: center; } .back-btn { width: 100%; text-align: center; } } @media (max-width: 480px) { #page-waiting .container { padding: 15px; } .waiting-content { padding: 10px 0; } .waiting-content h2 { font-size: 1.4rem; margin-bottom: 25px; } .animation-container { width: 80px; height: 80px; margin-bottom: 25px; } .flask { width: 40px; height: 60px; } .bubble-1 { left: 15px; bottom: 8px; } .bubble-2 { left: 28px; bottom: 12px; } .bubble-3 { left: 40px; bottom: 4px; } .bubble-4 { left: 52px; bottom: 10px; } .progress-container { height: 10px; } .step-indicator { padding: 6px 12px; min-width: 50px; } .step-current { font-size: 1.1rem; } .detail-item { padding: 10px 12px; } .detail-icon { font-size: 1.1rem; } .detail-text { font-size: 0.85rem; } .loading-tip, .fun-facts, .time-estimate, .current-step { padding: 15px; } } /* Дополнительные анимации для улучшения UX */ @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } } .loading-tip { animation: pulse 2s ease-in-out infinite; } .detail-item:nth-child(1) { animation-delay: 0.1s; } .detail-item:nth-child(2) { animation-delay: 0.3s; } .detail-item:nth-child(3) { animation-delay: 0.5s; } .detail-item:nth-child(4) { animation-delay: 0.7s; } .detail-item { animation: fadeInUp 0.6s ease forwards; opacity: 0; transform: translateY(10px); } @keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } } /* Улучшенные тени и глубины */ .progress-container, .current-step, .analysis-details .detail-item, .loading-tip, .fun-facts, .time-estimate { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); } /* Плавные переходы для всех интерактивных элементов */ .back-btn, .detail-item, .progress-bar { transition: all 0.3s ease; } /* Контрастность и доступность */ .progress-text, .step-text, .detail-text, .fact-text, .time-main { color: var(--text); } .time-sub, .step-total { color: var(--text-light); } /* Фокус состояния для доступности */ .back-btn:focus { outline: 2px solid var(--primary); outline-offset: 2px; } /* Оптимизация производительности анимаций */ .flask, .bubble, .progress-bar::after { will-change: transform, opacity; } /* Поддержка prefers-reduced-motion */ @media (prefers-reduced-motion: reduce) { .flask, .bubble, .progress-bar::after, .detail-item { animation: none !important; transition: none !important; } .progress-bar { transition: width 0.1s ease !important; } }