Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LEDE-2671 & LEDE-2686 New Twitter/X logo & post blocks clean up #164

Merged
merged 7 commits into from
Jun 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.34
Stable tag: 0.3.35

Requires at least: 6.2

Expand Down
4 changes: 2 additions & 2 deletions blocks/footer/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
}

.twitter-icon {
background-color: #3CA1F2;
color: #3CA1F2;
background-color: #000;
color: #000;
}

.instagram-icon {
Expand Down
7 changes: 2 additions & 5 deletions blocks/post/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
*/

.wp-block-wp-newsletter-builder-post {
> * {
margin: 15px 0;
}

.post__image-link {
display: block;
}
Expand All @@ -36,9 +32,10 @@
}
}

.post__byline.wp-block-wp-newsletter-builder-post-byline,
.post__byline {
font-size: 16px;
margin-bottom: 8px;
margin: 0 auto 8px;
text-align: center;
}

Expand Down
25 changes: 24 additions & 1 deletion blocks/two-up-post/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@
*/

.wp-block-wp-newsletter-builder-two-up-post {
margin-bottom: 32px;
max-width: 600px;
width: 100%;

td {
vertical-align: top;
width: 50%;
}

div.wp-block-wp-newsletter-builder-post {
Expand All @@ -28,12 +30,33 @@
max-width: 300px;
width: 100%;
}

h2.wp-block-wp-newsletter-builder-post-title {
font-size: 20px !important; // Needed to override editor styles
}

p.post__byline {
font-size: 14px;
margin-bottom: 8px;
text-align: center;
}

div.wp-block-wp-newsletter-builder-post-excerpt {
// stylelint-disable-next-line selector-max-compound-selectors
p {
font-size: 14px;
}
}
}

.wp-block-wp-newsletter-builder-post-read-more {
display: none;
}

@media screen and (max-width: 480px) {
td {
display: block;
width: 100%;
width: 100% !important;
}
}
}
Binary file modified images/twitter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.34
* Version: 0.3.35
* Author: Alley Interactive
* Author URI: https://github.com/alleyinteractive/wp-newsletter-builder
* Requires at least: 6.2
Expand Down
25 changes: 16 additions & 9 deletions scss/core-blocks/latest-posts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
display: block;
font-weight: bold;
margin-bottom: 8px;
margin-top: 16px;
text-decoration: none;
}

Expand All @@ -19,16 +20,13 @@
clear: both;
display: table-row;
width: 100%;

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

img {
max-width: 250px;
width: 250px;
display: block;
margin-bottom: 16px;
max-width: 150px;
width: 150px;
}

.wp-block-latest-posts__post-title {
Expand All @@ -41,6 +39,11 @@

.wp-block-latest-posts__featured-image {
display: table-cell;
margin-top: 16px;

> a {
margin-top: 0;
}

&.aligncenter {
display: block;
Expand All @@ -60,12 +63,16 @@

&.alignleft {
float: left;
margin-bottom: 8px;
margin-right: 16px;
padding-bottom: 32px;
}

&.alignright {
float: right;
margin-bottom: 8px;
margin-left: 16px;
padding-bottom: 32px;
}
}

Expand All @@ -77,8 +84,8 @@

.wp-block-latest-posts__post-excerpt {
font-size: 14px;
margin-bottom: 8px;
margin-top: 8px;
margin-bottom: 16px;
margin-top: 16px;

> a {
display: none;
Expand Down