Skip to content

Conversation

mstriemer
Copy link
Contributor

I don't know why only half of the margin is required, but it is.

screenshot 2016-06-01 23 37 22

Before

screenshot 2016-06-01 23 43 20

After

Fixes mozilla/addons#9655.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 5b7cc86 on mstriemer:centre-in-about-addons-493 into 72e0efb on mozilla:master.

font-size: 14px;
// Firefox adds this margin to the left side, for some reason we only need to add half of it.
$firefox-margin: 48px;
margin-right: $firefox-margin / 2;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably because you're adding it to the body and html.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And this is why you don't make changes at midnight. Thanks.

@mstriemer
Copy link
Contributor Author

Just putting the margin on the body now.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling f9dc1d0 on mstriemer:centre-in-about-addons-493 into 72e0efb on mozilla:master.

@mstriemer mstriemer merged commit 6313f30 into mozilla:master Jun 2, 2016
@mstriemer mstriemer deleted the centre-in-about-addons-493 branch June 2, 2016 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Centre the page in about:addons
3 participants