From bfb94ef05b1f3d65bf778cf2f25bb1edd90c466c Mon Sep 17 00:00:00 2001 From: ouidade Date: Thu, 21 Nov 2024 10:42:14 +0100 Subject: [PATCH] responsive header nav et taille carte, fix css --- .../assets/css/carte-interactive-qdd.css | 7 ++-- .../q2d_mod/src/Plugin/Block/SitesMap.php | 4 +- .../dist/assets/css/bundle.css | 8 +++- .../src/assets/scss/pages/static.scss | 4 ++ .../src/assets/scss/partials/header.scss | 39 +------------------ 5 files changed, 18 insertions(+), 44 deletions(-) diff --git a/web/modules/custom/q2d_mod/assets/css/carte-interactive-qdd.css b/web/modules/custom/q2d_mod/assets/css/carte-interactive-qdd.css index 24839b0..1646baf 100644 --- a/web/modules/custom/q2d_mod/assets/css/carte-interactive-qdd.css +++ b/web/modules/custom/q2d_mod/assets/css/carte-interactive-qdd.css @@ -7,7 +7,7 @@ text-align: center; position: relative; width: 155%; - max-width: 800px; + max-width: 600px; margin: 0 auto; height: auto; } @@ -63,7 +63,7 @@ color: white; background: black; text-transform: uppercase; - font-size: 0.6rem; + font-size: 0.5rem; padding-left: 0.5rem; text-decoration: none; margin-top: 0.7rem; @@ -83,9 +83,10 @@ #popup-content { width: 300px; padding-right: 30px; + font-size: 0.6rem !important; } #popup-content p { - font-size: 0.7rem; + font-size: 0.6rem !important; } @media (max-width: 810px) { #popup-content { diff --git a/web/modules/custom/q2d_mod/src/Plugin/Block/SitesMap.php b/web/modules/custom/q2d_mod/src/Plugin/Block/SitesMap.php index 18ef0be..7219ec2 100644 --- a/web/modules/custom/q2d_mod/src/Plugin/Block/SitesMap.php +++ b/web/modules/custom/q2d_mod/src/Plugin/Block/SitesMap.php @@ -61,9 +61,9 @@ class SitesMap extends BlockBase { $x = round(($lon - $lonLeft) / ($lonRight - $lonLeft) * $vp_w); $y = round(($latTop - $lat) / ($latTop - $latBottom) * $vp_h); - $r = 15; + $r = 12; $m = -$r/1.5+3; - $l = $r/1.5 +4; + $l = $r/1.5 +2.5; $sites_paths .= <<