Make the map fill the available space on smaller screens, and
style the search results sidebar a bit better when ?query= is
added to the URL to trigger the search.
/* Rules for OpenLayers maps */
+#map {
+ border: 0;
+}
+
.olControlPanZoomBar {
display: none;
}
margin-right: 0px;
}
+#content.site_index {
+ left: 0px;
+ right: 0px;
+ top: 38px;
+ bottom: 0px;
+ padding-bottom: 0px;
+}
+
+/* Rules for search sidebar when shown */
+
+#sidebar {
+ border: 0px;
+ border-right: 1px solid #ccccdd;
+}
+
+.sidebar_title, #sidebar_content {
+ font-size: 10px !important;
+}
+
+p.search_results_entry {
+ padding: 2px 0px;
+}
+
/* Rules for the signup form */
#signupForm input[type="text"], #signupForm input[type="password"] {
function resizeMap() {
var sidebar_width = 0 + $("#sidebar:visible").width();
- if (sidebar_width > 0) {
+ if (sidebar_width > 0 && window.width > 641) {
sidebar_width = sidebar_width + 5
}
$("#map").css("right", (sidebar_width) + "px");
<% end -%>
$("#map").width($("#content").width() - sidebar_width);
- $("#map").height($("#content").height() - 2);
+ if (window.width > 641) {
+ $("#map").height($("#content").height() - 2);
+ }
}
function handleResize() {