Skip to content

Commit

Permalink
feat: add custom style for the Mailchimp block
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasguillot committed Mar 2, 2020
1 parent 0075413 commit 1f6bfa1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
11 changes: 11 additions & 0 deletions newspack-theme/sass/blocks/_blocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1119,6 +1119,17 @@
}
}

//! Mailchimp block
.wp-block-jetpack-mailchimp {
input[type='email'] {
width: 100%;
}

#wp-block-jetpack-mailchimp_consent-text {
font-size: $font__size-sm;
}
}

//! Organic Profile Block
.wp-block-organic-profile-block {
box-shadow: none;
Expand Down
9 changes: 8 additions & 1 deletion newspack-theme/sass/style-editor-base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ ul.wp-block-archives,

/** === Jetpack Blocks === */

// Jetpack Blocks
// Related Posts
.jp-relatedposts-i2 {
border-top: 1px solid $color__border;
border-bottom: 1px solid $color__border;
Expand All @@ -700,6 +700,13 @@ ul.wp-block-archives,
}
}

// Mailchimp
.wp-block-jetpack-mailchimp {
.block-editor-rich-text__editable {
font-size: $font__size-sm;
}
}

/** === Organic Profile Block === */
.wp-block-organic-profile-block {
box-shadow: none;
Expand Down

0 comments on commit 1f6bfa1

Please sign in to comment.