Skip to content

Commit 2d7ea6e

Browse files
committed
Improved markdown styles
1 parent 5141d48 commit 2d7ea6e

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

App/styles/main.less

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,22 @@ pre#Html {
125125
}
126126
}
127127

128+
pre code {
129+
display: block;
130+
padding: 16px;
131+
overflow: auto;
132+
font-size: 85%;
133+
line-height: 1.45;
134+
border-radius: 5px;
135+
}
136+
128137
code {
138+
max-width: 100%;
139+
overflow-y: hidden;
140+
overflow-x: auto;
129141
background-color: #e1e1e4;
130-
white-space: pre-wrap;
131-
word-break: break-all;
142+
padding: .2em .4em;
143+
margin: 0;
144+
font-size: 85%;
145+
border-radius: 5px;
132146
}

0 commit comments

Comments
 (0)