Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions browser/components/MarkdownPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,22 @@ h1, h2 {
border: none;
}

h3 {
margin: 1em 0 0.8em;
}

h4, h5, h6 {
margin: 1.1em 0 0.5em;
}

h1 {
padding-bottom: 4px;
padding: 0.2em 0 0.2em;
margin: 1em 0 8px;
}

h2 {
padding-bottom: 0.2em;
margin: 1em 0 0.37em;
padding: 0.2em 0 0.2em;
margin: 1em 0 0.7em;
}

body p {
Expand Down
22 changes: 8 additions & 14 deletions browser/components/markdown.styl
Original file line number Diff line number Diff line change
Expand Up @@ -124,40 +124,34 @@ hr
border-bottom solid 1px borderColor
margin 15px 0
h1, h2, h3, h4, h5, h6
margin 1em 0 1.5em
line-height 1.4
font-weight bold
word-wrap break-word
padding .2em 0 .2em
h1
font-size 2.55em
padding-bottom 0.3em
line-height 1.2em
line-height 1.2
border-bottom solid 1px borderColor
margin 1em 0 0.44em
&:first-child
margin-top 0
h2
font-size 1.75em
padding-bottom 0.3em
line-height 1.225em
line-height 1.225
border-bottom solid 1px borderColor
margin 1em 0 0.57em
&:first-child
margin-top 0
h3
font-size 1.5em
line-height 1.43em
margin 1em 0 0.66em
line-height 1.43
h4
font-size 1.25em
line-height 1.4em
margin 1em 0 0.8em
line-height 1.4
h5
font-size 1em
line-height 1.4em
margin 1em 0 1em
line-height 1.1
h6
font-size 1em
line-height 1.4em
margin 1em 0 1em
color #777
p
line-height 1.6em
Expand Down