mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
Merge pull request #316 from asmsuechan/fix-the-design-of-li
Fix the design of li
This commit is contained in:
@@ -243,6 +243,10 @@ export default class MarkdownPreview extends React.Component {
|
|||||||
this.refs.root.contentWindow.document.body.setAttribute('data-theme', theme)
|
this.refs.root.contentWindow.document.body.setAttribute('data-theme', theme)
|
||||||
this.refs.root.contentWindow.document.body.innerHTML = markdown.render(value)
|
this.refs.root.contentWindow.document.body.innerHTML = markdown.render(value)
|
||||||
|
|
||||||
|
_.forEach(this.refs.root.contentWindow.document.querySelectorAll('.taskListItem'), (el) => {
|
||||||
|
el.parentNode.parentNode.style.listStyleType = 'none'
|
||||||
|
})
|
||||||
|
|
||||||
_.forEach(this.refs.root.contentWindow.document.querySelectorAll('a'), (el) => {
|
_.forEach(this.refs.root.contentWindow.document.querySelectorAll('a'), (el) => {
|
||||||
el.addEventListener('click', this.anchorClickHandler)
|
el.addEventListener('click', this.anchorClickHandler)
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -182,8 +182,18 @@ ul
|
|||||||
list-style-type circle
|
list-style-type circle
|
||||||
&>li>ul
|
&>li>ul
|
||||||
list-style-type square
|
list-style-type square
|
||||||
ul.markdownIt-TOC, ul.markdownIt-TOC ul
|
ul.markdownIt-TOC
|
||||||
|
list-style-type decimal
|
||||||
|
background-color #ffffff
|
||||||
|
padding-top 10px
|
||||||
|
padding-bottom 10px
|
||||||
|
ul
|
||||||
list-style-type none
|
list-style-type none
|
||||||
|
a
|
||||||
|
text-decoration none
|
||||||
|
color #000000
|
||||||
|
a:hover
|
||||||
|
color #2bac8f
|
||||||
ol
|
ol
|
||||||
list-style-type decimal
|
list-style-type decimal
|
||||||
padding-left 2em
|
padding-left 2em
|
||||||
|
|||||||
Reference in New Issue
Block a user