mirror of
https://github.com/thangisme/notes.git
synced 2025-01-18 06:56:55 -05:00
Support for nesting ul in ol and vice versa
This commit is contained in:
parent
aee6d1fb8c
commit
0ac8ec23bf
@ -21,13 +21,13 @@
|
|||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
counter-reset: step-counter;
|
counter-reset: step-counter;
|
||||||
|
|
||||||
li {
|
>li {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0.2em;
|
top: 0.2em;
|
||||||
left: -1.5em;
|
left: -1.6em;
|
||||||
color: $grey-dk-000;
|
color: $grey-dk-000;
|
||||||
content: counter(step-counter);
|
content: counter(step-counter);
|
||||||
counter-increment: step-counter;
|
counter-increment: step-counter;
|
||||||
@ -54,10 +54,10 @@
|
|||||||
ul {
|
ul {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
|
|
||||||
li {
|
>li {
|
||||||
&::before {
|
&::before {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
margin-left: -1.5em;
|
margin-left: -1.4em;
|
||||||
color: $grey-dk-000;
|
color: $grey-dk-000;
|
||||||
content: "•";
|
content: "•";
|
||||||
}
|
}
|
||||||
|
@ -94,6 +94,24 @@ end
|
|||||||
- level 2 item
|
- level 2 item
|
||||||
- level 1 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
|
### And a task list
|
||||||
|
|
||||||
- [ ] Hello, this is a TODO item
|
- [ ] Hello, this is a TODO item
|
||||||
|
Loading…
Reference in New Issue
Block a user