add scrollable sidebar

This commit is contained in:
Philipp Kühn
2020-04-22 21:23:24 +02:00
parent 7e0c0b7a28
commit d8f041bc9c
4 changed files with 41 additions and 16 deletions

View File

@@ -51,26 +51,44 @@
}
&__header {
align-self: center;
position: fixed;
z-index: 2;
width: 100%;
top: 0;
flex: 0 0 auto;
align-items: center;
justify-content: space-between;
padding-top: 2rem;
padding-bottom: 2rem;
background-color: rgba($colorBackground, 0.8);
backdrop-filter: blur(10px);
}
&__content {
flex: 1 1 auto;
}
&__sidebar {
&__sidebar-wrapper {
flex: 0 0 auto;
align-self: flex-start;
position: sticky;
top: 0;
width: 18rem;
height: 100vh;
padding-right: 3rem;
padding-top: 100px;
}
&__sidebar {
overflow: auto;
height: 100%;
}
&__main {
flex: 1 1 auto;
min-width: 0;
padding-top: 100px;
}
&__inner {