libre-charge-map/styles/_overrides.scss
2025-05-04 23:48:53 +02:00

113 lines
No EOL
2.7 KiB
SCSS

/**
overrides leaflet
*/
.leaflet-control-layers {
&.leaflet-control-layers-toggle {
background: url('img/burger.png');
}
+.leaflet-control-layers {
display: none;
}
}
.leaflet-control-layers-list {
label {
cursor: pointer;
&:hover {
background-color: var(--button-border);
color: white;
}
}
}
.leaflet-control-attribution {
padding: 10px;
font-size: 0.7rem !important;
}
/* Styles pour les contrôles de couches */
.leaflet-control-layers {
&.base-layers {
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M2 9l10-5 10 5-10 5-10-5zm0 6l10 5 10-5M2 12l10 5 10-5"/></svg>');
background-size: 16px;
background-position: 6px center;
background-repeat: no-repeat;
padding-left: 28px !important;
.leaflet-control-layers-toggle {
background-image: none;
width: auto;
padding-right: 10px;
}
&::after {
content: "Fonds";
margin-left: 5px;
font-size: 12px;
}
}
&.overlay-layers {
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"/></svg>');
background-size: 16px;
background-position: 6px center;
background-repeat: no-repeat;
padding-left: 28px !important;
.leaflet-control-layers-toggle {
background-image: none;
width: auto;
padding-right: 10px;
}
&::after {
content: "Calques";
margin-left: 5px;
font-size: 12px;
}
}
}
// Styles pour les contrôles de calques
.leaflet-control-layers {
&.base-layers {
.leaflet-control-layers-toggle {
background-image: url('../img/burger.png') !important;
background-size: 20px 20px !important;
background-position: center !important;
background-repeat: no-repeat !important;
width: 30px !important;
height: 30px !important;
}
}
&.overlay-layers {
.leaflet-control-layers-toggle {
background-image: url('../img/pizza.png') !important;
background-size: 20px 20px !important;
background-position: center !important;
background-repeat: no-repeat !important;
background-color: #3f74aa !important;
width: 30px !important;
height: 30px !important;
}
}
// Style commun pour le conteneur
background: white;
padding: 5px;
border-radius: 4px;
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}
.battery-marker {
background: white;
border-radius: 1rem;
padding: 30px;
width: 5rem;
height: 5rem;
border: solid 1px #ccc;}