drupal-quartiersdedemain/web/modules/custom/q2d_mod/assets/css/carte-interactive-qdd.scss

97 lines
2.2 KiB
SCSS
Raw Normal View History

2024-10-01 21:57:47 +02:00
@font-face {
font-family: 'gilroy-semibold';
2024-10-08 21:41:58 +02:00
src: url('../css/fonts/Gilroy/gilroy-semibold-webfont.woff') format('woff');
2024-10-01 21:57:47 +02:00
}
#sites-map-container {
2024-10-04 14:21:09 +02:00
background-color: #cecfcc;
2024-10-01 21:57:47 +02:00
text-align: center;
2024-10-04 15:02:19 +02:00
position: relative;
2024-10-08 14:44:25 +02:00
width: 100%; /* Prend toute la largeur du conteneur parent */
max-width: 800px; /* Optionnel : Limiter la largeur maximale */
margin: 0 auto; /* Centrer le conteneur */
height: auto; /* Permet à la hauteur de s'ajuster automatiquement */
2024-10-08 21:10:45 +02:00
@media (max-width: 810px) {
2024-10-08 21:34:01 +02:00
width: 80%; /* Prend toute la largeur du conteneur parent */
}
@media (max-width: 530px) {
width: 100%; /* Prend toute la largeur du conteneur parent */
height: 485px;
}
@media (max-width: 400px) {
width: 100%; /* Prend toute la largeur du conteneur parent */
height: 430px;
2024-10-08 21:10:45 +02:00
}
2024-10-01 21:57:47 +02:00
}
2024-10-08 14:05:17 +02:00
2024-10-01 21:57:47 +02:00
2024-10-08 21:50:00 +02:00
2024-10-01 21:57:47 +02:00
/* Changer la couleur au survol (hover) */
#sites-map-container .site-link:hover{
cursor: pointer;
}
2024-10-07 14:55:03 +02:00
2024-10-01 21:57:47 +02:00
/* Styles du popup (caché par défaut) */
#sites-map-container #popup {
2024-10-09 09:46:33 +02:00
font-family: 'gilroy-light';
2024-10-01 21:57:47 +02:00
display: none;
2024-10-04 15:02:19 +02:00
position: absolute;
2024-10-01 21:57:47 +02:00
z-index: 1000;
2024-10-07 14:55:03 +02:00
text-align: left;
padding-left: 1rem;
2024-10-08 15:13:17 +02:00
pointer-events: none;
2024-10-08 21:41:58 +02:00
@media (max-width: 1090px) {
2024-10-08 21:10:45 +02:00
bottom: 20px;
}
2024-10-07 14:55:03 +02:00
2024-10-01 21:57:47 +02:00
}
2024-10-08 21:50:00 +02:00
/* Position du popup à droite lorsque l'écran est plus grand que 1090px */
@media (min-width: 1090px) {
#sites-map-container #popup {
top: 50%; /* Centrer verticalement */
left: 80%; /* Placer le popup à droite de la carte */
transform: translateY(-50%); /* Ajuster pour centrer verticalement */
width: 300px;
}
}
2024-10-07 14:55:03 +02:00
2024-10-01 21:57:47 +02:00
#sites-map-container strong{
color: #f7002b;
2024-10-09 09:46:33 +02:00
font-family: 'gilroy-bold';
2024-10-01 21:57:47 +02:00
}
#sites-map-container a{
2024-10-04 14:49:05 +02:00
display: none;
2024-10-01 21:57:47 +02:00
align-items: center;
color: white;
background: black;
text-transform: uppercase;
font-size: 0.8rem;
padding-left: 0.5rem;
text-decoration: none;
margin-top: 0.7rem;
height: 1.3rem;
}
#sites-map-container a:after{
display: inline-flex;
content: url("../img/noun-arrow-to-right.svg");
padding-right: 0.2rem;
padding-left: 0.2rem;
}
2024-10-04 15:02:19 +02:00
#popup-content{
2024-10-08 14:57:04 +02:00
width: 300px;
2024-10-08 14:05:17 +02:00
p{
font-size: 0.7rem;
}
2024-10-08 14:57:04 +02:00
@media (max-width : 810px) {
2024-10-08 21:10:45 +02:00
width: 300px;
2024-10-08 14:57:04 +02:00
background-color: white;
border-radius: 5px;
padding: 0.5rem;
2024-10-08 21:10:45 +02:00
padding-left: 1rem;
2024-10-08 14:57:04 +02:00
}
2024-10-04 15:02:19 +02:00
}