This repository has been archived by the owner on Jun 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from nwhacks/web/navbar-hide
Hide navbar based on scroll
- Loading branch information
Showing
20 changed files
with
281 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import React from 'react'; | ||
|
||
const Main = () => (<div>HOME PAGE</div>); | ||
const Main = () => (<div className="pad-nav">HOME PAGE</div>); | ||
|
||
export default Main; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
div#demo | ||
width: 50% | ||
margin-left: 25% | ||
height: 90000000px |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,21 @@ | ||
nav | ||
display: flex | ||
z-index: 500 | ||
background: $white | ||
box-shadow: 0px 4px 6px $shadow | ||
height: 64px | ||
position: fixed | ||
width: 100% | ||
transition: background $transition-time-long, shadow $transition-time-long, opacity $transition-time | ||
|
||
> div | ||
display: inline-flex | ||
> div:last-of-type | ||
width: 80% | ||
justify-content: flex-end | ||
> div:first-of-type | ||
width: 20% | ||
justify-content: flex-start | ||
> div > div | ||
display: flex | ||
margin-top: 12px | ||
margin-bottom: 12px | ||
align-items: center | ||
margin-right: 7.5% | ||
> div > div:first-of-type | ||
margin-left: 24px | ||
> div > div:last-of-type | ||
margin-right: 24px | ||
a | ||
display: flex | ||
align-items: center | ||
text-decoration: none | ||
font-family: Apercu Pro | ||
font-size: 18px | ||
color: $primary | ||
a:visited | ||
color: $primary | ||
|
||
a:hover | ||
color: #00D5D5 | ||
img | ||
margin-top: 4px | ||
width: 32px | ||
|
||
.below-nav | ||
padding-top: 64px | ||
&.transparent | ||
background: transparent | ||
|
||
&.hide | ||
opacity: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.