From ba1c7ffb4d9e2da247ccd6e121b9b38207f8c13c Mon Sep 17 00:00:00 2001 From: syoul Date: Wed, 3 Dec 2025 17:30:40 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20correction=20radicale=20du=20positionnem?= =?UTF-8?q?ent=20des=20labels=20avec=20s=C3=A9lecteurs=20sp=C3=A9cifiques?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Utilisation de sélecteurs basés sur la structure réelle du DOM - Réduction de la largeur des labels à 160px - Réduction de toutes les tailles de police (titre 14px, description 11px) - Labels positionnés à 60px des bords - Quadrant 4 remonté à 160px du bas pour la légende - Légende positionnée à 60px du bas à droite - Z-index 100 pour la légende - Sélecteurs ciblant directement [class*='Radar_radar'] [class*='Label_label'] --- custom.css | 102 +++++++++++++++++++++++++++++++---------------------- 1 file changed, 60 insertions(+), 42 deletions(-) diff --git a/custom.css b/custom.css index a49c1f9..9877c73 100644 --- a/custom.css +++ b/custom.css @@ -33,73 +33,92 @@ header nav a:hover { text-decoration: underline !important; } -/* Ajuster le positionnement des labels de quadrants pour éviter le chevauchement avec les cercles */ -/* Approche simplifiée avec sélecteurs plus génériques */ -div[class*="labels"] > div, -div[class*="Label"] { - max-width: 200px !important; - padding: 12px !important; +/* CORRECTION RADICALE DES LABELS DE QUADRANTS */ +/* Réduire drastiquement la taille et repositionner loin des cercles */ +[class*="Radar_radar"] [class*="Label_label"] { + width: 160px !important; + max-width: 160px !important; + min-height: auto !important; + padding: 10px !important; background: rgba(26, 77, 58, 0.95) !important; - border-radius: 8px !important; + border-radius: 6px !important; backdrop-filter: blur(4px) !important; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important; } +/* Réduire la taille du texte */ +[class*="Label_label"] [class*="title"], +[class*="Label_label"] h3 { + font-size: 14px !important; + margin: 0 0 6px 0 !important; + line-height: 1.2 !important; +} + +[class*="Label_label"] [class*="description"], +[class*="Label_label"] p { + font-size: 11px !important; + line-height: 1.3 !important; + margin: 0 !important; +} + +[class*="Label_label"] [class*="header"] { + font-size: 10px !important; + padding: 6px 0 !important; + margin: 0 0 8px !important; +} + /* Quadrant 1 (en haut à gauche) */ -div[class*="labels"] > div[class*="position-1"], -div[class*="position-1"] { - left: 50px !important; - top: 50px !important; - right: auto !important; - bottom: auto !important; +[class*="Radar_radar"] [class*="Label_label"][class*="Label_position-1"] { + left: 60px !important; + top: 60px !important; } /* Quadrant 2 (en haut à droite) */ -div[class*="labels"] > div[class*="position-2"], -div[class*="position-2"] { - right: 50px !important; - top: 50px !important; +[class*="Radar_radar"] [class*="Label_label"][class*="Label_position-2"] { + right: 60px !important; + top: 60px !important; left: auto !important; - bottom: auto !important; } /* Quadrant 3 (en bas à gauche) */ -div[class*="labels"] > div[class*="position-3"], -div[class*="position-3"] { - left: 50px !important; - bottom: 50px !important; - right: auto !important; +[class*="Radar_radar"] [class*="Label_label"][class*="Label_position-3"] { + left: 60px !important; + bottom: 60px !important; top: auto !important; } -/* Quadrant 4 (en bas à droite) - Positionné plus haut pour laisser place à la légende */ -div[class*="labels"] > div[class*="position-4"], -div[class*="position-4"] { - right: 50px !important; - bottom: 200px !important; +/* Quadrant 4 (en bas à droite) - Remonté pour la légende */ +[class*="Radar_radar"] [class*="Label_label"][class*="Label_position-4"] { + right: 60px !important; + bottom: 160px !important; left: auto !important; top: auto !important; } -/* Ajuster la légende pour éviter le chevauchement avec les cercles et le quadrant 4 */ -ul[class*="Legend"], -ul[class*="legend"] { - z-index: 10 !important; - padding: 12px 16px !important; +/* Ajuster la légende - positionnée loin en bas à droite */ +[class*="Radar_radar"] [class*="Legend_legend"] { + z-index: 100 !important; + padding: 10px 14px !important; background: rgba(26, 77, 58, 0.95) !important; - border-radius: 8px !important; + border-radius: 6px !important; backdrop-filter: blur(4px) !important; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important; - max-width: 200px !important; + max-width: 160px !important; position: absolute !important; + font-size: 11px !important; +} + +[class*="Legend_legend"] li { + font-size: 11px !important; + line-height: 1.4 !important; + margin-bottom: 4px !important; } /* Sur les grands écrans, positionner la légende en bas à droite */ @media (min-width: 1200px) { - ul[class*="Legend"], - ul[class*="legend"] { - right: 50px !important; - bottom: 50px !important; + [class*="Radar_radar"] [class*="Legend_legend"] { + right: 60px !important; + bottom: 60px !important; left: auto !important; top: auto !important; transform: none !important; @@ -108,12 +127,11 @@ ul[class*="legend"] { /* Sur les écrans moyens, centrer la légende en bas */ @media (min-width: 768px) and (max-width: 1199px) { - ul[class*="Legend"], - ul[class*="legend"] { + [class*="Radar_radar"] [class*="Legend_legend"] { left: 50% !important; right: auto !important; transform: translateX(-50%) !important; - bottom: 50px !important; + bottom: 60px !important; top: auto !important; } }