mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-04-07 20:41:22 -06:00
Fix #517 Users expect nested task lists to have the same indentation as other lists. Fix the styling in `_sass/content.scss` to do that. Add examples in `docs/index-test.md` to test.
This commit is contained in:
parent
c68a19b906
commit
d083aeb3fd
@ -82,14 +82,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.task-list {
|
|
||||||
padding-left: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.task-list-item {
|
.task-list-item {
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
content: "";
|
content: "";
|
||||||
}
|
}
|
||||||
@ -97,6 +90,8 @@
|
|||||||
|
|
||||||
.task-list-item-checkbox {
|
.task-list-item-checkbox {
|
||||||
margin-right: 0.6em;
|
margin-right: 0.6em;
|
||||||
|
margin-left: -1.4em;
|
||||||
|
// The same margin-left is used above for ul > li::before
|
||||||
}
|
}
|
||||||
|
|
||||||
hr + * {
|
hr + * {
|
||||||
|
@ -152,6 +152,30 @@ Some text
|
|||||||
- [ ] Hello, this is another TODO item
|
- [ ] Hello, this is another TODO item
|
||||||
- [x] Goodbye, this item is done
|
- [x] Goodbye, this item is done
|
||||||
|
|
||||||
|
### Nesting task lists
|
||||||
|
|
||||||
|
- [ ] level 1 item (task)
|
||||||
|
- [ ] level 2 item (task)
|
||||||
|
- [ ] level 2 item (task)
|
||||||
|
- [ ] level 1 item (task)
|
||||||
|
- [ ] level 1 item (task)
|
||||||
|
|
||||||
|
### Nesting a ul in a task list
|
||||||
|
|
||||||
|
- [ ] level 1 item (task)
|
||||||
|
- level 2 item (ul)
|
||||||
|
- level 2 item (ul)
|
||||||
|
- [ ] level 1 item (task)
|
||||||
|
- [ ] level 1 item (task)
|
||||||
|
|
||||||
|
### Nesting a task list in a ul
|
||||||
|
|
||||||
|
- level 1 item (ul)
|
||||||
|
- [ ] level 2 item (task)
|
||||||
|
- [ ] level 2 item (task)
|
||||||
|
- level 1 item (ul)
|
||||||
|
- level 1 item (ul)
|
||||||
|
|
||||||
### Small image
|
### Small image
|
||||||
|
|
||||||

|

|
||||||
|
Loading…
x
Reference in New Issue
Block a user