Skip to content

Commit

Permalink
feat: Fix margins on guide listing
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Jun 23, 2020
1 parent d2091e4 commit e0eb521
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
1 change: 0 additions & 1 deletion src/components/GuideListing/GuideListing.module.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.guideListing {
position: relative;
margin-top: 2rem;
}

.container {
Expand Down
10 changes: 4 additions & 6 deletions src/components/Section.module.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
.section {
--surface-background-color: var(--secondary-surface-background-color);

position: relative;
background-color: var(--secondary-background-color);

&.backgroundBanner {
margin: -2rem;
--surface-background-color: var(--secondary-surface-background-color);

background-color: var(--secondary-background-color);
margin: 0 -2rem;
padding: 2rem;
}
}
6 changes: 3 additions & 3 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const IndexPage = ({ pageContext }) => (
<SEO />
<PageTitle>Observability for every developer</PageTitle>

<section className={styles.intro}>
<section className={cx(styles.section, styles.intro)}>
<div className={cx(styles.introText, 'intro-text')}>
<p>
Welcome to the New Relic developer site! Here, you’ll find the tools
Expand All @@ -112,8 +112,8 @@ const IndexPage = ({ pageContext }) => (
/>
</section>

<Section backgroundBanner>
<GuideListing className={styles.guideListing}>
<Section className={styles.section} backgroundBanner>
<GuideListing>
<header className={styles.guideListingHeader}>
<GuideListing.Heading className={cx(styles.guideListingHeading)}>
Get started
Expand Down
6 changes: 4 additions & 2 deletions src/pages/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@
margin-bottom: 1rem;
}

.guideListing {
margin-top: 6rem;
.section {
&:not(:last-child) {
margin-bottom: 4rem;
}
}

.guideListingHeader {
Expand Down

0 comments on commit e0eb521

Please sign in to comment.