From 6c28e729e113d94db93f6f3bf9c8b69290b2b94f Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Thu, 4 Jan 2018 16:32:59 -0500 Subject: [PATCH] Only add padding to top of app if in mobile version --- app/www/static/css/index.css | 2 +- app/www/static/js/intval.mobile.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/www/static/css/index.css b/app/www/static/css/index.css index 931e032..f765575 100644 --- a/app/www/static/css/index.css +++ b/app/www/static/css/index.css @@ -36,7 +36,7 @@ html,body,button,h2,label,input{ font-family: 'Arial Neue', Helvetical, Arial, sans-serif; } -body{ +body.mobile{ padding-top: 35px; } .page{ diff --git a/app/www/static/js/intval.mobile.js b/app/www/static/js/intval.mobile.js index 4a98ff9..7315826 100644 --- a/app/www/static/js/intval.mobile.js +++ b/app/www/static/js/intval.mobile.js @@ -112,6 +112,7 @@ mobile.ble.onError = function (err) { mobile.init = function () { const bleInputs = document.querySelectorAll('.ble') + document.querySelector('body').classList.add('mobile') window.frame = mobile.frame; window.getState = mobile.getState;