Skip to content

Commit

Permalink
feat: hide the related content on a mobile layout
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Jul 30, 2020
1 parent b92b2e5 commit f0d65d1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/templates/GuideTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ const GuideTemplate = ({ data }) => {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
grid-gap: 2rem;
@media (max-width: 1240px) {
grid-template-columns: minmax(0, 1fr);
grid-gap: 0;
}
`}
>
<MDXContainer>{body}</MDXContainer>
Expand All @@ -65,6 +70,10 @@ const GuideTemplate = ({ data }) => {
position: sticky;
top: calc(var(--global-header-height) + 2rem);
align-self: start;
@media (max-width: 1240px) {
display: none;
}
`}
/>
</div>
Expand Down

0 comments on commit f0d65d1

Please sign in to comment.