From 915cfd6d9bfdd74a9cfa9ba9c0d9f63a73354877 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Sat, 28 Nov 2020 03:19:23 -0700 Subject: [PATCH] add support for unordered list styles and some missing ordered list styles * support the following unordered list styles: circle, disc, square, none, no-bullet, unstyled * support the following ordered list styles: none, unnumbered, unstyled --- preview-src/index.adoc | 2 ++ src/css/doc.css | 33 ++++++++++++++++++++++++++++++++- 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/preview-src/index.adoc b/preview-src/index.adoc index 7c8caff..f30e1e3 100644 --- a/preview-src/index.adoc +++ b/preview-src/index.adoc @@ -116,6 +116,7 @@ No sea, at invenire voluptaria mnesarchum has. Ex nam suas nemore dignissim, vel apeirian democritum et. At ornatus splendide sed, phaedrum omittantur usu an, vix an noster voluptatibus. +[upperalpha] . potenti donec cubilia tincidunt . etiam pulvinar inceptos velit quisque aptent himenaeos . lacus volutpat semper porttitor aliquet ornare primis nulla enim @@ -123,6 +124,7 @@ At ornatus splendide sed, phaedrum omittantur usu an, vix an noster voluptatibus Natum facilisis theophrastus an duo. No sea, at invenire voluptaria mnesarchum has. +[square] * ultricies sociosqu tristique integer * lacus volutpat semper porttitor aliquet ornare primis nulla enim * etiam pulvinar inceptos velit quisque aptent himenaeos diff --git a/src/css/doc.css b/src/css/doc.css index a88b187..1eb6fe7 100644 --- a/src/css/doc.css +++ b/src/css/doc.css @@ -381,6 +381,38 @@ padding: 0 0 0 2rem; } +.doc ul.checklist, +.doc ul.none, +.doc ol.none, +.doc ul.no-bullet, +.doc ol.unnumbered, +.doc ul.unstyled, +.doc ol.unstyled { + list-style-type: none; +} + +.doc ul.no-bullet, +.doc ol.unnumbered { + padding-left: 1.25rem; +} + +.doc ul.unstyled, +.doc ol.unstyled { + padding-left: 0; +} + +.doc ul.circle { + list-style-type: square; +} + +.doc ul.disc { + list-style-type: square; +} + +.doc ul.square { + list-style-type: square; +} + .doc ol.arabic { list-style-type: decimal; } @@ -411,7 +443,6 @@ .doc ul.checklist { padding-left: 0.5rem; - list-style: none; } .doc ul.checklist p > i.fa-check-square-o:first-child, -- 2.11.0