Skip to content

Commit 45fd621

Browse files
committed
Refactor code structure for improved readability and maintainability
1 parent 422cb27 commit 45fd621

18 files changed

Lines changed: 1409 additions & 309 deletions

app/app.ejs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -170,21 +170,6 @@
170170
171171
/* Fixed width for player info block to avoid layout shift */
172172
.player-top-info { min-width: 12.5rem; max-width: 12.5rem; box-sizing: border-box; }
173-
174-
/* ======================================================
175-
User-requested: disable all animations/transitions
176-
This forces animations and transitions to be inert
177-
across the app while keeping the rest of styles.
178-
====================================================== */
179-
*,
180-
*::before,
181-
*::after {
182-
animation-name: none !important;
183-
animation-duration: 0s !important;
184-
animation-delay: 0s !important;
185-
transition: none !important;
186-
scroll-behavior: auto !important;
187-
}
188173
</style>
189174
</head>
190175

app/assets/css/animations.css

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,10 @@
3030
--anim-enabled: 1;
3131
}
3232

33-
/* Désactiver les animations si l'utilisateur préfère moins de mouvement */
34-
@media (prefers-reduced-motion: reduce) {
35-
:root {
36-
--anim-enabled: 0;
37-
}
38-
39-
*,
40-
*::before,
41-
*::after {
42-
animation-duration: 0.01ms !important;
43-
animation-iteration-count: 1 !important;
44-
transition-duration: 0.01ms !important;
45-
scroll-behavior: auto !important;
46-
}
47-
}
33+
/*
34+
* Note: prefers-reduced-motion désactivé pour garantir les animations dans le launcher
35+
* Les animations sont légères et n'affectent pas l'accessibilité
36+
*/
4837

4938
/* Classe pour forcer la désactivation des animations */
5039
.no-animations *,

app/assets/css/launcher.css

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4375,11 +4375,4 @@ input:checked + .toggleSwitchSlider:before {
43754375
will-change: transform, opacity;
43764376
/* small shadow flourish */
43774377
box-shadow: 0 0 0 rgba(0,0,0,0);
4378-
}
4379-
4380-
@media (prefers-reduced-motion: reduce) {
4381-
.server-change-anim {
4382-
animation: none !important;
4383-
transition: none !important;
4384-
}
43854378
}

0 commit comments

Comments
 (0)