/
stuarus86
/
LawCheck
Обзор
Документация
Войти
/
stuarus86
/
LawCheck
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
static/css/style.css
1 024 строки
17 KB
Staurus
Добавлена детализация пакетной проверки: выгрузка отчетов, списки нарушений, кнопки детализации
11 фев 2026, 09:40
11 фев 2026, 09:40
41e39f2
Код
Авторство
О чём код?
* { margin: 0; padding: 0; box-sizing: border-box; } :root { --primary: #1976D2; --primary-dark: #1565C0; --success: #4CAF50; --danger: #F44336; --warning: #FF9800; --info: #2196F3; --text-primary: #212121; --text-secondary: #757575; --background: #F5F5F5; --surface: #FFFFFF; --divider: #BDBDBD; } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--background); color: var(--text-primary); line-height: 1.6; } .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; } /* Header */ .header { background: var(--primary); color: white; padding: 1rem 0; box-shadow: 0 2px 8px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; } .header-content { display: flex; justify-content: space-between; align-items: center; } .logo { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 700; } .logo-icon { font-size: 2rem; } .logo-badge { font-size: 0.8rem; background: rgba(255,255,255,0.2); padding: 2px 8px; border-radius: 4px; } .nav { display: flex; gap: 2rem; } .nav-link { color: white; text-decoration: none; font-weight: 500; transition: opacity 0.3s; } .nav-link:hover, .nav-link.active { opacity: 0.8; } /* Hero */ .hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: white; padding: 4rem 0 3rem; text-align: center; } .hero-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; } .hero-subtitle { font-size: 1.1rem; opacity: 0.9; margin-bottom: 2rem; } .stats-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 2rem; } .stat-card { background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); padding: 1.5rem; border-radius: 12px; border: 1px solid rgba(255,255,255,0.2); } .stat-value { font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5rem; } .stat-value.stat-success { color: #4CAF50; } .stat-label { font-size: 0.9rem; opacity: 0.9; } /* Main */ .main { padding: 3rem 0; } /* Tabs */ .tabs { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; } .tab-btn { display: flex; align-items: center; gap: 0.5rem; padding: 1rem 1.5rem; background: var(--surface); border: 2px solid transparent; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s; box-shadow: 0 2px 8px rgba(0,0,0,0.1); } .tab-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); } .tab-btn.active { background: var(--primary); color: white; border-color: var(--primary); } .tab-content { display: none; } .tab-content.active { display: block; } /* Card */ .card { background: var(--surface); border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); margin-bottom: 2rem; overflow: hidden; } .card-header { padding: 1.5rem; border-bottom: 1px solid var(--divider); display: flex; justify-content: space-between; align-items: center; } .card-header h2 { font-size: 1.5rem; font-weight: 600; } .text-muted { color: var(--text-secondary); font-size: 0.9rem; } .card-body { padding: 1.5rem; } /* Form Elements */ .form-textarea, .form-input { width: 100%; padding: 1rem; border: 2px solid var(--divider); border-radius: 8px; font-family: 'Consolas', monospace; font-size: 0.95rem; resize: vertical; transition: border-color 0.3s; } .form-textarea:focus, .form-input:focus { outline: none; border-color: var(--primary); } .url-input-group { display: flex; gap: 1rem; margin-bottom: 1rem; } .url-input-group .form-input { flex: 1; } /* Buttons */ .btn-group { display: flex; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; } .btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s; } .btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); } .btn-primary { background: var(--primary); color: white; } .btn-secondary { background: var(--text-secondary); color: white; } .btn-success { background: var(--success); color: white; } .btn-info { background: var(--info); color: white; } .btn-sm { padding: 0.5rem 1rem; font-size: 0.9rem; } /* Progress Bar */ .progress { height: 8px; background: #E0E0E0; border-radius: 4px; overflow: hidden; margin-top: 1rem; position: relative; } .progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--success)); animation: progress 1.5s infinite; width: 100%; } .progress-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 0.8rem; font-weight: 600; color: var(--text-primary); } @keyframes progress { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } } /* Alert */ .alert { padding: 1rem; border-radius: 8px; margin-bottom: 1rem; display: flex; gap: 1rem; } .alert-info { background: #E3F2FD; color: #1976D2; border-left: 4px solid var(--info); } .alert ul { margin-top: 0.5rem; padding-left: 1.5rem; } /* Results */ .results-card { animation: slideUp 0.3s ease-out; } @keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .result-box { background: #F9F9F9; padding: 1.5rem; border-radius: 8px; margin-top: 1rem; } .result-status { font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; padding: 1rem; border-radius: 8px; text-align: center; } .result-status.success { background: #E8F5E9; color: #2E7D32; } .result-status.error { background: #FFEBEE; color: #C62828; } .violations-list { margin-top: 1rem; } .violation-section { margin-bottom: 1.5rem; } .violation-section h3 { font-size: 1.1rem; margin-bottom: 0.75rem; color: var(--warning); } .word-list { display: flex; flex-wrap: wrap; gap: 0.5rem; } .word-tag { background: #FFF3E0; color: #E65100; padding: 0.25rem 0.75rem; border-radius: 16px; font-size: 0.9rem; } /* Footer */ .footer { background: var(--text-primary); color: white; padding: 3rem 0; margin-top: 4rem; } .footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; } .footer-section h3 { margin-bottom: 1rem; font-size: 1.2rem; } .footer-section ul { list-style: none; } .footer-section a { color: rgba(255,255,255,0.8); text-decoration: none; transition: color 0.3s; } .footer-section a:hover { color: white; } /* Loading Overlay */ .loading-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 9999; } .spinner { width: 50px; height: 50px; border: 4px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } .loading-overlay p { color: white; margin-top: 1rem; font-size: 1.2rem; } /* ============================================ УЛУЧШЕННЫЕ СТИЛИ РЕЗУЛЬТАТОВ ПРОВЕРКИ ============================================ */ /* Статус результата с иконкой */ .result-status { display: flex; align-items: center; gap: 1.5rem; padding: 1.5rem; border-radius: 12px; margin-bottom: 1.5rem; text-align: left; } .result-status .status-icon { font-size: 3rem; flex-shrink: 0; } .result-status .status-text h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; } .result-status .status-text p { font-size: 1rem; opacity: 0.9; margin: 0; } .result-status.success { background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%); color: #2E7D32; border-left: 5px solid #4CAF50; } .result-status.error { background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%); color: #C62828; border-left: 5px solid #F44336; } /* Секции нарушений */ .violations-list { display: flex; flex-direction: column; gap: 1rem; } .violation-section { background: #FAFAFA; border-radius: 12px; padding: 1.5rem; border-left: 4px solid var(--warning); } .violation-section.critical { background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%); border-left-color: #F44336; } .violation-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; } .violation-icon { font-size: 1.5rem; } .violation-section h3 { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); margin: 0; } .word-list { display: flex; flex-wrap: wrap; gap: 0.5rem; } .word-tag { background: #FFF3E0; color: #E65100; padding: 0.4rem 0.9rem; border-radius: 20px; font-size: 0.9rem; font-weight: 500; transition: all 0.2s; } .word-tag:hover { transform: scale(1.05); box-shadow: 0 2px 8px rgba(0,0,0,0.1); } .word-tag.critical { background: #FFEBEE; color: #C62828; } .more-words { color: var(--text-secondary); font-size: 0.9rem; margin-top: 0.75rem; font-style: italic; } /* Сводная статистика */ .stats-summary { background: linear-gradient(135deg, #F5F5F5 0%, #EEEEEE 100%); border-radius: 12px; padding: 1.5rem; margin-top: 1.5rem; } .stats-summary h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; color: var(--text-primary); } .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1rem; } .stat-item { text-align: center; padding: 1rem; background: white; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); } .stat-item .stat-number { display: block; font-size: 1.8rem; font-weight: 700; color: var(--primary); } .stat-item .stat-label { font-size: 0.85rem; color: var(--text-secondary); } .url-info { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--divider); color: var(--text-secondary); } .url-info a { color: var(--primary); text-decoration: none; } .url-info a:hover { text-decoration: underline; } /* Рекомендации */ .recommendations { margin-top: 1.5rem; } .recommendations h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; } .recommendations-list { display: flex; flex-direction: column; gap: 1rem; } .recommendation { display: flex; gap: 1rem; padding: 1rem; border-radius: 8px; background: #F5F5F5; } .recommendation.critical { background: #FFEBEE; border-left: 4px solid #F44336; } .recommendation.warning { background: #FFF3E0; border-left: 4px solid #FF9800; } .recommendation.success { background: #E8F5E9; border-left: 4px solid #4CAF50; } .recommendation.info { background: #E3F2FD; border-left: 4px solid #2196F3; } .rec-icon { font-size: 1.5rem; flex-shrink: 0; } .rec-content h5 { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; } .rec-content p { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 0.5rem; } .rec-action { font-size: 0.9rem; color: var(--primary) !important; font-weight: 500; } /* Пакетная проверка */ .batch-summary { background: linear-gradient(135deg, #F5F5F5 0%, #EEEEEE 100%); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; } .summary-header { margin-bottom: 1rem; } .summary-header h3 { font-size: 1.3rem; font-weight: 600; } .summary-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; } .summary-item { text-align: center; padding: 1rem; background: white; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); } .summary-item.success .summary-number { color: #4CAF50; } .summary-item.warning .summary-number { color: #FF9800; } .summary-item.critical .summary-number { color: #F44336; } .summary-number { display: block; font-size: 2rem; font-weight: 700; } .summary-label { font-size: 0.9rem; color: var(--text-secondary); } .batch-results-list { display: flex; flex-direction: column; gap: 0.75rem; } .batch-item { background: white; border-radius: 8px; padding: 1rem; border-left: 4px solid var(--divider); } .batch-item.success { border-left-color: #4CAF50; } .batch-item.warning { border-left-color: #FF9800; } .batch-item.critical { border-left-color: #F44336; background: #FFEBEE; } .batch-item.error { border-left-color: #F44336; background: #FFEBEE; } .batch-item-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; flex-wrap: wrap; } .batch-icon { font-size: 1.2rem; } .batch-number { font-weight: 600; color: var(--text-secondary); } .batch-url { color: var(--primary); text-decoration: none; font-weight: 500; } .batch-url:hover { text-decoration: underline; } .batch-item-stats { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.9rem; color: var(--text-secondary); } .critical-badge { background: #F44336; color: white; padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.8rem; font-weight: 600; } .batch-item-error { color: #C62828; font-size: 0.9rem; } /* ============================================ ПАКЕТНАЯ ПРОВЕРКА - ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ============================================ */ .batch-global-violations { background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; border-left: 4px solid #FF9800; } .batch-global-violations h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; color: #E65100; } .batch-violations-summary { display: flex; flex-direction: column; gap: 1rem; } .batch-violation-category { background: white; border-radius: 8px; padding: 1rem; border-left: 3px solid #FF9800; } .batch-violation-category.critical { border-left-color: #F44336; background: #FFEBEE; } .batch-violation-category h5 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.75rem; color: var(--text-primary); } .batch-details-btn { margin-left: auto; padding: 0.4rem 0.8rem; background: var(--primary); color: white; border: none; border-radius: 6px; font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: all 0.2s; } .batch-details-btn:hover { background: var(--primary-dark); transform: translateY(-1px); } .batch-details { margin-top: 1rem; padding: 1rem; background: #FAFAFA; border-radius: 8px; border-left: 3px solid var(--divider); animation: slideDown 0.3s ease-out; } @keyframes slideDown { from { opacity: 0; max-height: 0; } to { opacity: 1; max-height: 1000px; } } .batch-detail-section { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #E0E0E0; } .batch-detail-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; } .batch-detail-section.critical { background: #FFEBEE; padding: 0.75rem; border-radius: 6px; border-left: 3px solid #F44336; } .batch-detail-section h6 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-primary); } .batch-words-count { color: var(--text-secondary); font-size: 0.85rem; } /* ============================================ АДАПТИВНОСТЬ ============================================ */ @media (max-width: 768px) { .hero-title { font-size: 2rem; } .nav { flex-direction: column; gap: 0.5rem; } .url-input-group { flex-direction: column; } .btn-group { flex-direction: column; } .btn { width: 100%; justify-content: center; } .result-status { flex-direction: column; text-align: center; gap: 1rem; } .result-status .status-icon { font-size: 2.5rem; } .stats-grid { grid-template-columns: repeat(2, 1fr); } .summary-stats { grid-template-columns: 1fr; } .batch-item-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; } .batch-details-btn { margin-left: 0; width: 100%; } }