[SSE modile] refactoring

This commit is contained in:
Maxim Kadushkin 2021-09-28 11:09:07 +03:00
parent 83654a29d6
commit 24024fac8f
3 changed files with 9 additions and 7 deletions

View file

@ -23,7 +23,11 @@ body {
}
.skl-navbar.skl-navbar--md {
height: calc(56px + 26px);
/*height: calc(56px + 26px);*/
}
.skl-navbar.skl-navbar--ios {
background-color: #f7f7f8;
}
.skl-navbar.skl-navbar--word:not(.skl-navbar--ios) {

View file

@ -23,10 +23,10 @@
<link rel="apple-touch-icon" href="static/icons/apple-touch-icon.png">
<link rel="icon" href="static/icons/favicon.png">
<% if (!htmlWebpackPlugin.options.skeleton.content) { %>
<% if (!htmlWebpackPlugin.options.skeleton.stylesheet) { %>
<link rel="stylesheet" href="../../common/mobile/resources/css/skeleton.css">
<% } else { %>
<style><%= htmlWebpackPlugin.options.skeleton.content %></style>
<style><%= htmlWebpackPlugin.options.skeleton.stylesheet %></style>
<% } %>
<!-- built styles file will be auto injected -->
@ -41,9 +41,7 @@
// Framework7 doesn't set Device.android flag when navigator.platform == 'Win32', change it for debug
navigator.__defineGetter__('platform', () => 'Win32Debug');
const element_add_class = (el, cls) => {
el && el.classList.add(cls)
}
const element_add_class = (el, cls) => (el && el.classList.add(cls));
let navbar = document.querySelector('.skl-navbar');
if ( window.devicePixelRatio ) {

View file

@ -205,7 +205,7 @@ module.exports = {
useShortDoctype: true
} : false,
skeleton: {
content: env === 'development' ? undefined : fs.readFileSync(`../../apps/common/mobile/resources/css/skeleton.css`),
stylesheet: env === 'development' ? undefined : fs.readFileSync(`../../apps/common/mobile/resources/css/skeleton.css`),
},
}),
new CopyWebpackPlugin({