Skip to content

Commit 6dce70b

Browse files
committed
Merge pull request github#427 from jacobbednarz/update-code-blocks-to-use-correct-monospace-font
Add the default monospace font stack for <code> elements
2 parents 373d118 + 10d0f78 commit 6dce70b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

static/shared/css/documentation.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,6 @@ div.sidebar-module ul ul li span {
10551055
.content dl code,
10561056
.content ul code,
10571057
p code {
1058-
font: 12px Monaco,"Courier New","DejaVu Sans Mono","Bitstream Vera Sans Mono",monospace;
10591058
-webkit-border-radius: 3px;
10601059
-moz-border-radius: 3px;
10611060
border-radius: 3px;
@@ -1193,12 +1192,15 @@ body.api .content table td {
11931192
Pre/Code Styles
11941193
------------------------------------------------------------------------------*/
11951194

1196-
code {white-space: nowrap;}
1195+
code {
1196+
white-space: nowrap;
1197+
font: 12px Consolas, 'Liberation Mono', Courier, monospace;
1198+
}
11971199

11981200
pre {
11991201
border: 1px solid #cacaca;
12001202
line-height: 1.2em;
1201-
font: 12px Monaco,"Courier New","DejaVu Sans Mono","Bitstream Vera Sans Mono",monospace;
1203+
font: 12px Consolas, 'Liberation Mono', Courier, monospace;
12021204
padding: 10px;
12031205
overflow:auto;
12041206
-webkit-border-radius: 3px;

0 commit comments

Comments
 (0)