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

How can you center the logos in a multi-brand environment? #147

dominikwilkowski opened this Issue Nov 2, 2015 · 0 comments


None yet
1 participant
Copy link

dominikwilkowski commented Nov 2, 2015

The logos are all on the same size canvas to enable us to quickly switch the brand and not having to worry about the size of the different logos in each brand. This of course only works when you have your logo left aligned.

In case your design requires you to center your logo you will have to account for the different sizes and that could be a bit frustrating to get your head around. That's why we made a test page that helps you getting started:

Check out this CodePen

This is why LESS and any preprocessor is great. You can add some smarts to your CSS.
Here we have a env-var on the top of our LESS to represent the brand. We then check on that variable and adjust the size of the logo in the centered div.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment