diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2021-10-11 19:21:47 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-11 19:21:47 -0600 |
| commit | 30605ceabe2cebb35817505d7fbc3c388ebf65d6 (patch) | |
| tree | 28411a626915035b81f5edbbfb4e8533652cabde | |
| parent | 8d42a5a50b981b2d5cdf9c0621a16ce1972d6947 (diff) | |
resolves #4184 update default stylesheet to fix spacing around empty list item (PR #4185)
| -rw-r--r-- | CHANGELOG.adoc | 1 | ||||
| -rw-r--r-- | data/stylesheets/asciidoctor-default.css | 1 | ||||
| -rw-r--r-- | src/stylesheets/asciidoctor.css | 5 |
3 files changed, 7 insertions, 0 deletions
diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index aa63259f..6b8d2075 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -38,6 +38,7 @@ Bug Fixes:: * Hide outline around HTML summary when activated in Safari (#4162) * Include primary video in value of `playlist` attribute when embeddding YouTube video (#4156) * Honor stripes=none on nested table (#4165) + * Update default stylesheet to fix spacing around empty list item (#4184) Improvements:: diff --git a/data/stylesheets/asciidoctor-default.css b/data/stylesheets/asciidoctor-default.css index 3d1163fa..992e5b1f 100644 --- a/data/stylesheets/asciidoctor-default.css +++ b/data/stylesheets/asciidoctor-default.css @@ -267,6 +267,7 @@ li p,ul dd,ol dd,.olist .olist,.ulist .ulist,.ulist .olist,.olist .ulist{margin- ul.checklist,ul.none,ol.none,ul.no-bullet,ol.no-bullet,ol.unnumbered,ul.unstyled,ol.unstyled{list-style-type:none} ul.no-bullet,ol.no-bullet,ol.unnumbered{margin-left:.625em} ul.unstyled,ol.unstyled{margin-left:0} +li>p:empty:only-child::before{content:"";display:inline-block} ul.checklist>li>p:first-child{margin-left:-1em} ul.checklist>li>p:first-child>.fa-square-o:first-child,ul.checklist>li>p:first-child>.fa-check-square-o:first-child{width:1.25em;font-size:.8em;position:relative;bottom:.125em} ul.checklist>li>p:first-child>input[type=checkbox]:first-child{margin-right:.25em} diff --git a/src/stylesheets/asciidoctor.css b/src/stylesheets/asciidoctor.css index a4f77de1..37a8f24f 100644 --- a/src/stylesheets/asciidoctor.css +++ b/src/stylesheets/asciidoctor.css @@ -1639,6 +1639,11 @@ ol.unstyled { margin-left: 0; } +li > p:empty:only-child::before { + content: ""; + display: inline-block; +} + ul.checklist > li > p:first-child { margin-left: -1em; } |
