Skip to content

Commit

Permalink
Modify previe markdown styles.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Apr 10, 2019
1 parent 49693df commit ba3fc54
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/PreviewMarkdown/markdown.less
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@
}
pre {
margin-bottom: 18px;
max-height: 35em;
font-size: 85%;
line-height: 1.45;
position: relative;
overflow: auto;
overflow-x: auto;
background-color: #f6f8fa;
border-radius: 3px;
}
Expand Down
5 changes: 5 additions & 0 deletions website/components/Markdown/styles/markdown.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
code {
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
word-wrap: normal;
background-color: rgba(27,31,35,.05);
border-radius: 3px;
font-size: 85%;
margin: 0;
padding: .2em .4em;
}

pre code {
Expand Down

0 comments on commit ba3fc54

Please sign in to comment.