Set map height in CSS; smaller for phones.

In future we should consider making classes for different sizes of maps.
This commit is contained in:
Miles Gould
2013-09-05 12:25:45 +01:00
parent 3beb2e27f2
commit 67ed1e2170
2 changed files with 9 additions and 1 deletions

View File

@@ -147,6 +147,10 @@ p.stats {
margin-left: 0px;
}
#map {
height: 500px;
}
// Overrides applying only to mobile view
@media only screen and (max-width: 767px) {
@@ -155,4 +159,8 @@ p.stats {
border-left: none;
padding-left: 0;
}
#map {
height: 300px;
}
}

View File

@@ -1,6 +1,6 @@
-content_for :title, "Places"
%div#map{ :style => "height:500px"}
%div#map
<script src="/assets/leaflet.js?body=1" type="text/javascript"></script>