Skip to content

Commit eb108e0

Browse files
improved the styling for inline code
1 parent 2786a77 commit eb108e0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

_sass/code.scss

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
code, pre {
22
margin-bottom: $medium-vertical-space;
33
font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
4-
font-size: 13px;
4+
font-size: smaller;
55
color: $darkest-grey;
66
}
77

88
code {
9-
padding: 0 $tiny-horizontal-space;
9+
padding: $tiny-vertical-space $tiny-horizontal-space;
1010
background-color: $code-bg;
1111
border: solid 1px $code-border;
12+
white-space: nowrap;
1213
}
1314

1415
pre {
@@ -19,9 +20,10 @@ pre {
1920
border: solid 1px $code-border;
2021

2122
code {
22-
padding: 0;
2323
color: $medium-blue;
2424
background-color: $code-bg;
25+
padding: 0;
2526
border: none;
27+
white-space: pre;
2628
}
2729
}

0 commit comments

Comments
 (0)