Skip to content

Commit ba3fc54

Browse files
committed
Modify previe markdown styles.
1 parent 49693df commit ba3fc54

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/components/PreviewMarkdown/markdown.less

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@
1616
}
1717
pre {
1818
margin-bottom: 18px;
19-
max-height: 35em;
2019
font-size: 85%;
2120
line-height: 1.45;
2221
position: relative;
23-
overflow: auto;
22+
overflow-x: auto;
2423
background-color: #f6f8fa;
2524
border-radius: 3px;
2625
}

website/components/Markdown/styles/markdown.less

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
code {
33
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
44
word-wrap: normal;
5+
background-color: rgba(27,31,35,.05);
6+
border-radius: 3px;
7+
font-size: 85%;
8+
margin: 0;
9+
padding: .2em .4em;
510
}
611

712
pre code {

0 commit comments

Comments
 (0)