Skip to content

Commit

Permalink
fix: make sure captions and credits inherit colours (#1775)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurelfulford authored Apr 21, 2022
1 parent fbedb3f commit 302b2e3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions newspack-theme/sass/media/_captions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ figcaption,
text-align: left;
}

.has-text-color {
figcaption,
.wp-caption-text {
color: inherit;
}
}

figcaption,
.wp-caption-text,
.amp-image-lightbox-caption {
Expand Down
7 changes: 7 additions & 0 deletions newspack-theme/sass/style-editor-base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,13 @@ figcaption,
padding-right: 0;
}

.has-text-color {
figcaption,
.wp-caption-text {
color: inherit;
}
}

/** === Post Title === */

.editor-post-title__block,
Expand Down

0 comments on commit 302b2e3

Please sign in to comment.