From: Dan Allen Date: Fri, 9 Feb 2018 23:48:43 +0000 (-0700) Subject: add numeration styles for ordered lists X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=cd898925e7df9f3fbd999f39ffd5b01d16856414;p=working%2Feg-antora.git add numeration styles for ordered lists --- diff --git a/src/css/doc.css b/src/css/doc.css index 96599f5..a62b937 100644 --- a/src/css/doc.css +++ b/src/css/doc.css @@ -310,17 +310,42 @@ } .doc ol > li::before { - /* use counter(ordered-list, lower-alpha) to make letters */ - content: "." counter(ordered-list); font-weight: 500; display: inline-block; width: 1em; direction: rtl; - margin: 0 0.5em 0 -1.5em; + /* NOTE the browser using -1.25em as left offset */ + margin: -1.25px 0.5em 0 -1.5em; text-align: right; position: absolute; } +.doc ol.arabic > li::before { + content: "." counter(ordered-list); +} + +/* NOTE decimal-leading-zero not yet supported; @counter-style not supported in Chrome */ + +.doc ol.loweralpha > li::before { + content: "." counter(ordered-list, lower-alpha); +} + +.doc ol.lowergreek > li::before { + content: "." counter(ordered-list, lower-greek); +} + +.doc ol.lowerroman > li::before { + content: "." counter(ordered-list, lower-roman); +} + +.doc ol.upperalpha > li::before { + content: "." counter(ordered-list, upper-alpha); +} + +.doc ol.upperroman > li::before { + content: "." counter(ordered-list, upper-roman); +} + .doc ul.checklist { padding-left: 0.5rem; list-style: none;