Skip to content

Commit

Permalink
chore: Use css vars for header height
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Jun 19, 2020
1 parent f6c463d commit cebe70f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/Layout.module.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.layout {
--global-header-height: 30px;

min-height: 100vh;
display: grid;
grid-template-rows: auto 1fr;
Expand All @@ -22,10 +24,10 @@

.sidebar {
position: fixed;
top: 30px;
top: var(--global-header-height);
bottom: 0;
width: 300px;
height: calc(100vh - 30px);
height: calc(100vh - var(--global-header-height));
overflow: auto;
}

Expand Down

0 comments on commit cebe70f

Please sign in to comment.