Skip to content

Commit

Permalink
chore: move spacing to section instead of around the whole right rail…
Browse files Browse the repository at this point in the history
… area
  • Loading branch information
jerelmiller committed Aug 14, 2020
1 parent a44c31f commit 3ccbb97
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/components/PageLayout/RelatedContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const RelatedContent = ({ page, modules }) => {
position: sticky;
top: calc(var(--global-header-height) + 2rem);
align-self: start;
padding: 1rem;
border: 1px solid var(--divider-color);
border-radius: 0.25rem;
`}
Expand Down
1 change: 1 addition & 0 deletions src/components/RelatedContentModules/Contribute.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ const Contribute = ({ pageContext }) => {
<p
css={css`
margin-top: 0.5rem;
margin-bottom: 0;
font-size: 0.8rem;
display: block;
`}
Expand Down
5 changes: 4 additions & 1 deletion src/components/RelatedContentModules/Resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,11 @@ const Resources = ({ page }) => {
<li
key={resource.url}
css={css`
margin-bottom: 1rem;
font-size: 0.875rem;
&:not(:last-child) {
margin-bottom: 1rem;
}
`}
>
<LinkElement
Expand Down
7 changes: 5 additions & 2 deletions src/components/RelatedContentModules/Section.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import styled from '@emotion/styled';

const Section = styled.section`
&:not(:last-child) {
margin-bottom: 2rem;
padding: 1rem;
&:first-child {
border-top-left-radius: 0.25rem;
border-top-right-radius: 0.25rem;
}
`;

Expand Down

0 comments on commit 3ccbb97

Please sign in to comment.