Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase top to account for Nav #1733

Merged
merged 1 commit into from
Nov 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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