lumina/ui/views/components/mobile-menu.scss
2025-11-29 23:13:05 +03:00

131 lines
2.3 KiB
SCSS

.mobile-menu {
position: relative;
}
.mobile-menu-toggle {
display: none; // Hidden on desktop
flex-direction: column;
justify-content: space-around;
width: 30px;
height: 30px;
background: transparent;
border: none;
cursor: pointer;
padding: 0;
z-index: 1001;
@media (max-width: 768px) {
display: flex;
}
}
.hamburger-line {
width: 100%;
height: 3px;
background: #00f0ff;
border-radius: 2px;
transition: all 0.3s ease;
}
.mobile-menu-toggle.active {
.hamburger-line:nth-child(1) {
transform: rotate(45deg) translate(8px, 8px);
}
.hamburger-line:nth-child(2) {
opacity: 0;
}
.hamburger-line:nth-child(3) {
transform: rotate(-45deg) translate(7px, -7px);
}
}
.mobile-menu-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(5px);
z-index: 1000;
animation: fadeIn 0.3s ease;
}
.mobile-menu-drawer {
position: fixed;
top: 0;
right: -100%;
width: 80%;
max-width: 300px;
height: 100%;
background: rgba(0, 0, 0, 0.95);
backdrop-filter: blur(10px);
z-index: 1001;
transition: right 0.3s ease;
box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
&.open {
right: 0;
}
}
.mobile-menu-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px;
border-bottom: 1px solid rgba(0, 240, 255, 0.3);
h2 {
margin: 0;
color: #00f0ff;
font-size: 1.2rem;
}
}
.mobile-menu-close {
background: transparent;
border: none;
color: #00f0ff;
font-size: 2rem;
cursor: pointer;
line-height: 1;
padding: 0;
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
transition: all 0.2s ease;
&:hover {
background: rgba(0, 240, 255, 0.1);
}
}
.mobile-menu-content {
padding: 20px;
overflow-y: auto;
height: calc(100% - 80px);
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
// Desktop: hide mobile menu
@media (min-width: 769px) {
.mobile-menu-toggle {
display: none;
}
}