diff options
| author | Dan Allen <dan@opendevise.com> | 2018-02-10 02:01:32 -0700 |
|---|---|---|
| committer | Dan Allen <dan@opendevise.com> | 2018-02-10 02:01:32 -0700 |
| commit | 4cc01219fb9e0e41f05316ffc37f8a027ed7a9c1 (patch) | |
| tree | 79b56243bb5d59048622874bec36120c80e28919 /docs/modules/ROOT | |
| parent | 6babf477006216ef612dae79b9ec92674b084d8d (diff) | |
| download | alpine-antora-theme-4cc01219fb9e0e41f05316ffc37f8a027ed7a9c1.tar.bz2 alpine-antora-theme-4cc01219fb9e0e41f05316ffc37f8a027ed7a9c1.tar.xz | |
document how to support the ordered list numeration styles
Diffstat (limited to 'docs/modules/ROOT')
| -rw-r--r-- | docs/modules/ROOT/pages/style-guide.adoc | 47 |
1 files changed, 46 insertions, 1 deletions
diff --git a/docs/modules/ROOT/pages/style-guide.adoc b/docs/modules/ROOT/pages/style-guide.adoc index fc69f67..e1a48e4 100644 --- a/docs/modules/ROOT/pages/style-guide.adoc +++ b/docs/modules/ROOT/pages/style-guide.adoc @@ -55,7 +55,52 @@ Here's how it might appear when the title is displayed as text: WARNING: Watch out! -=== Task lists +=== Ordered List Numeration Styles + +The browser automatically numbers ordered lists and selects a numeration style by list depth in the following order: decimal, lower-alpha, lower-roman, upper-alpha, upper-roman. + +AsciiDoc allows the author to override the numeration style for an ordered list. +Here's an example of that output: + +[source,html] +---- +<div class="olist loweralpha"> +<ol class="loweralpha" type="a"> +<li><p>a</p></li> +<li><p>b</p></li> +<li><p>c</p></li> +</ol> +</div> +---- + +In order to support this customization, you must assign the list-style-type property to the following classes on the <ol> element in your stylesheet. + +|=== +|<ol> class |list-style-type property value + +|arabic +|decimal + +|decimal +|decimal-leading-zero + +|loweralpha +|lower-alpha + +|lowergreek +|lower-greek + +|lowerroman +|lower-roman + +|upperalpha +|upper-alpha + +|upperroman +|upper-roman +|=== + +=== Task Lists A task list is an unordered list with items that are prefixed with a checkbox marker (checked or unchecked). Here's an AsciiDoc source example that produces a task list: |
