Skip to content

Commit

Permalink
fix: ensure two column layout only applies to wide viewports on podca…
Browse files Browse the repository at this point in the history
…st page. limit size of podcast logo to avoid very large logo size on wider viewports
  • Loading branch information
tyreer authored and Robert Tyree committed Aug 9, 2020
1 parent 6614381 commit 6c28f6d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/podcasts.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const PodcastsPage = () => {
<PageLayout.Header title="New Relic Podcasts" />
<PageLayout.Content>
<section className={cx(styles.section, styles.twoColumn)}>
<div>
<div className={styles.bodyText}>
<p>
Sometimes we talk on the internet about some things. You
probably listen to some things on the internet sometimes. We're
Expand Down
18 changes: 17 additions & 1 deletion src/pages/podcasts.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,28 @@

.twoColumn {
display: grid;
grid-template-columns: repeat(2, calc(50% - 1rem));
grid-gap: 2rem;
grid-template-columns: repeat(2, calc(50% - 1rem));

@media (max-width: 760px) {
grid-template-columns: 1fr
}
}

.bodyText {
@media (max-width: 760px) {
order: 1;
}
}

.img {
width: 100%;
max-width: 350px;
margin: 0 auto;

@media (max-width: 760px) {
order: 0;
}
}

.player iframe {
Expand Down

0 comments on commit 6c28f6d

Please sign in to comment.