Skip to content

Commit

Permalink
feat: customize group block border styles for some themes (#917)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurelfulford authored May 17, 2020
1 parent 80580bb commit c20dd6b
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 1 deletion.
4 changes: 4 additions & 0 deletions newspack-joseph/sass/style-editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ Newspack Sacha Editor Styles
}
}

.wp-block-group.is-style-border {
border: 3px double currentColor;
}

/* Separator */
.wp-block-separator {
&:not( .is-style-dots ) {
Expand Down
4 changes: 4 additions & 0 deletions newspack-joseph/sass/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,10 @@ textarea {
}
}

.wp-block-group.is-style-border {
border: 3px double currentColor;
}

//! Pullquote
.wp-block-pullquote {
border: 0;
Expand Down
5 changes: 5 additions & 0 deletions newspack-katharine/sass/style-editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -207,3 +207,8 @@ hr {
}
}
}

.wp-block-group.is-style-border {
border-style: dotted;
border-color: $color__text-main;
}
3 changes: 2 additions & 1 deletion newspack-katharine/sass/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,8 @@ figcaption,
}

//! Columns Block
.wp-block-columns.is-style-borders .wp-block-column::after {
.wp-block-columns.is-style-borders .wp-block-column::after,
.wp-block-group.is-style-border {
border-style: dotted;
border-color: $color__text-main;
}
Expand Down
4 changes: 4 additions & 0 deletions newspack-nelson/sass/style-editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ blockquote {
font-weight: 800;
}

.wp-block-group.is-style-border {
border-color: currentColor;
}

.wp-block[data-type='core/pullquote'] {
.wp-block-pullquote {
border-width: 16px 0 4px;
Expand Down
5 changes: 5 additions & 0 deletions newspack-nelson/sass/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,11 @@ blockquote {
font-weight: 800;
}

//! Group Block
.wp-block-group.is-style-border {
border-color: currentColor;
}

//! Newspack Article Block
.wpnbha {
article .entry-meta {
Expand Down

0 comments on commit c20dd6b

Please sign in to comment.