Skip to content

Commit

Permalink
Allow controlling horizontal position of quote attribution
Browse files Browse the repository at this point in the history
REDMINE-20338
  • Loading branch information
tf committed Aug 15, 2023
1 parent 4b1cb94 commit 00191a7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ adjust the design:

| Name | Description |
| ---- | ----------- |
| `quote_attribution_min_width` | Control horizontal position of attribute text. |
| `quote_indent` | Length by which to indent the quote text. |
| `quote_mark_left_mark` | Symbol to use for the left quotation mark. |
| `quote_mark_right_mark` | Symbol to use for the left quotation mark. |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@
padding-left: 0.05em;
}

.attribution {
min-width: var(--theme-quote-attribution-min-width);
}

.attribution p:first-child {
position: relative;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ storiesOfContentElement(module, {
quoteDesign: 'hanging'
}
},
{
name: 'Centered Attribution',
themeOptions: {
properties: {
quoteAttributionMinWidth: '50%'
}
}
},
{
name: 'Inline',
themeOptions: {
Expand Down

0 comments on commit 00191a7

Please sign in to comment.