diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2023-10-27 01:29:24 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2023-10-27 01:29:24 -0600 |
| commit | 49505054be54182c39c0a6697cd3cb2663ecb134 (patch) | |
| tree | c8c7cb4646fb09da97c12d26894ee04e712aaacb | |
| parent | 6d2c7a7a30dbb24c2505f55c2d7895d6b69f5580 (diff) | |
modify default stylesheet to honor text-* roles on quote blocks
| -rw-r--r-- | CHANGELOG.adoc | 1 | ||||
| -rw-r--r-- | data/stylesheets/asciidoctor-default.css | 8 | ||||
| -rw-r--r-- | src/stylesheets/asciidoctor.css | 8 |
3 files changed, 9 insertions, 8 deletions
diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index 82a9fbd2..29f0495b 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -63,6 +63,7 @@ Improvements:: * Use safe navigation to avoid crashing when querying for extensions * Remove empty line at top of table cells in manpage output (#4482) (*@strager*) * Return `nil` if name passed to `Asciidoctor::SafeMode.value_for_name` is not recognized (#3526) + * Modify default stylesheet to honor text-* roles on quote blocks Bug Fixes:: diff --git a/data/stylesheets/asciidoctor-default.css b/data/stylesheets/asciidoctor-default.css index 9b49f4e8..6987bb7d 100644 --- a/data/stylesheets/asciidoctor-default.css +++ b/data/stylesheets/asciidoctor-default.css @@ -36,10 +36,10 @@ audio,video{display:inline-block} audio:not([controls]){display:none;height:0} .left{float:left!important} .right{float:right!important} -.text-left{text-align:left!important} -.text-right{text-align:right!important} -.text-center{text-align:center!important} -.text-justify{text-align:justify!important} +.text-left,div.text-left>*{text-align:left!important} +.text-right,div.text-right>*{text-align:right!important} +.text-center,div.text-center>*{text-align:center!important} +.text-justify,div.text-justify>*{text-align:justify!important} .hide{display:none} .subheader,.admonitionblock td.content>.title,.audioblock>.title,.exampleblock>.title,.imageblock>.title,.listingblock>.title,.literalblock>.title,.stemblock>.title,.openblock>.title,.paragraph>.title,.quoteblock>.title,table.tableblock>.title,.verseblock>.title,.videoblock>.title,.dlist>.title,.olist>.title,.ulist>.title,.qlist>.title,.hdlist>.title{line-height:1.45;color:#7a2518;font-weight:400;margin-top:0;margin-bottom:.25em} p aside{font-size:.875em;line-height:1.35;font-style:italic} diff --git a/src/stylesheets/asciidoctor.css b/src/stylesheets/asciidoctor.css index 4987e3ed..c90cd8ae 100644 --- a/src/stylesheets/asciidoctor.css +++ b/src/stylesheets/asciidoctor.css @@ -212,19 +212,19 @@ audio:not([controls]) { float: right !important; } -.text-left { +.text-left, div.text-left > * { text-align: left !important; } -.text-right { +.text-right, div.text-right > * { text-align: right !important; } -.text-center { +.text-center, div.text-center > * { text-align: center !important; } -.text-justify { +.text-justify, div.text-justify > * { text-align: justify !important; } |
