/
werstak54
/
haval
Обзор
Документация
Войти
/
werstak54
/
haval
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/styles/header.css
246 строк
4 KB
pawel83gt
first
19 май 2026, 15:39
19 май 2026, 15:39
d522f33
Код
Авторство
О чём код?
header { background-color: black; color: white; } .top-line { display: flex; justify-content: space-between; align-items: center; max-width: 1170px; margin: 0 auto; padding-inline: 18px; width: 100%; box-sizing: border-box; height: 76px; } .left { display: flex; gap: 15px; } .logo1 { padding-right: 15px; } .logo1::after { content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-30%); width: 1px; height: 22px; background-color: #ccc; } .phone-block { display: flex; align-items: center; gap: 12px; } .phone-icon { width: 21px; height: 24px; display: block; } .phone-number { font-family: 'Haval', 'Arial', sans-serif; font-weight: 500; font-size: 15px; text-decoration: none; color: #fff; font-weight: 500; transition: color 0.2s; } .phone-number:hover { color: #00cabf; } .right { display: flex; align-items: center; gap: 12px; } .location, .time-work { font-family: 'Haval', 'Arial', sans-serif; font-size: 12px; line-height: 1.4; } .burger-btn, .close-btn { background: none; border: none; cursor: pointer; color: #fff; display: none; } .bottom-line { display: flex; align-items: center; max-width: 1170px; margin: 0 auto; padding-inline: 18px; width: 100%; box-sizing: border-box; height: 33px; } .nav { width: 100%; } .menus { display: flex; justify-content: space-between; gap: 10px; align-items: center; max-width: 1170px; width: 100%; font-size: 11px; } .nav-cars { display: flex; gap: 14px; } .nav-service { display: flex; text-transform: uppercase; gap: 14px; } /* Только планшеты и небольшие ноутбуки */ @media (max-width: 1000px) { .phone-block { gap: 4px; } .phone-icon { width: 15px; height: 18px; } .phone-number { font-size: 10px; } .location-icon { width: 15px; height: 26px; } .location, .time-work { font-size: 10px; line-height: 1.4; } } .overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 999; } .overlay.active { display: block; } /* 1131 и меньше */ @media (max-width: 1131px) { .menus { flex-direction: column; } } @media (min-width: 851px) { .mobile-menu { display: none; } } /* 850 и меньше */ @media (max-width: 850px) { .mobile-menu { position: fixed; top: 0; right: -100%; width: 300px; height: 100vh; background: #003f3c; transition: right 0.4s ease; z-index: 1000; padding: 30px 20px; overflow-y: auto; } .mobile-menu.active { right: 0; } .mobile-menu-content { position: relative; display: flex; flex-direction: column; gap: 15px; } .mobile-top { border-bottom: 1px solid #00cabf; } .mobile-bottom { padding-bottom: 15px; border-bottom: 1px solid #00cabf; } .menus, .nav-cars, .nav-service { flex-direction: column; align-items: flex-start; } .top-line { justify-content: center; } .center, .right, .bottom-line { display: none; } .burger-btn { display: block; position: absolute; top: 20px; right: 20px; z-index: 10; } .close-btn { display: block; position: absolute; top: 20px; right: 20px; z-index: 1001; } .mobile-phone, .mobile-location, .mobile-time-work { font-family: 'Welington', 'Arial', sans-serif; font-size: 12px; line-height: 1.4; } /* Анимация бургера при открытии */ .burger-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); } .burger-btn.active span:nth-child(2) { opacity: 0; } .burger-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); } }