Skip to content

Commit 2fd9e73

Browse files
committed
Merge remote-tracking branch 'origin/fix_css_rule' into recette
2 parents 4fe990a + 6a416cc commit 2fd9e73

File tree

2 files changed

+47
-1
lines changed

2 files changed

+47
-1
lines changed

atlas/static/css/areaSheet.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@
4242
}
4343
}
4444

45+
.leaflet-top.leaflet-right {
46+
z-index: 1000;
47+
}
4548

4649
img.statut_icon {
4750
width: 1rem;
@@ -73,4 +76,4 @@ img.statut_icon {
7376
position: absolute;
7477
left: 50%;
7578
top: 50%;
76-
}
79+
}

atlas/static/css/ficheEspece.css

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,49 @@ p.imgDescription.main {
118118
padding-right: 0px;
119119
}
120120

121+
/* Slider temporel sur la carte */
122+
123+
#mapContainer .leaflet-bar.leaflet-control.leaflet-slider-control {
124+
margin: 0 0 0 10px !important; /* Supprime les marges inutiles */
125+
/*margin-left: 10px !important;*/
126+
width: fit-content !important; /* Adapte la largeur au contenu */
127+
min-width: 250px; /* Pour éviter un trop petit encart */
128+
max-width: 100%; /* Empêche le dépassement */
129+
height: auto !important; /* Ajuste automatiquement la hauteur */
130+
display: flex;
131+
flex-direction: column;
132+
align-items: center;
133+
}
134+
135+
#mapContainer .leaflet-bottom.leaflet-left {
136+
display: flex;
137+
flex-direction: column-reverse;
138+
margin-bottom: 20px;
139+
}
140+
141+
/* Optimisation pour les petits écrans */
142+
@media (max-width: 950px) {
143+
144+
#mapContainer #contour-legend {
145+
margin-bottom: 80px;
146+
}
147+
148+
#mapContainer .slider.slider-horizontal {
149+
width: 160px;
150+
}
151+
}
152+
153+
@media (max-width: 400px) {
154+
155+
#mapContainer #contour-legend {
156+
margin-bottom: 110px;
157+
}
158+
159+
#mapContainer .slider.slider-horizontal {
160+
width: 160px;
161+
}
162+
}
163+
121164
#mapStat {
122165
text-align: center;
123166
padding-left: 0px;

0 commit comments

Comments
 (0)