Skip to content

Commit

Permalink
feat: move related content to bottom of content when on smaller screens
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Jul 30, 2020
1 parent 44659b7 commit c76eca1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/components/PageLayout/PageLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ const LAYOUTS = {
@media (max-width: 1240px) {
grid-template-areas:
'page-header'
'content';
'content'
'related-content';
grid-template-columns: minmax(0, 1fr);
}
`,
Expand Down
4 changes: 0 additions & 4 deletions src/components/PageLayout/RelatedContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ const RelatedContent = ({ page }) => {
position: sticky;
top: calc(var(--global-header-height) + 2rem);
align-self: start;
@media (max-width: 1240px) {
display: none;
}
`}
>
<h4>Contribute</h4>
Expand Down

0 comments on commit c76eca1

Please sign in to comment.