Skip to content
This repository has been archived by the owner on Feb 17, 2025. It is now read-only.

Skatepark: add mixed media in container pattern #4403

Merged
merged 4 commits into from
Aug 23, 2021

Conversation

jffng
Copy link
Contributor

@jffng jffng commented Aug 12, 2021

Changes proposed in this Pull Request:

Adds the Mixed Media in Container block pattern:

Screen Shot 2021-08-16 at 4 16 42 PM

Related issue(s):

Part of #4308

@jffng jffng force-pushed the add/skatepark-mixed-media-container branch from d4e5591 to 95871c7 Compare August 16, 2021 16:54
@jffng jffng marked this pull request as ready for review August 16, 2021 20:18
<!-- /wp:spacer -->

<!-- wp:image {"sizeSlug":"large","style":{"color":{"duotone":["#000","#BFF5A5"]}}} -->
<figure class="wp-block-image size-large"><img src="' . get_stylesheet_directory_uri() . '/assets/images/skateboard-sideways.jpg" " alt="' . esc_attr__( 'A skateboard laying on its side on top of concrete.', 'skatepark' ) . '"/></figure>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably compress this.

@@ -0,0 +1,6 @@
.skatepark-mixed-media-in-container {
hr, p, h1, h2, h3, h4, h5, h6 { // Shrink default vertical margins for all the elements in this pattern
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not crazy about this but not sure of a better way to reduce and standardize the margins between headings, paragraphs, and separators for this pattern.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't think of another way to target these elements... I think this is fine, especially as it's specific to this pattern.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense to me that we do it this way, since we are adding the margin globally from the theme css, it's not really the editor that's failing us here. In the end this is just an exception, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah they are exceptions. But if we reduce the vertical margins, I don't think these exceptions will be needed.

@jffng jffng requested review from melchoyce and a team August 16, 2021 20:20
@jffng jffng added the [Theme] Skatepark Automatically generated label for Skatepark. label Aug 16, 2021
Copy link
Member

@mikachan mikachan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given this a test and it's looking really good to me 👍

@jffng jffng mentioned this pull request Aug 17, 2021
8 tasks
@MaggieCabrera
Copy link
Contributor

This is not specific to this PR but I guess we could fix it here. The text-indent block style for the paragraph is not looking nicely on mobile:

Design Theme
Screenshot 2021-08-18 at 10 47 17 Screenshot 2021-08-18 at 10 48 36

@melchoyce
Copy link
Contributor

Should I hold off on reviewing this one until #4436 is merged, or is that already in this PR?

@jffng jffng force-pushed the add/skatepark-mixed-media-container branch from 5626fd4 to 085edb4 Compare August 20, 2021 19:43
@jffng
Copy link
Contributor Author

jffng commented Aug 20, 2021

Sorry for the delay replying here. I don't think this should be held up by #4436, I think it can be reviewed from a design perspective.

The text-indent block style for the paragraph is not looking nicely on mobile:

It sounds like the way we handle the text indent is changing, so maybe let's leave the mobile styling for the PR that addresses it to avoid conflicts.

@melchoyce
Copy link
Contributor

The percents do scale nicely on mobile, though I don't know that I have a strong opinion on specifically using percents — my main concern is making sure it looks consistent across other patterns and blocks.

Could we increase the spacing a tiny bit? Thinking:

padding-top: 3%;
padding-right: 4%;
padding-bottom: 4%;
padding-left: 4%;

@jffng
Copy link
Contributor Author

jffng commented Aug 23, 2021

Thanks for the ✅ ! I compressed the image, so I'll bring this in. If it turns out we can remove the CSS that alters the vertical spacing, we'll do it in a follow up PR.

@jffng jffng merged commit e8829f4 into trunk Aug 23, 2021
@jffng jffng deleted the add/skatepark-mixed-media-container branch August 23, 2021 20:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
[Theme] Skatepark Automatically generated label for Skatepark.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants