From 2991cbd3399ddbeef0212f3bb9f2855f2f8fdb90 Mon Sep 17 00:00:00 2001 From: Michal Budzynski Date: Sat, 20 May 2017 08:50:16 +0200 Subject: [PATCH] Inline code with hyperlink is now highlighted Inline code with hyperlink has now the same color and on hover underline as standard hyperlink. --- theme/book.css | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/theme/book.css b/theme/book.css index b79b7245..7d2480a2 100644 --- a/theme/book.css +++ b/theme/book.css @@ -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; +}