-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Paragraph: Add CSS columns #27118
Comments
This can already be accomplished in themes using block-styles. |
This feels like something that lots of themes might want to implement, so I'd rather not move it to the theme as we'll need to write the same implementation in many themes. I also think it's something that users will want to customize which is why I'd rather see it as an option in the block. |
Related: #25459 |
That's true, but I could see the benefit to having additional controls beyond that: a way to adjust the number of columns, and a checkbox for whether or not the columns should disappear on mobile. Those options aren't really suited well to a block style. |
Did we not use to have a p.is-style-columns {
column-gap: 2em;
column-width: 15em;
column-rule: 1px solid rgba(0,0,0,.1);
} It's responsive, works for all content and viewports and it's pretty simple to implement. |
Can we apply a block style to all blocks using theme.json? |
I don't think so... but having a |
It would help readability of paragraphs on wide screens if the text were to go to more than one column. This can be achieve using the css
columns
property. It would look like this:I think this could be enabled/disabled with a toggle. On wider screens the number of columns would increase, and on mobile we wouldn't have any.
The text was updated successfully, but these errors were encountered: