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

194 lines
4.1 KiB
CSS

@font-face {
font-family: 'gilroy-semibold';
src: url('../css/fonts/Gilroy/gilroy-semibold-webfont.woff') format('woff');
}
#sites-map-container {
background-color: transparent;
text-align: center;
position: relative;
width: 155%;
max-width: 600px;
margin: 0 auto;
height: auto;
}
@media (max-width: 810px) {
#sites-map-container {
width: 80%;
}
}
@media (max-width: 530px) {
#sites-map-container {
width: 100%;
height: 485px;
}
}
@media (max-width: 400px) {
#sites-map-container {
width: 100%;
height: 430px;
}
}
#sites-map-container .site-link:hover {
cursor: pointer;
}
#sites-map-container #popup {
font-family: 'gilroy-light';
display: none;
position: absolute;
z-index: 1000;
text-align: left;
padding-left: 1rem;
/* pointer-events: none; */
}
@media (max-width: 1090px) {
#sites-map-container #popup {
bottom: 20px;
}
}
@media (min-width: 1090px) {
#sites-map-container #popup {
top: 50%;
left: 88%;
transform: translateY(-50%);
width: 300px;
}
}
#sites-map-container strong a {
color: #f7002b;
font-family: 'gilroy-bold';
}
#sites-map-container .link-30-projets{
margin-bottom: 2rem;
}
#sites-map-container .link-30-projets a {
display: inline-flex;
align-items: center;
color: white;
background: black;
text-transform: uppercase;
font-size: 0.5rem;
padding-left: 0.5rem;
}
#sites-map-container .link-30-projets a:after {
display: inline-flex;
content: url("../img/noun-arrow-to-right.svg");
padding-right: 0.5rem;
padding-left: 0.5rem;
}
#popup-content {
width: 300px;
padding-right: 30px;
font-size: 0.6rem !important;
position: relative;
}
#popup-content p {
font-size: 0.6rem !important;
}
@media (max-width: 1089px) {
#popup-content {
width: 300px;
background-color: white;
border-radius: 5px;
padding: 0.5rem;
padding-left: 1rem;
}
}
#popup-content ul{
padding-left: 0;
position: relative;
/* margin-top: 2rem; */
}
#popup-content ul::after {
content: "";
position: absolute;
top: -5px;
left: 0;
width: 100%;
height: 1px;
background-color: black;
z-index: 0;
}
#popup-content ul li {
position: relative;
color: black;
font-family: "gilroy-semibold";
padding-top: 0.3rem;
padding-bottom: 0.5rem;
background-color: #f6f7f3;
}
#popup-content ul li::after {
content: "";
position: absolute;
bottom: 0;
left: 0rem; /* même valeur que le padding-left */
/* width: calc(100% - 0.3rem); réduit la longueur */
width: 100%;
height: 1px;
background: black;
}
/* Spécifique au li .laureat */
#popup-content ul li.laureat {
--badge-size: 2.6rem; /* taille du badge */
margin-top: calc(var(--badge-size) / 2); /* on réserve de la place au-dessus */
padding-left: 0rem; /* place à gauche pour le badge */
}
/* Badge LAUREAT responsive */
#popup-content ul li.laureat::before {
content: "";
position: absolute;
left: -1.5rem; /* aligne avec le début du contenu */
top: -33%; /* milieu vertical du li */
/* top: calc(var(--badge-size) / 2); remonte dans la marge au-dessus */
width: var(--badge-size);
height: var(--badge-size);
background-color: #f6f7f3;
background-image: url("../img/laureat-ouvert.svg");
background-repeat: no-repeat;
background-position: center;
background-size: contain;
z-index: -1; /* sous le texte mais au-dessus du fond */
}
/* Mobile : on resserre tout, le badge suit */
@media (max-width: 1089px) {
#popup-content {
width: 300px;
background-color: white;
border-radius: 5px;
padding: 0.5rem 0.5rem 0.5rem 1rem;
padding-left:2rem ;
}
#popup-content ul li {
background-color: white;
/* padding-left: 3rem; */
}
#popup-content ul li::after {
height: 0.5px;
}
#popup-content ul li.laureat {
/* padding-left: 3rem; */
z-index: 0;
background-color: white !important;
}
#popup-content ul li.laureat::before {
width: 2.2rem;
height: 2.2rem;
left: -1.3rem;
top: -0.8rem;
z-index: -1;
background-color: white;
background-image: url("../img/laureat-ouvert.svg");
}
/* li{background-color: white;} */
}