Skip to content

Commit

Permalink
change aspect ratio on small device
Browse files Browse the repository at this point in the history
  • Loading branch information
pyDez committed Sep 25, 2024
1 parent 3bddf14 commit a9bf471
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions envergo/static/sass/project.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1816,6 +1816,15 @@ main.demonstrateur_2150 {

#moulinette {
max-width: 650px;

@media (width < 20em) {
#map-container {
&::before {
// switch from ratio 16x9 to ratio 4x3 when width < 320px/20em
padding-bottom: 75%;
}
}
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion envergo/templates/amenagement/moulinette/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
l'emplacement du projet.
</label>
<figure class="fr-content-media">
<div id="map-container" class="ratio-4x3 fr-mt-1w fr-mb-2w fr-raw-link">
<div id="map-container" class="ratio-16x9 fr-mt-1w fr-mb-2w fr-raw-link">
<div class="ratio-content">
<div class="leaflet-container">
<div id="map"></div>
Expand Down

0 comments on commit a9bf471

Please sign in to comment.