Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct margins for heading actions #12797

Merged
merged 1 commit into from
Jan 12, 2020
Merged

Correct margins for heading actions #12797

merged 1 commit into from
Jan 12, 2020

Conversation

brawaru
Copy link
Contributor

@brawaru brawaru commented Jan 7, 2020

This pull request changes margins of the page heading header, actions in order to fix displaying with low screen size and long enough header.

Demo screenshot

… What language is that?

It is working by giving heading and action buttons margin from top and then negating it in parent element. Whenever flex item wrap, the "negated" margin will be applied again, providing us nice space between header and action buttons.

This pull request also adds a margin to header, so it does not clamp with the heading actions and they wrap a little earlier (15px ahead). As well as the left margin is not anymore applied to the first action.

This commit changes margins of the page heading header, actions in
order to fix displaying with low screen size and long enough header.

It is working by giving heading and action buttons margin from top
and then negating it in parent element. Whenever flex item wrap, the
"negated" margin will be applied again, providing us nice space
between header and action buttons.

This commit also adds a margin to header, so it does not clamp with
the heading actions and they wrap a little earlier (15px ahead). As
well as the left margin is not anymore applied to the first action.
@brawaru
Copy link
Contributor Author

brawaru commented Jan 8, 2020

It is working by giving heading and action buttons margin from top and then negating it in parent element. the "negated" margin will be applied again

CSS

Shrugging man picture

@Gargron Gargron merged commit 5dcca33 into mastodon:master Jan 12, 2020
@brawaru brawaru deleted the fix/heading-actions-margins branch April 2, 2020 22:18
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.

2 participants