optimize page preload layout

This commit is contained in:
Xen 2020-07-04 08:25:43 +08:00
parent 254bdc8796
commit b6d943ec2c
1 changed files with 6 additions and 1 deletions

View File

@ -2,6 +2,7 @@
@import url("../node_modules/materialize-css/dist/css/materialize.css");
:root {
--nav-height: 24px;
--menu-height: 200px;
--bar-height: 53px;
--trans-btn-height: 20px;
@ -38,7 +39,7 @@ body {
nav {
/* -webkit-app-region: drag; */
background-color: #fafafa;
height: 24px;
height: var(--nav-height);
line-height: 24px;
}
@ -197,6 +198,10 @@ input {
visibility: hidden;
}
#editor-area {
height: calc(100% - var(--nav-height) - var(--bar-height));
}
#menu-area {
height: var(--menu-height);
width: calc(100%);