Skip to content

Commit 9fbfa14

Browse files
authored
Merge pull request #144 from budziq/link_highlight
Inline code with hyperlink is now highlighted
2 parents e968dd0 + 2991cbd commit 9fbfa14

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

theme/book.css

+18
Original file line numberDiff line numberDiff line change
@@ -833,6 +833,24 @@ table td:nth-child(2){
833833
width: 20%;
834834
}
835835

836+
/* hide only the playground button */
836837
i.fa.fa-play.play-button {
837838
display: none;
838839
}
840+
841+
/* underline hyperlinked inline code items */
842+
a:hover > .hljs {
843+
text-decoration: underline;
844+
}
845+
846+
/* color hyperlinked inline code items
847+
identically to normal links */
848+
.rust a > .hljs,
849+
.navy a > .hljs,
850+
.coal a > .hljs{
851+
color: #2b79a2;
852+
}
853+
854+
.light a > .hljs {
855+
color: #4183c4;
856+
}

0 commit comments

Comments
 (0)