Skip to content

Commit

Permalink
fix: make pullquote citations inherit correct color (#1116)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurelfulford authored Oct 20, 2020
1 parent e383eb9 commit f537fd6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 0 additions & 4 deletions newspack-katharine/sass/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,6 @@ figcaption,
}
}

cite {
color: $color__text-light;
}

cite,
&.is-style-solid-color blockquote cite {
text-transform: uppercase;
Expand Down
4 changes: 3 additions & 1 deletion newspack-theme/sass/blocks/_blocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -335,10 +335,12 @@

cite {
display: inline-block;
color: inherit;
font-family: $font__heading;
font-size: $font__size-xs;
opacity: 0.8;
line-height: 1.6;
text-transform: none;
font-size: $font__size-xs;

&::before {
content: '\2014';
Expand Down
7 changes: 6 additions & 1 deletion newspack-theme/sass/style-editor-base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ figcaption,
.entry-meta a,
.entry-meta a:visited,
.entry-meta .byline a,
.entry-meta .byline a:visited {
.entry-meta .byline a:visited,
cite {
color: inherit;
}

Expand Down Expand Up @@ -500,6 +501,10 @@ figcaption,
}
}

div.wp-block-pullquote__citation {
opacity: 0.8;
}

em {
font-style: normal;
}
Expand Down

0 comments on commit f537fd6

Please sign in to comment.