Skip to content

Commit

Permalink
fix: Change home nav position to sticky (#1078)
Browse files Browse the repository at this point in the history
  • Loading branch information
liiil825 authored and sunnywx committed Mar 29, 2019
1 parent f9f4d93 commit 61e8293
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/Home/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
margin-top: 40px;

&:first-child {
margin-top: 32px;
margin-top: 0;
}
}

.nav {
position: fixed;
position: sticky;
top: $header-height + $search-banner-height;
height: calc(100vh - #{$header-height} - #{$search-banner-height});
width: $home-nav-width;
Expand Down

0 comments on commit 61e8293

Please sign in to comment.