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

71 lines
1.5 KiB
SCSS
Raw Normal View History

2024-10-01 21:57:47 +02:00
@font-face {
font-family: 'gilroy-semibold';
src: url('fonts/Gilroy/gilroy-semibold-webfont.woff') format('woff');
}
#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-01 21:57:47 +02:00
}
2024-10-08 14:05:17 +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 {
font-family: 'gilroy-semibold';
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-07 14:55:03 +02:00
2024-10-01 21:57:47 +02:00
}
2024-10-07 14:55:03 +02:00
2024-10-01 21:57:47 +02:00
#sites-map-container strong{
color: #f7002b;
font-family: 'gilroy-semibold';
}
#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) {
width: 250px;
background-color: white;
border-radius: 5px;
padding: 0.5rem;
}
2024-10-04 15:02:19 +02:00
}