[mobile] for bug 58703

This commit is contained in:
Maxim Kadushkin 2022-11-14 14:51:56 +03:00
parent e0e90225fc
commit efbd7dd79f
5 changed files with 28 additions and 1 deletions

View file

@ -116,3 +116,27 @@ body.theme-type-dark {
50% { opacity:1; }
100% { opacity:0.1; }
}
.navbar.navbar-with-logo {
height: 34px;
}
:root .theme-type-dark {
--f7-navbar-bg-color: #232323;
--f7-subnavbar-bg-color: #232323;
}
.md .word-editor {
--f7-navbar-bg-color: var(--background-navbar-word, #446995);
--f7-subnavbar-bg-color: var(--background-navbar-word, #446995);
}
.md .cell-editor {
--f7-navbar-bg-color: var(--background-navbar-word, #40865c);
--f7-subnavbar-bg-color: var(--background-navbar-word, #40865c);
}
.md .slide-editor {
--f7-navbar-bg-color: var(--background-navbar-word, #aa5252);
--f7-subnavbar-bg-color: var(--background-navbar-word, #aa5252);
}

View file

@ -22,4 +22,4 @@ if ( !obj ) {
localStorage && localStorage.setItem("mobile-ui-theme", JSON.stringify(obj));
}
document.body.classList.add(`theme-type-${obj.type}`);
document.body.classList.add(`theme-type-${obj.type}`, `${window.editor}-editor`);

View file

@ -25,6 +25,7 @@
<body>
<% if ( htmlWebpackPlugin.options.skeleton.htmlscript ) { %>
<script>
window.editor = 'word';
<%= htmlWebpackPlugin.options.skeleton.htmlscript %>
</script>
<% } %>

View file

@ -26,6 +26,7 @@
<body>
<% if ( htmlWebpackPlugin.options.skeleton.htmlscript ) { %>
<script>
window.editor = 'slide';
<%= htmlWebpackPlugin.options.skeleton.htmlscript %>
</script>
<% } %>

View file

@ -26,6 +26,7 @@
<body>
<% if ( htmlWebpackPlugin.options.skeleton.htmlscript ) { %>
<script>
window.editor = 'cell';
<%= htmlWebpackPlugin.options.skeleton.htmlscript %>
</script>
<% } %>