enhance(ui): polish left sidebar ui & transition

This commit is contained in:
charlie
2021-10-13 17:27:27 +08:00
committed by Tienson Qin
parent d16c7bee1f
commit 287b4e2118
5 changed files with 77 additions and 58 deletions

View File

@@ -5,6 +5,7 @@
padding-right: 0.5rem;
display: flex;
align-items: center;
justify-content: space-between;
flex: 0 0 auto;
position: sticky;
position: -webkit-sticky;
@@ -14,6 +15,12 @@
user-select: none;
line-height: 1;
> .l {
width: var(--ls-left-sidebar-width);
height: 100%;
align-items: center;
}
.it svg {
transform: scale(0.8);
}
@@ -72,9 +79,9 @@
}
.is-electron.is-mac .cp__header {
> .l {
padding-left: 78px;
transition: all 0.25s;
-webkit-transition: all 0.25s;
}
}
.cp__header .navigation svg {