Removed unnecessary JS hack for nested list

This commit is contained in:
Sodbileg Gansukh 2023-07-03 17:37:39 +08:00
parent d75ffc78ac
commit 0e76b5abef
6 changed files with 4 additions and 18 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1479,10 +1479,6 @@ is the very first element in the post content */
box-shadow: 0 2px 6px -2px rgba(0,0,0,.1), 0 0 1px rgba(0,0,0,.4); box-shadow: 0 2px 6px -2px rgba(0,0,0,.1), 0 0 1px rgba(0,0,0,.4);
} }
.gh-content .kg-nested-list-item {
list-style-type: none;
}
.gh-content ol ol li { .gh-content ol ol li {
list-style-type: lower-alpha; list-style-type: lower-alpha;
} }

View File

@ -1,10 +0,0 @@
(function () {
const content = document.querySelector('.gh-content');
if (!content) return;
content.querySelectorAll('ul li, ol li').forEach(function (item) {
if (item.querySelector('ul, ol')) {
item.classList.add('kg-nested-list-item');
}
});
})();