Skip to content

Commit

Permalink
Merge pull request #144 from budziq/link_highlight
Browse files Browse the repository at this point in the history
Inline code with hyperlink is now highlighted
  • Loading branch information
dtolnay authored May 20, 2017
2 parents e968dd0 + 2991cbd commit 9fbfa14
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions theme/book.css
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,24 @@ table td:nth-child(2){
width: 20%;
}

/* hide only the playground button */
i.fa.fa-play.play-button {
display: none;
}

/* underline hyperlinked inline code items */
a:hover > .hljs {
text-decoration: underline;
}

/* color hyperlinked inline code items
identically to normal links */
.rust a > .hljs,
.navy a > .hljs,
.coal a > .hljs{
color: #2b79a2;
}

.light a > .hljs {
color: #4183c4;
}

0 comments on commit 9fbfa14

Please sign in to comment.