/
LillitHuMi
/
web-nodejs
Обзор
Документация
Войти
/
LillitHuMi
/
web-nodejs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
public/css/main.css
618 строк
13 KB
unknown
Revert "hz"
09 апр 2026, 12:28
09 апр 2026, 12:28
95ee52b
Код
Авторство
О чём код?
/* styles.css */ :root { --primary-color: #0f6629; --secondary-color: #ff51bc; --accent-color: #ff1900; --light-bg: #3f192ff6; --dark-bg: #343a40; --text-color: #e96acd; --light-text: #fff; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: var(--text-color); background-color: var(--light-bg); } .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; } .header { background-color: var(--primary-color); color: var(--light-text); box-shadow: 0 2px 5px rgba(0,0,0,0.1); } .header-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 1rem 0; } .header-nav { background-color: var(--secondary-color); padding: 0.5rem 0; border-top: 1px solid rgba(255,255,255,0.1); } .site-title { font-size: 1.8rem; font-weight: bold; } nav { background-color: var(--secondary-color); padding: 0.5rem 0; } .nav-menu { display: flex; list-style: none; flex-wrap: wrap; gap: 1rem; } .nav-menu a { color: var(--light-text); text-decoration: none; padding: 0.5rem 1rem; border-radius: 4px; transition: background-color 0.3s; } .nav-menu a:hover { background-color: rgba(255,255,255,0.2); } main { padding: 2rem 0; min-height: 70vh; } .content-grid { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; } .personal-info { background: white; padding: 1.5rem; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); margin-bottom: 2rem; } .personal-info h2 { color: var(--primary-color); margin-bottom: 1rem; } .progress-section { background: white; padding: 1.5rem; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); margin-bottom: 2rem; } .progress-section h2 { color: var(--primary-color); margin-bottom: 1rem; } .progress-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1rem; } .stat-card { background: var(--light-bg); padding: 1rem; border-radius: 6px; text-align: center; } .stat-number { font-size: 2rem; font-weight: bold; color: var(--secondary-color); } .labs-section { background: white; padding: 1.5rem; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); } .labs-section h2 { color: var(--primary-color); margin-bottom: 1rem; } .labs-list { list-style: none; } .labs-list li { margin-bottom: 0.5rem; } .labs-list a { display: block; padding: 1rem; background: var(--light-bg); color: var(--text-color); text-decoration: none; border-radius: 6px; transition: all 0.3s; } .labs-list a:hover { background: var(--secondary-color); color: white; transform: translateX(5px); } footer { background-color: var(--dark-bg); color: var(--light-text); padding: 2rem 0; margin-top: 2rem; } .footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; } .footer-section h3 { margin-bottom: 1rem; color: var(--secondary-color); } /* Дополнительные классы для переиспользования */ .card { background: white; padding: 1.5rem; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); margin-bottom: 1rem; } .btn { display: inline-block; padding: 0.75rem 1.5rem; background-color: var(--primary-color); color: white; text-decoration: none; border-radius: 4px; transition: background-color 0.3s; border: none; cursor: pointer; } .btn:hover { background-color: var(--secondary-color); } .btn-secondary { background-color: var(--secondary-color); } .btn-secondary:hover { background-color: var(--primary-color); } .text-center { text-align: center; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; } /* Стили для меню лабораторных работ */ .lab-menu { background: white; padding: 1.5rem; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); } .tasks-list { list-style: none; } .tasks-list li { margin-bottom: 0.5rem; } .tasks-list a { display: block; padding: 0.8rem; background: var(--light-bg); color: var(--text-color); text-decoration: none; border-radius: 6px; transition: all 0.3s; } .tasks-list a:hover, .tasks-list a.active { background: var(--secondary-color); color: white; } .labs-list a.completed { background: var(--secondary-color); color: white; position: relative; padding-left: 2.5rem; } .labs-list a.completed:before { content: "✓"; position: absolute; left: 1rem; font-weight: bold; } .nav-menu a.active { background-color: rgba(255,255,255,0.2); font-weight: bold; } /* Стили для кнопки "Назад" */ .back-link { display: inline-block; padding: 0.5rem 1rem; background-color: var(--secondary-color); color: white; text-decoration: none; border-radius: 4px; margin-bottom: 1rem; transition: background-color 0.3s; } .back-link:hover { background-color: var(--primary-color); } /* Медиа-запросы */ @media (max-width: 768px) { .content-grid { grid-template-columns: 1fr; } .header-content { flex-direction: column; text-align: center; gap: 1rem; } .nav-menu { justify-content: center; } .progress-stats { grid-template-columns: 1fr; } } @media (max-width: 480px) { .container { padding: 0 10px; } .site-title { font-size: 1.5rem; } .nav-menu { flex-direction: column; align-items: center; } .nav-menu a { width: 100%; text-align: center; } .tasks-list a { padding: 1rem; font-size: 1.1rem; } .lab-menu { padding: 1rem; } } .form-container { background: white; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); padding: 2rem; margin: 2rem 0; } .form-group { margin-bottom: 1.5rem; } .form-group label { display: block; margin-bottom: 0.5rem; font-weight: bold; color: var(--primary-color); } .form-input { width: 100%; padding: 0.75rem; border: 1px solid #ddd; border-radius: 4px; font-size: 1rem; transition: border-color 0.3s; } .form-input:focus { outline: none; border-color: var(--secondary-color); box-shadow: 0 0 0 2px rgba(52, 219, 191, 0.2); } .name-fields { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; } .radio-group, .checkbox-group { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; } .radio-option, .checkbox-option { display: flex; align-items: center; gap: 0.5rem; } .form-select { width: 100%; padding: 0.75rem; border: 1px solid #ddd; border-radius: 4px; font-size: 1rem; background: white; } .hidden { display: none; } .results-section { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid #eee; } .result-card { background: var(--light-bg); padding: 1.5rem; border-radius: 6px; margin-bottom: 1rem; border-left: 4px solid var(--secondary-color); } .result-card h4 { color: var(--primary-color); margin-bottom: 1rem; } .result-item { margin-bottom: 0.5rem; padding: 0.5rem; background: white; border-radius: 4px; } .api-url { background: #2c3e50; color: white; padding: 0.75rem; border-radius: 4px; font-family: monospace; font-size: 0.9rem; word-break: break-all; margin-top: 0.5rem; } @media (max-width: 768px) { .name-fields { grid-template-columns: 1fr; } .radio-group, .checkbox-group { flex-direction: column; align-items: flex-start; } } #projectNameGroup { display: none; } /* Показываем поле при активированном чекбоксе */ #projectParticipant:checked ~ #projectNameGroup { display: block; } .match-table { width: 100%; border-collapse: collapse; margin-top: 1rem; } .match-table th, .match-table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid #ddd; } .match-table th { background-color: var(--primary-color); color: white; font-weight: bold; } .match-row-team1 { background-color: rgba(52, 219, 191, 0.1); /* Победа команды 1 */ } .match-row-team2 { background-color: rgba(231, 76, 60, 0.1); /* Победа команды 2 */ } .match-row-draw { background-color: rgba(255, 255, 255, 0.1); /* Ничья */ } .score-cell { text-align: center; font-weight: bold; font-size: 1.1em; } .filters-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; padding: 1rem; background: var(--light-bg); border-radius: 8px; } .filter-group { display: flex; flex-direction: column; } .filter-group label { margin-bottom: 0.5rem; font-weight: bold; color: var(--primary-color); } .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; } .stat-item { background: white; padding: 1rem; border-radius: 6px; text-align: center; box-shadow: 0 2px 4px rgba(0,0,0,0.1); } .stat-value { font-size: 1.5rem; font-weight: bold; color: var(--secondary-color); margin-bottom: 0.5rem; } .stat-label { font-size: 0.9rem; color: var(--text-color); } .match-row-team1 { background-color: rgba(52, 219, 191, 0.1); border-left: 3px solid rgba(52, 219, 191, 0.5); } .match-row-team2 { background-color: rgba(231, 76, 60, 0.1); border-left: 3px solid rgba(231, 76, 60, 0.5); } .match-row-draw { background-color: rgba(255, 255, 255, 0.1); border-left: 3px solid #ddd; } .score-cell { font-weight: bold; text-align: center; } .match-table { width: 100%; border-collapse: collapse; margin-top: 1rem; } .match-table th, .match-table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid #ddd; } .match-table th { background-color: var(--primary-color); color: white; font-weight: bold; } .filters-container { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; } .filter-group { flex: 1; min-width: 200px; } .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-top: 1rem; } .stat-item { text-align: center; padding: 1rem; background: var(--light-bg); border-radius: 8px; } .stat-value { font-size: 2rem; font-weight: bold; color: var(--primary-color); } .stat-label { font-size: 0.9rem; color: #666; margin-top: 0.5rem; }