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