Skip to content

Commit 34b1101

Browse files
straight-shootaRX14
authored andcommittedMar 9, 2018
Add highlight to code tag in generated API docs (#5795)
1 parent 6696c88 commit 34b1101

File tree

1 file changed

+8
-0
lines changed
  • src/compiler/crystal/tools/doc/html/css

1 file changed

+8
-0
lines changed
 

‎src/compiler/crystal/tools/doc/html/css/style.css

+8
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ html, body {
1010
body {
1111
font-family: "Avenir", "Tahoma", "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif;
1212
color: #333;
13+
line-height: 1.5;
1314
}
1415

1516
a {
@@ -352,6 +353,13 @@ code {
352353
font-family: Consolas, 'Courier New', Courier, Monaco, monospace;
353354
}
354355

356+
:not(pre) > code {
357+
background-color: rgba(40,35,30,0.05);
358+
padding: 0.2em 0.4em;
359+
font-size: 85%;
360+
border-radius: 3px;
361+
}
362+
355363
span.flag {
356364
padding: 2px 4px 1px;
357365
border-radius: 3px;

0 commit comments

Comments
 (0)