style improvement

This commit is contained in:
mivinci 2021-08-19 12:42:00 +08:00
parent d49a47422e
commit 0c9211f27b
8 changed files with 666 additions and 277 deletions

6
assets/js/style.js Normal file
View file

@ -0,0 +1,6 @@
// This file contains some codes to fix style of elements under `.md`
document.querySelectorAll('.md ul').forEach(v => {
if (/<li><input .+>.+<\/li>/.test(v.innerHTML)) {
v.classList.add('ul-checkbox');
}
});