Allow themes in mobile mode

Cleanup themes and drop the template.less
This commit is contained in:
djmaze 2021-02-06 23:37:53 +01:00
parent 4f1fc5f44b
commit 48424e213b
34 changed files with 722 additions and 741 deletions

View file

@ -4,7 +4,6 @@
const
doc = document,
eId = id => doc.getElementById(id),
htmlCL = doc.documentElement.classList,
app = eId('rl-app'),
options = app && app.dataset.boot && JSON.parse(app.dataset.boot) || {},
@ -171,8 +170,6 @@ Storage('local');
// init section
setInterval(setTimestamp, 60000); // 1m
htmlCL.add(options.mobileDevice ? 'mobile' : 'no-mobile');
[eId('app-css'),eId('app-theme-link')].forEach(css => css.href = css.dataset.href);
loadScript('./?/'