Skip to content

Commit 8b09efb

Browse files
authored
Merge pull request #36 from irfanfadilah/yohn/improve-code-rendering
Improve Code Rendering
2 parents 5486f69 + 37dac63 commit 8b09efb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scss/content/_code.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,20 @@
4848
#{$parent-selector} code,
4949
#{$parent-selector} kbd {
5050
display: inline-block;
51-
padding: 0.375rem;
51+
padding: 0.125rem 0.375rem;
52+
vertical-align: middle;
5253
}
5354

5455
#{$parent-selector} pre {
5556
display: block;
5657
margin-bottom: var(#{$css-var-prefix}spacing);
57-
overflow-x: auto;
5858

5959
> code {
6060
display: block;
6161
padding: var(#{$css-var-prefix}spacing);
6262
background: none;
6363
line-height: var(#{$css-var-prefix}line-height);
64+
overflow-x: auto;
6465
}
6566
}
6667

0 commit comments

Comments
 (0)