File size: 1,760 Bytes
25f22bf |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
/* Mobile Navigation Optimizations */
/* Ensure smooth scrolling on mobile */
.mobile-menu-content {
-webkit-overflow-scrolling: touch;
}
/* Hide scrollbar on mobile for cleaner look */
.mobile-menu-content::-webkit-scrollbar {
display: none;
}
/* Animation optimizations for mobile */
@media (max-width: 767px) {
.mobile-menu-content {
will-change: transform;
backface-visibility: hidden;
}
.animate-slide-in {
animation-duration: 0.2s;
animation-timing-function: ease-out;
}
.animate-fade-in {
animation-duration: 0.2s;
animation-timing-function: ease-out;
}
}
/* Touch target optimization for mobile menu items */
.mobile-nav-item {
min-height: 48px;
display: flex;
align-items: center;
touch-action: manipulation;
}
/* Prevent text selection on mobile menu items */
.mobile-nav-item,
.mobile-menu-button {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-tap-highlight-color: transparent;
}
/* Focus states for accessibility */
.mobile-nav-item:focus,
.mobile-menu-button:focus {
outline: 2px solid var(--primary-color);
outline-offset: 2px;
}
/* High contrast mode support */
@media (prefers-contrast: high) {
.mobile-menu-content {
border-left: 2px solid currentColor;
}
.mobile-nav-item {
border-bottom: 1px solid currentColor;
}
.mobile-menu-button {
border: 2px solid currentColor;
}
}
/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
.animate-slide-in,
.animate-fade-in {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
.mobile-optimized:active {
transform: none;
}
} |