feat(layout): add logo & update style

This commit is contained in:
GyDi
2021-12-11 20:35:02 +08:00
parent c413d93bb0
commit 0028bef559
6 changed files with 69 additions and 27 deletions

View File

@@ -6,17 +6,24 @@ body {
-webkit-font-smoothing: antialiased;
}
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
monospace;
:root {
--primary-main: #5b5c9d;
--text-primary: #637381;
--selection-color: #f5f5f5;
}
::selection {
color: var(--selection-color);
background-color: var(--primary-main);
}
*::-webkit-scrollbar {
width: 8px;
width: 6px;
height: 6px;
background: transparent;
}
*::-webkit-scrollbar-thumb {
border-radius: 8px;
border-radius: 6px;
background-color: rgba(#909399, 0.5);
}

View File

@@ -1,28 +1,42 @@
.layout {
width: 100%;
height: 100vh;
display: flex;
overflow: hidden;
&__sidebar {
position: relative;
height: 100%;
flex: 1 0 25%;
max-width: 250px;
height: 100vh;
max-width: 225px;
min-width: 125px;
overflow: hidden auto;
}
&__content {
position: relative;
flex: 1 1 75%;
height: 100%;
height: 100vh;
overflow: overlay;
box-sizing: border-box;
}
&__logo {
width: 100%;
height: auto;
max-width: 180px;
max-height: 180px;
margin: 0 auto;
padding: 8px 8px 0;
user-select: none;
text-align: center;
box-sizing: border-box;
overflow: hidden auto;
}
&__traffic {
position: absolute;
left: 0;
right: 0;
bottom: 18px;
bottom: 8px;
> div {
margin: 0 auto;