Skip to content

Commit 53d40d8

Browse files
authored
Fix margin bottom on some pages (#13844)
1 parent af1999d commit 53d40d8

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

src/amo/pages/Addon/styles.scss

Lines changed: 6 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: 40px;
139
overflow: hidden;
@@ -231,3 +227,9 @@
231227
.ContributeCard {
232228
margin: 32px auto;
233229
}
230+
231+
.AddonRecommendations {
232+
// This is the last card in the page, and it doesn't need a `margin-bottom`,
233+
// which `.CardList` adds by default.
234+
margin-bottom: 0;
235+
}

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)