Modify styles for checklists

This commit is contained in:
Matthew Ross 2017-04-30 08:21:26 -04:00
parent c60581e055
commit 59345ce907
2 changed files with 8 additions and 3 deletions

View File

@ -50,10 +50,10 @@ export class TaskDisplay {
if (/^\s*\[[x ]\]\s*/.test(text)) {
text = text
.replace(/^\s*\[ \]\s*/,
'<i class="icon icon-check-empty" style="margin-right:-4px"></i> ')
'<i class="icon icon-check-empty"></i> ')
.replace(/^\s*\[x\]\s*/,
'<i class="icon icon-check" style="margin-right:-4px"></i> ');
return '<li style="list-style: none; margin-left: -27px;">' + text + '</li>';
'<i class="icon icon-check"></i> ');
return '<li class="checklist">' + text + '</li>';
} else {
return '<li>' + text + '</li>';
}

View File

@ -177,6 +177,11 @@
}
}
.checklist {
list-style: none;
margin-left: -27px;
}
.stats {
font-size: .9em;
overflow: hidden;