Make padding-bottom consistent for pages with EmailSignup component #247
Merged
j285he
merged 8 commits from jared-fix-padding-bottom-101
into main
2 years ago
Loading…
Reference in new issue
There is no content yet.
Delete Branch 'jared-fix-padding-bottom-101'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Closes #101.
Might it be worth looking into a uniform padding-bottom added to global styles?
edit: or margin-bottom, if that is what is preferred
Looks good to me! Just a couple of suggestions/notes:
My thought process was that padding is a part of an object, whereas margin is used to separate 2 different object. Since to me the space at the bottom felt like an integral part of
.page
, I used padding. For example, if we were to add a border to.page
(it would be very ugly if we did), then I think it makes sense that there is space between the border and content at the bottom.I could be way off the mark though, let me know what you guys think!
looks good to me! Just need to pull from main 👍
I think arguments can be made on both sides (margin vs padding).
The main technical difference is that margins are collapsible - https://medium.com/@joseph0crick/margin-collapse-in-css-what-why-and-how-328c10e37ca0
I prefer margin over padding for that reason, but I'll leave the decision up to you @j285he
The PR LGTM overall, so feel free to merge.
423f97f37b
into main 2 years ago.page {
margin: calc(50rem / 16) 0;
margin: calc(60rem / 16) 0;
This is changing the margins on the side as well, which make the page super narrow.
@media only screen and (max-width: calc(768rem / 16)) {
.page {
margin: calc(30rem / 16);
Continuing from Adi's comment: this should be
margin: calc(30rem / 16) 0
so we don't change the side margins.Reviewers
423f97f37b
.