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

Gutenberg Columns Possible Fix #13252

Closed
cboy343 opened this issue Jan 9, 2019 · 2 comments
Closed

Gutenberg Columns Possible Fix #13252

cboy343 opened this issue Jan 9, 2019 · 2 comments
Labels
[Block] Columns Affects the Columns Block [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed

Comments

@cboy343
Copy link

cboy343 commented Jan 9, 2019

Hello, I've been working with Gutenberg for a client on their website. While working with the built in columns feature, I've noticed that the columns have strange margins once the window is resized to a width of 781px. The first column looks fine, but the second column juts out from the left by 32px, which looks odd. Once the window is resized to 600px, the columns use display:block and so look normal. This is what I've done to make the columns look more natural when resized.
@media (min-width: 600px){ .wp-block-column { flex-basis: 100% !important; } .wp-block-column:nth-child(even) { margin-left: 0px !important; } .wp-block-column:not(:first-child) { margin-left: 0px !important; } .wp-block-column:not(:last-child) { margin-right: 0px !important; } } @media (min-width: 782px){ .wp-block-column { flex-basis: 100% !important; } .wp-block-column:nth-child(even) { margin-left: 32px !important; } .wp-block-column:not(:first-child) { margin-left: 32px !important; } .wp-block-column:not(:last-child) { margin-right: 32px !important; } }
Please review the CSS and let me know what you think.

Thanks.

@youknowriad
Copy link
Contributor

I think this is meant to be fixed by #12816

@youknowriad
Copy link
Contributor

I'm closing this as a duplicate of #13035

@designsimply designsimply added [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed [Block] Columns Affects the Columns Block labels Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Columns Affects the Columns Block [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed
Projects
None yet
Development

No branches or pull requests

3 participants