Skip to content

Commit

Permalink
Add highlight to code tag in generated API docs (crystal-lang#5795)
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota authored and RX14 committed Mar 9, 2018
1 parent 6696c88 commit 34b1101
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/compiler/crystal/tools/doc/html/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ html, body {
body {
font-family: "Avenir", "Tahoma", "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif;
color: #333;
line-height: 1.5;
}

a {
Expand Down Expand Up @@ -352,6 +353,13 @@ code {
font-family: Consolas, 'Courier New', Courier, Monaco, monospace;
}

:not(pre) > code {
background-color: rgba(40,35,30,0.05);
padding: 0.2em 0.4em;
font-size: 85%;
border-radius: 3px;
}

span.flag {
padding: 2px 4px 1px;
border-radius: 3px;
Expand Down

0 comments on commit 34b1101

Please sign in to comment.