Skip to content

Commit

Permalink
remove unneeded class, added wrapper for bottom padding
Browse files Browse the repository at this point in the history
  • Loading branch information
MaggieCabrera authored and scruffian committed Apr 28, 2021
1 parent 81bb9f9 commit 874e0e2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
6 changes: 2 additions & 4 deletions quadrat/assets/theme.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions quadrat/inc/block-patterns.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,17 @@ function quadrat_register_block_patterns() {
'title' => __( 'Episode', 'quadrat' ),
'categories' => array( 'quadrat' ),

'content' => '<!-- wp:media-text {"mediaId":1497,"mediaLink":"http://freethemes.local/?attachment_id=1497","mediaType":"image","mediaWidth":40,"mediaSizeSlug":"large","imageFill":false,"className":"has-pink-color has-darker-blue-background-color has-text-color has-background is-style-default"} -->
'content' => '<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"0px","right":"0px","bottom":"30px"}}}} -->
<div class="wp-block-group alignwide" style="padding-top:0px;padding-right:0px;padding-bottom:30px"><!-- wp:media-text {"mediaId":1497,"mediaLink":"http://freethemes.local/?attachment_id=1497","mediaType":"image","mediaWidth":40,"mediaSizeSlug":"large","imageFill":false,"className":"has-pink-color has-darker-blue-background-color has-text-color has-background is-style-default"} -->
<div class="wp-block-media-text alignwide is-stacked-on-mobile has-pink-color has-darker-blue-background-color has-text-color has-background is-style-default" style="grid-template-columns:40% auto"><figure class="wp-block-media-text__media"><img src="https://quadrat.mystagingwebsite.com/wp-content/uploads/2021/04/Introspection-scaled.jpg" alt="' . esc_attr__( 'Illustration of an introspective woman.', 'quadrat') . '" class="wp-image-1497 size-large"/></figure><div class="wp-block-media-text__content"><!-- wp:heading {"level":3} -->
<h3>' . esc_html__( 'Episode 3: A Cycle of Emotions', 'quadrat' ) . '</h3>
<!-- /wp:heading -->
<!-- wp:paragraph {"fontSize":"small"} -->
<p class="has-small-font-size">' . wp_kses_post( __( '<em>“Do we need periods if they make us crazy?”</em>, Sarah asks. We reached out to our friend Diana Roth, an endocrinologist specialized in women’s hormonal health to know how menstrual cycles impact women’s brains and emotions. Hint: yes, we do.', 'quadrat' ) ) . '</p>
<!-- /wp:paragraph --></div></div>
<!-- /wp:media-text -->',
<!-- /wp:media-text --></div>
<!-- /wp:group -->',
)
);
}
Expand Down
3 changes: 1 addition & 2 deletions quadrat/sass/_utility.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.image-no-margin,
.wp-block-image.image-no-margin {
.image-no-margin {
margin: 0;
& > * { //the first sibling is a div on the editor and an image on the frontend
vertical-align: bottom;
Expand Down

0 comments on commit 874e0e2

Please sign in to comment.