/
Orpheus
/
laba2
Обзор
Документация
Войти
/
Orpheus
/
laba2
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
style.css
279 строк
5 KB
Orpheus
2 лаба
09 июн 2025, 05:45
09 июн 2025, 05:45
d076200
Код
Авторство
О чём код?
/* Базовые стили */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Arial', sans-serif; line-height: 1.6; color: #333; background-color: #f5f5f5; } .container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; } /* Шапка */ .header { background-color: #2c3e50; color: white; padding: 20px 0; position: relative; } .header h1 { margin-bottom: 20px; text-align: center; } /* Навигационное меню */ .nav { display: flex; justify-content: center; } .menu { display: flex; list-style: none; width: 100%; justify-content: space-between; padding: 0; } .menu-item { position: relative; flex: 1; text-align: center; } .menu-item a { color: white; text-decoration: none; padding: 10px 15px; display: block; transition: all 0.3s ease; } .menu-item a:hover { color: #3498db; text-decoration: underline; background-color: rgba(255, 255, 255, 0.1); border-radius: 4px; } /* Выпадающее меню */ .submenu { display: none; position: absolute; top: 100%; left: 0; width: 200px; background-color: white; list-style: none; padding: 10px 0; box-shadow: 0 2px 5px rgba(0,0,0,0.2); z-index: 100; } .submenu li a { color: #333; padding: 8px 15px; text-align: left; } .submenu li a:hover { background-color: #f0f0f0; text-decoration: none; } .dropdown:hover .submenu { display: block; } /* Основной контент */ .content-wrapper { display: flex; min-height: calc(100vh - 160px); } .main-content { flex: 3; padding: 30px; background-color: white; } .main-text { font-size: 18px; margin-bottom: 30px; } .main-text p { margin-bottom: 15px; } /* Боковая панель */ .sidebar { flex: 1; padding: 30px; background-color: #ecf0f1; } .sidebar h3 { margin-bottom: 20px; color: #2c3e50; } .sidebar-list { list-style: none; } .sidebar-list li { padding: 8px 0; border-bottom: 1px solid #ddd; } /* Подвал */ .footer { background-color: #2c3e50; color: white; padding: 20px 0; text-align: center; } /* Кнопка модального окна */ .modal-btn { background-color: #3498db; color: white; border: none; padding: 10px 20px; border-radius: 4px; cursor: pointer; font-size: 16px; transition: background-color 0.3s; } .modal-btn:hover { background-color: #2980b9; } /* Модальное окно */ .modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 1000; justify-content: center; align-items: center; } .modal { background-color: white; width: 500px; max-width: 90%; border-radius: 5px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.3); } .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background-color: #2c3e50; color: white; } .close-btn { background: none; border: none; color: white; font-size: 24px; cursor: pointer; } .modal-body { padding: 20px; } .modal-footer { padding: 15px 20px; text-align: right; border-top: 1px solid #eee; } .ok-btn { background-color: #3498db; color: white; border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer; } .ok-btn:hover { background-color: #2980b9; } /* Бургер-меню */ .burger-menu { display: none; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; cursor: pointer; position: absolute; top: 20px; right: 20px; } .burger-line { width: 100%; height: 3px; background-color: white; border-radius: 3px; } /* Медиа-запросы */ @media (max-width: 768px) { .content-wrapper { flex-direction: column; } .sidebar { order: -1; } } @media (max-width: 450px) { .menu { display: none; } .burger-menu { display: flex; } .sidebar { display: none; } .main-text { font-size: 14px; } .header h1 { font-size: 24px; } }