Skip to content

Commit

Permalink
Merge pull request #323 from newrelic/jerel/guide-tiles-tweaks
Browse files Browse the repository at this point in the history
Smaller rows for guide tiles by default
  • Loading branch information
jerelmiller authored Jun 29, 2020
2 parents 5b4a339 + 123b15b commit 0800828
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/GuideListing/GuideListing.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
display: grid;
grid-template-columns: repeat(3, minmax(260px, 1fr));
grid-gap: 1rem;
grid-auto-rows: minmax(calc(248px - 2rem), auto);
grid-auto-rows: minmax(var(--guide-list-row-height, 150px), auto);
align-items: stretch;
width: 100%;

Expand Down
4 changes: 4 additions & 0 deletions src/components/GuideTile/GuideTile.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@
margin-bottom: 1.5rem;
color: var(--color-neutrals-600);
flex: 1;

&:last-child {
margin-bottom: 0;
}
}

.button {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
}

.guideListing {
--guide-list-row-height: auto;
margin-top: 0;
}

Expand Down Expand Up @@ -99,5 +100,4 @@

.allGuidesListing {
margin-top: 1rem;
grid-auto-rows: minmax(180px, 180px);
}

0 comments on commit 0800828

Please sign in to comment.