From f9d91963d4d07c4825a32af6e216dbea42b80ab1 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sun, 9 Aug 2015 14:04:08 +0100 Subject: Put the slicknav menu in a div Instead of the body. --- web/public/css/taginfo.css | 4 ++++ web/public/js/taginfo.js | 2 +- web/views/layout.erb | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/web/public/css/taginfo.css b/web/public/css/taginfo.css index 5f07a0d..1d39598 100644 --- a/web/public/css/taginfo.css +++ b/web/public/css/taginfo.css @@ -200,6 +200,10 @@ div#header div#header_forms form { padding-left: 22px; } +div#menu-div { + clear: both; +} + select#locale, select#lang { font-size: 90%; background-color: #ffffff; diff --git a/web/public/js/taginfo.js b/web/public/js/taginfo.js index 67e1941..a99c5c1 100644 --- a/web/public/js/taginfo.js +++ b/web/public/js/taginfo.js @@ -885,7 +885,7 @@ jQuery(document).ready(function() { return jQuery('input#search').val() != ''; }); - jQuery('#menu').slicknav({ prependTo: 'body' }); + jQuery('#menu').slicknav({ prependTo: '#menu-div' }); jQuery(window).resize(function() { resize_box(); diff --git a/web/views/layout.erb b/web/views/layout.erb index 6e920f8..72f2503 100644 --- a/web/views/layout.erb +++ b/web/views/layout.erb @@ -44,6 +44,7 @@ <% unless @nosearch %> + <% end %>
<%= yield %> -- cgit v1.2.3