Improve styling for mixed list styles

Tasks in an ordered list will now also show their numbers.

Closes #2488

Related to #3921
This commit is contained in:
Robert Speicher 2015-12-08 16:53:48 -05:00
parent d1ee3b7bad
commit 53fbb0ecda
2 changed files with 11 additions and 9 deletions

View File

@ -88,8 +88,14 @@ ul.bordered-list {
} }
} }
li.task-list-item { ul.task-list {
list-style-type: none; li.task-list-item {
list-style-type: none;
}
ul:not(.task-list) {
padding-left: 1.3em;
}
} }
ul.content-list { ul.content-list {

View File

@ -109,13 +109,9 @@ ul.notes {
} }
} }
// Reduce left padding of first task list ul element ul.task-list {
ul.task-list:first-child { ul:not(.task-list) {
padding-left: 10px; padding-left: 1.3em;
// sub-tasks should be padded normally
ul {
padding-left: 20px;
} }
} }