allow nested todo_lists via options on todo_item

This commit is contained in:
Chrissi2812
2019-05-08 12:26:13 +02:00
parent ff445f13aa
commit fc41ff36de
2 changed files with 27 additions and 9 deletions

View File

@@ -69,7 +69,9 @@ export default {
new CodeBlock(),
new HardBreak(),
new Heading({ levels: [1, 2, 3] }),
new TodoItem(),
new TodoItem({
nested: true,
}),
new TodoList(),
new Bold(),
new Code(),
@@ -135,14 +137,23 @@ li[data-type="todo_item"] {
.todo-content {
flex: 1;
> p:last-of-type {
margin-bottom: 0;
}
> ul[data-type="todo_list"] {
margin: .5rem 0;
}
}
li[data-done="true"] {
text-decoration: line-through;
}
li[data-done="true"] .todo-checkbox {
background-color: $color-black;
> .todo-content {
> p {
text-decoration: line-through;
}
}
> .todo-checkbox {
background-color: $color-black;
}
}
li[data-done="false"] {