Only add padding to top of app if in mobile version
This commit is contained in:
parent
34eefbd067
commit
6c28e729e1
|
@ -36,7 +36,7 @@ html,body,button,h2,label,input{
|
||||||
font-family: 'Arial Neue', Helvetical, Arial, sans-serif;
|
font-family: 'Arial Neue', Helvetical, Arial, sans-serif;
|
||||||
|
|
||||||
}
|
}
|
||||||
body{
|
body.mobile{
|
||||||
padding-top: 35px;
|
padding-top: 35px;
|
||||||
}
|
}
|
||||||
.page{
|
.page{
|
||||||
|
|
|
@ -112,6 +112,7 @@ mobile.ble.onError = function (err) {
|
||||||
|
|
||||||
mobile.init = function () {
|
mobile.init = function () {
|
||||||
const bleInputs = document.querySelectorAll('.ble')
|
const bleInputs = document.querySelectorAll('.ble')
|
||||||
|
document.querySelector('body').classList.add('mobile')
|
||||||
|
|
||||||
window.frame = mobile.frame;
|
window.frame = mobile.frame;
|
||||||
window.getState = mobile.getState;
|
window.getState = mobile.getState;
|
||||||
|
|
Loading…
Reference in New Issue