diff --git a/markdown.css b/markdown.css index 9bd3c5e..8d4007f 100644 --- a/markdown.css +++ b/markdown.css @@ -101,18 +101,18 @@ padding-left: 34px; padding-left: 4ch; } -.markdown li:after { +.markdown li:before { position: absolute; top: 0; left: 0; } -.markdown ul > li:after { +.markdown ul > li:before { content: "*"; } .markdown ol { counter-reset: ol; } -.markdown ol > li:after { +.markdown ol > li:before { content: counter(ol) "."; counter-increment: ol; } diff --git a/markdown.less b/markdown.less index 3639384..b64fc1c 100644 --- a/markdown.less +++ b/markdown.less @@ -95,13 +95,13 @@ padding-left: @four-space-css3; } - li:after { + li:before { position: absolute; top: 0; left: 0; } - ul>li:after { + ul>li:before { content: @ul-tick; } @@ -109,7 +109,7 @@ // Auto-increments the numbering for ordered lists. counter-reset:ol; } - ol>li:after { + ol>li:before { content: counter(ol) "."; counter-increment: ol; } @@ -222,4 +222,4 @@ ol>li:after { content: "1."; } -} \ No newline at end of file +}