Skip to content

Commit

Permalink
fix: improve styling of blockquote attribution
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbert committed Jun 27, 2021
1 parent 8b48e02 commit aef6729
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions components/blockquote/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,17 @@
font-size: var(--utrecht-blockquote-font-size);
}

.utrecht-blockquote__attribution {
color: var(--utrecht-blockquote-attribution-color, inherit);
font-size: var(--utrecht-blockquote-attribution-font-size, inherit);
}

.utrecht-blockquote__content {
--utrecht-document-color: var(--utrecht-blockquote-content-color, inherit);
--utrecht-paragraph-font-size: var(--utrecht-blockquote-content-font-size, inherit);

color: var(--utrecht-blockquote-content-color, inherit);
font-size: var(--utrecht-blockquote-content-font-size, inherit);
}

.utrecht-blockquote--distanced {
Expand Down
2 changes: 1 addition & 1 deletion components/blockquote/stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const Template = ({ content, attribution, distanced }) =>
attribution
? `
</div>
<div class="utrecht-blockquote__attribution"><cite>${attribution}</cite></div>`
<div class="utrecht-blockquote__attribution">${attribution}</div>`
: ""
}
</blockquote>`;
Expand Down

0 comments on commit aef6729

Please sign in to comment.