Skip to content

Commit

Permalink
Merge pull request #162 from alleyinteractive/feature/LEDE-2686/more-…
Browse files Browse the repository at this point in the history
…clean-up

LEDE-2686 Refine styles for Latest Posts block
  • Loading branch information
cahdeemer authored Jun 28, 2024
2 parents 1e41c24 + 10fc4d4 commit 0d0547c
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Contributors: alleyinteractive

Tags: alleyinteractive, wp-newsletter-builder

Stable tag: 0.3.33
Stable tag: 0.3.34

Requires at least: 6.2

Expand Down
5 changes: 0 additions & 5 deletions block-filters/latest-posts/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ function modifyLatestPostsSupports(settings, name) {
) {
return {
...settings,
attributes: Object.assign(settings.attributes, {
excerptLength: {
default: 20,
},
}),
category: 'wp-newsletter-builder-newsletter',
supports: Object.assign(settings.supports, {
align: [],
Expand Down
2 changes: 1 addition & 1 deletion plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Newsletter Builder
* Plugin URI: https://github.com/alleyinteractive/wp-newsletter-builder
* Description: Interface to manage email newsletters
* Version: 0.3.33
* Version: 0.3.34
* Author: Alley Interactive
* Author URI: https://github.com/alleyinteractive/wp-newsletter-builder
* Requires at least: 6.2
Expand Down
23 changes: 19 additions & 4 deletions scss/core-blocks/latest-posts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@
width: 100%;

> * {
margin: 16px;
margin-bottom: 16px;
margin-top: 16px;
}
}

img {
max-width: 250px;
width: 250px;
}

.wp-block-latest-posts__post-title {
Expand All @@ -51,7 +53,7 @@
width: 100%;

img {
max-width: 90%;
max-width: 100%;
width: 100%;
}
}
Expand Down Expand Up @@ -87,11 +89,24 @@
li {
display: block;
width: 100%;

div {
display: block;
float: none;
}
}

img {
max-width: 100%;
.wp-block-latest-posts__featured-image.alignleft,
.wp-block-latest-posts__featured-image.alignright {
display: block;
float: none;
width: 100%;

img {
display: block;
max-width: 100%;
width: 100%;
}
}
}
}

0 comments on commit 0d0547c

Please sign in to comment.