1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-14 02:06:29 +00:00

Markdown styleを少し改善

This commit is contained in:
Rokt33r
2015-12-05 19:12:56 +09:00
parent b03afff994
commit 57c26e3b4a

View File

@@ -1,36 +1,38 @@
marked() marked()
h1, h2, h3, h4, h5, h6, p
&:first-child
margin-top 0
hr hr
border-top none border-top none
border-bottom solid 1px borderColor border-bottom solid 1px borderColor
margin 15px 0 margin 20px 0
h1, h2, h3, h4, h5, h6
margin 0 0 20px
font-weight 600
* + h1, * + h2, * + h3, * + h4, * + h5, * + h6
margin-top 25px
h1 h1
font-size 2em font-size 2em
border-bottom solid 2px borderColor border-bottom solid 2px borderColor
margin 0.33em auto 0.67em line-height 2.333em
h2 h2
font-size 1.5em font-size 1.66em
margin 0.42em auto 0.83em line-height 2.07em
h3 h3
font-size 1.17em font-size 1.33em
margin 0.5em auto 1em line-height 1.6625em
h4 h4
font-size 1em font-size 1.15em
margin 0.67em auto 1.33em line-height 1.4375em
h5 h5
font-size 0.83em font-size 1em
margin 0.84em auto 1.67em line-height 1.25em
h6 h6
font-size 0.67em font-size 0.8em
margin 1.16em auto 2.33em line-height 1em
h1, h2, h3, h4, h5, h6
font-weight 700 * + p, * + blockquote, * + ul, * + ol, * + pre
line-height 1.8em margin-top 15px
p p
line-height 1.8em line-height 1.9em
margin 15px 0 25px margin 0 0 20px
img img
max-width 100% max-width 100%
strong strong
@@ -41,15 +43,17 @@ marked()
text-decoration line-through text-decoration line-through
blockquote blockquote
border-left solid 4px brandBorderColor border-left solid 4px brandBorderColor
margin 15px 0 25px margin 0 0 20px
padding 0 25px padding 0 25px
ul ul
list-style-type disc list-style-type disc
padding-left 35px padding-left 35px
margin-bottom 35px margin-bottom 20px
li li
display list-item display list-item
line-height 1.8em line-height 1.8em
&>li>ul, &>li>ol
margin 0
&>li>ul &>li>ul
list-style-type circle list-style-type circle
&>li>ul &>li>ul
@@ -57,10 +61,12 @@ marked()
ol ol
list-style-type decimal list-style-type decimal
padding-left 35px padding-left 35px
margin-bottom 35px margin-bottom 20px
li li
display list-item display list-item
line-height 1.8em line-height 1.8em
&>li>ul, &>li>ol
margin 0
code code
font-family Monaco, Menlo, 'Ubuntu Mono', Consolas, source-code-pro, monospace; font-family Monaco, Menlo, 'Ubuntu Mono', Consolas, source-code-pro, monospace;
padding 2px 4px padding 2px 4px
@@ -70,15 +76,19 @@ marked()
color black color black
text-decoration none text-decoration none
background-color #F6F6F6 background-color #F6F6F6
margin-right 2px
* + code
margin-left 2px
pre pre
padding 5px padding 5px
border solid 1px borderColor border solid 1px borderColor
border-radius 5px border-radius 5px
overflow-x auto overflow-x auto
margin 15px 0 25px margin 0 0 15px
background-color #F6F6F6 background-color #F6F6F6
line-height 1.35em line-height 1.35em
&>code &>code
margin 0
padding 0 padding 0
border none border none
border-radius 0 border-radius 0