community-themes icon indicating copy to clipboard operation
community-themes copied to clipboard

Blue Note Stripes Pattern - Full Width Featured Image

Open dweuste opened this issue 1 year ago • 4 comments

I am working on a site with the Blue Note theme as a base (with a child theme) because of the thin stripe pattern. But when I add a featured image block in the block editor, or often when adding an image block that is full width I can't get the Image Styling/mask to go the full width of the screen, it cuts off arbitrarily early (around 1350 px).

dweuste avatar May 12 '24 22:05 dweuste

Hi! @dweuste I wasn't able to reproduce what you described, but I'm likely missing something.

Here's what I did:

  1. Modified the default Page Template to include the Featured Image Block
  2. Applied a duotone filter to the Featured Image Block
  3. Set the Featured Image Block alignment to Full Width
  4. Opened a new page and added a large Featured Image

Here's the result:

CleanShot 2024-05-17 at 10 44 50@2x

As you can see, the image fits the whole screen and the duotone is applied to the whole image.

Can you share more information about the behavior you're seeing on your site and instructions on how to reproduce it? Thanks!

liviopv avatar May 17 '24 09:05 liviopv

Duotone isn't the issue. The issue is the Blue Note theme's Stripe clip-path. The clip path cuts off at 1350 pixels, which leaves a white space on the right of a full width image. And there isn't a way I can see to extend the path.

Screenshot: Screen Shot 2024-05-17 at 6 28 28 AM

dweuste avatar May 17 '24 11:05 dweuste

Duotone isn't the issue. The issue is the Blue Note theme's Stripe clip-path. The clip path cuts off at 1350 pixels, which leaves a white space on the right of a full width image. And there isn't a way I can see to extend the path.

It's been a while and I think the problem is that the design of the clip path has a specific size that wouldn't work on full width. You may want to adapt the CSS or even the SVG to your use case in your child theme and register the block pattern again with your changes. Or even better, implement a full width specific version because I think fixing the existing pattern for full width will break it for content/wide width

MaggieCabrera avatar May 17 '24 12:05 MaggieCabrera

There's no guide to how to adapt that clip path CSS anywhere is there? (No SVG is used for this mask that I can see)

dweuste avatar May 17 '24 13:05 dweuste

Excuse the uber late response. These svgs are in the CSS file:

https://github.com/WordPress/community-themes/blob/c015c9bf2120eb19a10567d3590cd23b3cd48b8f/blue-note/style.css#L57

MaggieCabrera avatar Nov 09 '24 15:11 MaggieCabrera