From 65f1bdd1664656f35638da85d397e822c284867a Mon Sep 17 00:00:00 2001 From: Matthew Gerring Date: Sun, 3 Feb 2013 11:07:47 -0800 Subject: [PATCH] footsie --- public/css/style.less | 17 ++++++++++++++++- public/js/main.js | 8 ++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/public/css/style.less b/public/css/style.less index 6c493f3..0000c4f 100644 --- a/public/css/style.less +++ b/public/css/style.less @@ -84,11 +84,26 @@ footer { left:0; bottom:0; right:75%; - height:50px; + height:20px; background:white; } } +body.footer-up { + #map { + bottom:121px; + } + footer { + .drawer { + bottom:120px; + } + .inner { + bottom:0; + height:120px; + } + } +} + .leaflet-bottom.leaflet-right { left:30%; } diff --git a/public/js/main.js b/public/js/main.js index 993b4e7..3f44541 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -8,4 +8,12 @@ var map, e.preventDefault(); $('#splash').hide(); }); + $('footer .drawer').toggle( + function(){ + $('body').addClass('footer-up'); + }, + function(){ + $('body').removeClass('footer-up') + } + ); })($); \ No newline at end of file