portfolio-cheikh-niang / static /css /mobile-performance.css
PythonMindset's picture
Add vercel.json and update mobile CSS
198b35a
Raw History Blame
1.4 kB
/* OPTIMISATION MOBILE RADICALE */
@media (max-width: 768px) {
/* Forcer le GPU rendering */
* {
-webkit-transform: translateZ(0);
transform: translateZ(0);
backface-visibility: hidden;
-webkit-backface-visibility: hidden;
}
/* Désactiver TOUS les effets visuels */
*,
*::before,
*::after {
animation: none !important;
transition: none !important;
box-shadow: none !important;
text-shadow: none !important;
}
/* Sidebar : ABSOLUTE au lieu de FIXED */
.sidebar {
position: absolute !important;
transform: none !important;
}
/* Menu toggle : ABSOLUTE au lieu de FIXED */
.menu-toggle {
position: absolute !important;
}
/* Forcer le scroll natif */
body,
.main-content {
overflow-y: auto !important;
-webkit-overflow-scrolling: touch !important;
overflow-scrolling: touch !important;
}
/* Supprimer tous les gradients */
.sidebar,
.nav-btn,
.nav-btn.active,
.submit-btn,
.menu-toggle,
.project-link:hover {
background: #1A1F3A !important;
background-image: none !important;
}
.nav-btn.active {
background: #00D9FF !important;
}
/* Simplifier tout */
.main-content {
padding: 1rem !important;
}
}