Skip to content

Commit a60d4b0

Browse files
committed
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
1 parent fc00a16 commit a60d4b0

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

preview-src/index.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,15 @@ No sea, at invenire voluptaria mnesarchum has.
116116
Ex nam suas nemore dignissim, vel apeirian democritum et.
117117
At ornatus splendide sed, phaedrum omittantur usu an, vix an noster voluptatibus.
118118

119+
[upperalpha]
119120
. potenti donec cubilia tincidunt
120121
. etiam pulvinar inceptos velit quisque aptent himenaeos
121122
. lacus volutpat semper porttitor aliquet ornare primis nulla enim
122123

123124
Natum facilisis theophrastus an duo.
124125
No sea, at invenire voluptaria mnesarchum has.
125126

127+
[square]
126128
* ultricies sociosqu tristique integer
127129
* lacus volutpat semper porttitor aliquet ornare primis nulla enim
128130
* etiam pulvinar inceptos velit quisque aptent himenaeos

src/css/doc.css

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,38 @@
389389
padding: 0 0 0 2rem;
390390
}
391391

392+
.doc ul.checklist,
393+
.doc ul.none,
394+
.doc ol.none,
395+
.doc ul.no-bullet,
396+
.doc ol.unnumbered,
397+
.doc ul.unstyled,
398+
.doc ol.unstyled {
399+
list-style-type: none;
400+
}
401+
402+
.doc ul.no-bullet,
403+
.doc ol.unnumbered {
404+
padding-left: 1.25rem;
405+
}
406+
407+
.doc ul.unstyled,
408+
.doc ol.unstyled {
409+
padding-left: 0;
410+
}
411+
412+
.doc ul.circle {
413+
list-style-type: square;
414+
}
415+
416+
.doc ul.disc {
417+
list-style-type: square;
418+
}
419+
420+
.doc ul.square {
421+
list-style-type: square;
422+
}
423+
392424
.doc ol.arabic {
393425
list-style-type: decimal;
394426
}
@@ -419,7 +451,6 @@
419451

420452
.doc ul.checklist {
421453
padding-left: 0.5rem;
422-
list-style: none;
423454
}
424455

425456
.doc ul.checklist p > i.fa-check-square-o:first-child,

0 commit comments

Comments
 (0)