feat: don't show bullet points of checklists

This commit is contained in:
kolaente 2021-09-26 20:53:27 +02:00
parent e17116dac1
commit 2691a84610
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 10 additions and 2 deletions

View File

@ -417,6 +417,7 @@ export default {
for (const check of textCheckbox) {
check.removeEventListener('change', this.handleCheckboxClick)
check.addEventListener('change', this.handleCheckboxClick)
check.parentElement.classList.add('has-checkbox')
}
}
})
@ -470,8 +471,15 @@ export default {
.preview.content {
margin-bottom: .5rem;
ul li input[type="checkbox"] {
margin-right: .5rem;
ul li {
input[type="checkbox"] {
margin-right: .5rem;
}
&.has-checkbox {
margin-left: -2em;
list-style: none;
}
}
}
}