1
0
mirror of https://github.com/thangisme/notes.git synced 2024-12-22 04:26:28 -05:00

Support for nesting ul in ol and vice versa

This commit is contained in:
Patrick Marsceill 2019-02-02 17:38:36 -06:00
parent aee6d1fb8c
commit 0ac8ec23bf
No known key found for this signature in database
GPG Key ID: 286B93882D828F40
2 changed files with 22 additions and 4 deletions

View File

@ -21,13 +21,13 @@
list-style-type: none;
counter-reset: step-counter;
li {
>li {
position: relative;
&::before {
position: absolute;
top: 0.2em;
left: -1.5em;
left: -1.6em;
color: $grey-dk-000;
content: counter(step-counter);
counter-increment: step-counter;
@ -54,10 +54,10 @@
ul {
list-style: none;
li {
>li {
&::before {
position: absolute;
margin-left: -1.5em;
margin-left: -1.4em;
color: $grey-dk-000;
content: "";
}

View File

@ -94,6 +94,24 @@ end
- level 2 item
- level 1 item
### Nesting an ol in ul in an ol
- level 1 item (ul)
1. level 2 item (ol)
1. level 2 item (ol)
- level 3 item (ul)
- level 3 item (ul)
- level 1 item (ul)
1. level 2 item (ol)
1. level 2 item (ol)
- level 3 item (ul)
- level 3 item (ul)
1. level 4 item (ol)
1. level 4 item (ol)
- level 3 item (ul)
- level 3 item (ul)
- level 1 item (ul)
### And a task list
- [ ] Hello, this is a TODO item