Skip to content

Commit

Permalink
Merge pull request #1733 from ethereum/navbar-top
Browse files Browse the repository at this point in the history
Increase top to account for Nav
  • Loading branch information
ryancreatescopy committed Nov 3, 2020
2 parents c5f84b8 + de019b6 commit 361f59b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/SideNav.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const IconContainer = styled(motion.div)`

const Nav = styled.nav`
position: sticky;
top: 6.25rem; /* account for navbar */
top: 7.25rem; /* account for navbar */
padding: 2rem 0;
height: calc(100vh - 80px); /* TODO take footer into account for height? */
width: calc((100% - 1448px) / 2 + 298px);
Expand Down
2 changes: 1 addition & 1 deletion src/components/TableOfContents.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const customIdRegEx = /^.+(\s*\{#([A-Za-z0-9\-_]+?)\}\s*)$/

const Aside = styled.aside`
position: sticky;
top: 6.25rem; /* account for navbar */
top: 7.25rem; /* account for navbar */
padding: 1rem 0 1rem 1rem;
max-width: 25%;
min-width: 12rem;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/eth2/deposit-contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const AddressCard = styled.div`
}
@media (min-width: ${(props) => props.theme.breakpoints.l}) {
position: sticky;
top: 6.25rem; /* account for navbar */
top: 7.25rem; /* account for navbar */
}
`

Expand Down

0 comments on commit 361f59b

Please sign in to comment.