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 committed 2013-09-05 12:25:45 +01:00
1 parent 3beb2e27f2
commit 67ed1e2170
2 files changed
+9 -1

No files matched your search

@@ -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;
}
}
+1 -1
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>