Skip to content

Commit

Permalink
fix: make captions styles more specific (#2423)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurelfulford authored Dec 12, 2024
1 parent 3dca7a1 commit b6f3c5b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions newspack-theme/sass/media/_captions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ figcaption,
text-align: left;
}

// Override some specific styles coming from WordPress.
:root :where(.wp-block-image figcaption) {
color: var(--newspack-theme-color-text-light);
font-size: var(--newspack-theme-font-size-xs);
}

.has-text-color {
figcaption,
.wp-caption-text {
Expand Down

0 comments on commit b6f3c5b

Please sign in to comment.