Skip to content

Commit b1920fa

Browse files
committed
Fix margin bottom on some pages
1 parent 30bb529 commit b1920fa

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

src/amo/pages/Addon/styles.scss

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
@include page-padding;
55
}
66

7-
.Addon .Card {
8-
margin-bottom: $padding-page;
9-
}
10-
117
.Addon-icon-wrapper {
128
height: 48px;
139
overflow: hidden;
@@ -213,3 +209,8 @@
213209
.ContributeCard {
214210
margin: 32px auto;
215211
}
212+
213+
.AddonRecommendations {
214+
// This is the last card in the page, and it doesn't need a `margin-bottom`.
215+
margin-bottom: 0;
216+
}

src/amo/pages/LandingPage/styles.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
.LandingPage {
44
@include page-padding;
5+
6+
& > .LandingAddonsCard:last-child {
7+
// The last `.CardList` doesn't need a `margin-bottom`.
8+
margin-bottom: 0;
9+
}
510
}
611

712
.LandingPage-header {

0 commit comments

Comments
 (0)