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

REFACTOR: Convert buttons to flexbox #11785

Merged
merged 6 commits into from Jan 27, 2021

Conversation

awesomerobot
Copy link
Member

This converts all our buttons to flexbox, which generally makes them easier to style and align.

It also converts button padding to ems so they scale proportionately with font size changes, and also adds a little additional vertical padding (part of a longer-term effort to use a consistent margin/padding scale).

There are some font-related alignment issues with these buttons in Firefox. Firefox renders fonts differently than Chrome/Safari, so Helvetica sits higher. In a future commit I'll switch to Arial by default, which is consistent across browsers.

Before:
Screen Shot 2021-01-20 at 10 42 44 PM

After:
Screen Shot 2021-01-20 at 10 59 52 PM

@awesomerobot awesomerobot added the 👍 OP to merge PR author can go ahead and merge! label Jan 21, 2021
@awesomerobot awesomerobot merged commit f1d5d2b into discourse:master Jan 27, 2021
@awesomerobot awesomerobot deleted the flex-buttons branch January 27, 2021 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👍 OP to merge PR author can go ahead and merge!
2 participants