.header { display: flex; top: 0; left: 0; width: 100%; position: fixed; align-items:…
- User
.header { display: flex; top: 0; left: 0; width: 100%; position: fixed; align-items: center; justify-content: space-between; padding: 15px 15px; z-index: 10; .logo { img { height: 100px; background-color: #ffffff; border-radius: 50%; } }
.nav { flex: 1; margin-right: 5%; margin-left: 5%; .nav-columns { display: flex; justify-content: space-between; .nav-column { display: flex; flex-direction: column; align-items: flex-start; margin: 0 15px; // Отступ между колонками a { margin: 8px 10px; text-decoration: none; color: #ffffff; font-weight: 900; font-size: 1.7vw; } } } } .mobile-menu-icon { display: flex; flex-direction: column; cursor: pointer; margin-right: 7%; span { width: 25px; height: 3px; background: #ffffff; margin: 4px 0; transition: 0.4s; } }}
/* Скрываем мобильное меню по умолчанию */ .mobile-menu { display: none; }
.mobile-menu-icon { display: none; }
/* Стили для мобильного меню */ .mobile-menu { display: none;
&.open { display: block; position: fixed; top: 0; right: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.95); transform: translateX(0); transition: transform 0.3s ease-in-out; z-index: 1000; .mobile-menu-header { display: flex; justify-content: flex-end; padding: 20px; .close-icon { position: relative; width: 24px; height: 24px; cursor: pointer; &::before, &::after { content: ''; position: absolute; left: 50%; top: 50%; width: 24px; height: 2px; background-color: black; transform-origin: center; } &::before { transform: translate(-50%, -50%) rotate(45deg); } &::after { transform: translate(-50%, -50%) rotate(-45deg); } } } .mobile-nav { display: flex; flex-direction: column; align-items: flex-end; padding: 0 20px; a { margin: 15px 0; text-decoration: none; color: #000; font-size: 1rem; font-weight: bold; } } }}
@media (max-width: 768px) { .mobile-menu-icon { display: flex; /* Показываем иконку мобильного меню на мобильных устройствах */ }
.nav { display: none; }} Почему-то при ширине 600-740 не отображается вообще ничего, кроме фото, в чем дело?
- Assistant