PythonMindset commited on
Commit
d0e13a4
·
1 Parent(s): ae19b5f

Fix mobile scroll: remove position fixed and simplify CSS drastically

Browse files
Files changed (1) hide show
  1. static/css/mobile-performance.css +35 -94
static/css/mobile-performance.css CHANGED
@@ -1,118 +1,59 @@
1
- /* OPTIMISATION RADICALE MOBILE - Performance maximale */
2
  @media (max-width: 768px) {
3
- /* DÉSACTIVER TOUTES LES ANIMATIONS */
 
 
 
 
 
 
 
 
4
  *,
5
  *::before,
6
  *::after {
7
  animation: none !important;
8
  transition: none !important;
9
- will-change: auto !important;
 
10
  }
11
 
12
- /* Garder UNIQUEMENT la transition du menu */
13
  .sidebar {
14
- transition: transform 0.3s ease !important;
 
15
  }
16
 
17
- .menu-toggle span {
18
- transition: all 0.3s ease !important;
 
19
  }
20
 
21
- /* Désactiver tous les effets visuels lourds */
22
- .metric-card,
23
- .home-project-card,
24
- .project-card,
25
- .about-card,
26
- .skill-card,
27
- .contact-card,
28
- .nav-btn,
29
- .project-link,
30
- .sidebar {
31
- box-shadow: none !important;
32
- background: #1A1F3A !important;
33
- border: 1px solid rgba(0, 217, 255, 0.3) !important;
34
  }
35
 
36
- /* Simplifier les gradients */
 
 
37
  .nav-btn.active,
38
- .submit-btn {
39
- background: #00D9FF !important;
 
 
 
40
  }
41
 
42
- .menu-toggle {
43
  background: #00D9FF !important;
44
  }
45
 
46
- /* Désactiver tous les hover effects */
47
- .nav-btn:hover,
48
- .metric-card:hover,
49
- .home-project-card:hover,
50
- .project-card:hover,
51
- .about-card:hover,
52
- .skill-card:hover,
53
- .contact-card:hover,
54
- .project-link:hover,
55
- .tech-pill:hover,
56
- .cv-link:hover,
57
- .contact-card a:hover {
58
- transform: none !important;
59
- box-shadow: none !important;
60
- background: inherit !important;
61
- }
62
-
63
- /* Forcer tous les éléments animés à être visibles */
64
- .animate-on-scroll,
65
- .animate-from-left,
66
- .animate-from-right,
67
- .animate-zoom {
68
- opacity: 1 !important;
69
- transform: none !important;
70
- }
71
-
72
- /* Optimisation du scroll natif */
73
- body {
74
- -webkit-overflow-scrolling: touch;
75
- overflow-y: scroll;
76
- scroll-behavior: auto; /* Pas de smooth scroll */
77
- }
78
-
79
  .main-content {
80
- -webkit-overflow-scrolling: touch;
81
- overflow-y: visible;
82
- }
83
-
84
- /* Optimisation des images */
85
- img {
86
- will-change: auto;
87
- transform: none !important;
88
- backface-visibility: hidden;
89
- -webkit-backface-visibility: hidden;
90
- }
91
-
92
- .project-images img:hover {
93
- transform: none !important;
94
- border-color: rgba(0, 217, 255, 0.3) !important;
95
- }
96
-
97
- /* Désactiver les transitions sur les inputs */
98
- input,
99
- textarea,
100
- button {
101
- transition: none !important;
102
- }
103
-
104
- input:focus,
105
- textarea:focus {
106
- transition: none !important;
107
- }
108
- }
109
-
110
- /* Optimisation GPU */
111
- @media (max-width: 768px) {
112
- body,
113
- .main-content,
114
- .page {
115
- transform: translate3d(0, 0, 0);
116
- -webkit-transform: translate3d(0, 0, 0);
117
  }
118
  }
 
1
+ /* OPTIMISATION MOBILE RADICALE */
2
  @media (max-width: 768px) {
3
+ /* Forcer le GPU rendering */
4
+ * {
5
+ -webkit-transform: translateZ(0);
6
+ transform: translateZ(0);
7
+ backface-visibility: hidden;
8
+ -webkit-backface-visibility: hidden;
9
+ }
10
+
11
+ /* Désactiver TOUS les effets visuels */
12
  *,
13
  *::before,
14
  *::after {
15
  animation: none !important;
16
  transition: none !important;
17
+ box-shadow: none !important;
18
+ text-shadow: none !important;
19
  }
20
 
21
+ /* Sidebar : ABSOLUTE au lieu de FIXED */
22
  .sidebar {
23
+ position: absolute !important;
24
+ transform: none !important;
25
  }
26
 
27
+ /* Menu toggle : ABSOLUTE au lieu de FIXED */
28
+ .menu-toggle {
29
+ position: absolute !important;
30
  }
31
 
32
+ /* Forcer le scroll natif */
33
+ body,
34
+ .main-content {
35
+ overflow-y: auto !important;
36
+ -webkit-overflow-scrolling: touch !important;
37
+ overflow-scrolling: touch !important;
 
 
 
 
 
 
 
38
  }
39
 
40
+ /* Supprimer tous les gradients */
41
+ .sidebar,
42
+ .nav-btn,
43
  .nav-btn.active,
44
+ .submit-btn,
45
+ .menu-toggle,
46
+ .project-link:hover {
47
+ background: #1A1F3A !important;
48
+ background-image: none !important;
49
  }
50
 
51
+ .nav-btn.active {
52
  background: #00D9FF !important;
53
  }
54
 
55
+ /* Simplifier tout */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  .main-content {
57
+ padding: 1rem !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  }
59
  }