-
Notifications
You must be signed in to change notification settings - Fork 117
Try: Adding "Portfolio List" block pattern + modifying "wide" separator style #299
Conversation
Man, we are kind of striking out with these patterns. The separators + the link underlines make this feel really busy. What if the top and bottom separators were 3px, but the in-between ones were 1px instead? It's not perfect, but it helps. Hopefully we'll be able to do try wide-width separators soon as well, because I think that would also help. Since we can't use inline images, it might also help to float the images all the way to the right, and then cap all their heights at 67px: Since they have different aspect ratios, this makes for a nice ragged edge. |
Can we wrap in a group block with a custom class, and tweak the mobile positioning? |
We can, but I'm not sure that we should. Using custom classnames in these seems like a hack to me. For simplicity's sake, I consider patterns to be something that the user should be able to just create themselves without having to open the "Advanced" panel and type in a custom classname. I could be being too conservative about them though. |
I pushed an update to take care of this. In order to make that happen, I made the default separator 100% wide and 1px tall. That's more or less in line with the comps here anyway.
Mobile issues aside, I tried this too. But it highlighted a couple other issues.
|
I got the right alignment + rag sorted out. I had to explicitly set both the width and height of each image. |
Do we want to merge this and make a new issue to handle the responsive styles? |
Good with me, let's just keep an eye on WordPress/gutenberg#25147 and maybe revisit 👍 |
Would address part of #50.
This is a first pass at achieving the "Portfolio List" block pattern, using just what's available today in Gutenberg.
A few caveats:
Screenshots
Editor