Skip to content

Commit

Permalink
Fix responsive layout of home page showcase logos
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwoodnz committed Oct 27, 2023
1 parent 6e0422a commit 2f062c1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/wp-content/themes/wporg-main-2022/patterns/home.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@
<!-- /wp:columns --></div>
<!-- /wp:group -->

<!-- wp:group {"align":"wide","style":{"spacing":{"margin":{"top":"50px","bottom":"50px"}}},"layout":{"type":"flex","flexWrap":"wrap","justifyContent":"space-between"}} -->
<div class="wp-block-group alignwide" style="margin-top:50px;margin-bottom:50px"><!-- wp:image {"id":11474,"width":"105px","height":"33px","sizeSlug":"full","linkDestination":"none"} -->
<!-- wp:group {"align":"wide","style":{"spacing":{"margin":{"top":"50px","bottom":"50px"}}},"className":"wporg-home-showcase-logos","layout":{"type":"flex","flexWrap":"wrap","justifyContent":"space-between"}} -->
<div class="wp-block-group alignwide wporg-home-showcase-logos" style="margin-top:50px;margin-bottom:50px"><!-- wp:image {"id":11474,"width":"105px","height":"33px","sizeSlug":"full","linkDestination":"none"} -->
<figure class="wp-block-image size-full is-resized"><img src="https://wordpress.org/files/2022/08/Spotify.png" alt="<?php _e( 'Spotify logo', 'wporg' ); ?>" class="wp-image-11474" style="width:105px;height:33px" /></figure>
<!-- /wp:image -->

Expand Down
13 changes: 13 additions & 0 deletions source/wp-content/themes/wporg-main-2022/src/style/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,19 @@ body.home .wp-block-wporg-link-wrapper {
}
}

.wporg-home-showcase-logos {

@media (max-width: 599px) {
display: grid !important;
grid-template-columns: 1fr 1fr;

> .wp-block-image {
display: flex;
justify-content: center;
}
}
}

/**
* Add a background behind the Editor section's cover block, for browsers that don't support webp.
*/
Expand Down

0 comments on commit 2f062c1

Please sign in to comment.