$(document).ready(function () {
var auth_token = $("meta[name=csrf-token]").attr("content");
$("form input[name=authenticity_token]").val(auth_token);
+
+ $("#menu-icon").on("click", function() {
+ $("header").toggleClass("closed");
+ });
});
map.getCenter().lng.toFixed(precision)));
});
- $("#menu-icon").on("click", function() {
- $("header").toggleClass("closed");
- });
});
#menu-icon {
display: none;
- float: right;
+ float: right;
+ background: url("/assets/menu-icon.png") no-repeat;
+ background-size: 30px 30px;
+ display: block;
+ width: 30px;
+ height: 30px;
+ margin: 14px 10px 0 0;
+ opacity: 0.6;
}
header {
header {
min-height: 54px;
- height: 100%;
+ height: auto;
background: #fff;
+ border-bottom: 1px solid #ddd;
clear: both;
- h1 { padding-bottom: 17px; }
+ position: fixed;
+ width: 100%;
+ top: 0;
+ h1 { padding-bottom: 15px; }
&.closed {
nav.primary,
nav.secondary {
display: block;
width: 100%;
margin-left: 0;
+ > li {
+ width: 49%;
+ > a {
+ width: 100%;
+ text-align: center;
+ }
+ }
}
}
+#content { margin-top: 58px; }
+
.map-layout {
#sidebar {
- width: 60%;
+ width: 100%;
+ position: fixed;
+ top: 58px;
+ height: 360px;
+ overflow-x: hidden;
+ z-index: 1;
+ background: #fff;
+ p.large-text {
+ font-size: 1.4em;
+ line-height: 1.5em;
+ }
+ &.minimized {
+ background: none;
+ }
}
#content {
- position: static;
+ position: fixed;
+ top: 0;
display: block;
- height: 600px;
+ height: 100%;
+ margin-top: 0;
+ padding-top: 58px;
+ }
+ #map {
+ width: 100%;
+ // height: 100%;
+ // position: fixed;
}
}
+.leaflet-top.leaflet-right {
+ top: 10px !important;
+ z-index: 0;
+}
+
.content_map {
width: 100%;
border: none;
display: none;
}
}
+
+.site-about #content .attr h1 {
+ font-size: 28px;
+}
-<h2><%= t('site.sidebar.search_results') %></h2>
+<h2>
+ <%= t('site.sidebar.search_results') %>
+ <span class="icon close"></span>
+</h2>
<% @sources.each do |source| %>
<h4 class="inner12"><%= raw(t "geocoder.search.title.#{source}") %></h4>
<div class="search_results_entry" data-href="<%= url_for params.merge(:action => "search_#{source}") %>">
-<header>
+<header class="closed">
<h1>
<a href="<%= root_path %>" class="geolink layers">
<%= image_tag "osm_logo.png", :alt => t('layouts.logo.alt_text'), :class => 'logo' %>
<%= t 'layouts.project_name.h1' %>
</a>
</h1>
- <a href="#" id="menu-icon">menu</a>
+ <a href="#" id="menu-icon"></a>
<nav class='primary'>
<ul>
<li id="view_tab" class="<%= current_page_class(root_path) %>">
</ul>
</li><li id="history_tab" class="<%= current_page_class(history_path) %>">
<%= link_to t('layouts.history'), history_path, :class => 'tab geolink' %>
- </li><li id="export_tab" class="<%= current_page_class(export_path) %>">
+ </li><li id="export_tab" class="mobile-hide <%= current_page_class(export_path) %>">
<%= link_to t('layouts.export'), export_path, :class => 'tab geolink' %>
</li>
</ul>