feat: refactor and adjust ui

This commit is contained in:
GyDi
2022-01-16 03:11:07 +08:00
parent 8dbf870122
commit fb0bb6e7f3
14 changed files with 264 additions and 191 deletions

View File

@@ -28,3 +28,4 @@ body {
}
@import "./layout.scss";
@import "./page.scss";

View File

@@ -27,6 +27,10 @@
text-align: center;
box-sizing: border-box;
img {
width: 100%;
}
.the-newbtn {
position: absolute;
right: 20px;
@@ -54,27 +58,24 @@
position: relative;
flex: 1 1 75%;
height: 100%;
display: flex;
flex-direction: column;
padding: 2px 0;
box-sizing: border-box;
.the-bar {
flex: 0 0 30px;
width: 100%;
height: 30px;
padding: 0 16px;
position: absolute;
top: 2px;
right: 8px;
height: 36px;
display: flex;
align-items: center;
justify-content: flex-end;
box-sizing: border-box;
z-index: 2;
}
.the-content {
flex: 1 1 100%;
overflow: auto;
box-sizing: border-box;
scrollbar-gutter: stable;
position: absolute;
left: 0;
right: 0;
top: 30px;
bottom: 10px;
}
}
}

View File

@@ -0,0 +1,33 @@
.base-page {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
> header {
flex: 0 0 58px;
width: 90%;
max-width: 850px;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
}
> section {
position: relative;
flex: 1 1 100%;
width: 100%;
height: 100%;
overflow: auto;
padding: 8px 0;
box-sizing: border-box;
scrollbar-gutter: stable;
.base-content {
width: 90%;
max-width: 850px;
margin: 0 auto;
}
}
}