Skip to content

Commit

Permalink
add support for unordered list styles and some missing ordered list s…
Browse files Browse the repository at this point in the history
…tyles

* support the following unordered list styles: circle, disc, square, none, no-bullet, unstyled
* support the following ordered list styles: none, unnumbered, unstyled
  • Loading branch information
mojavelinux committed Nov 28, 2020
1 parent eb83a5b commit 915cfd6
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
2 changes: 2 additions & 0 deletions preview-src/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,15 @@ 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

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
Expand Down
33 changes: 32 additions & 1 deletion src/css/doc.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 915cfd6

Please sign in to comment.