Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inline code with hyperlink is now highlighted #289

Merged
merged 1 commit into from
May 20, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 20 additions & 11 deletions src/theme/book.css
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,6 @@ table thead td {
position: relative;
left: 10px;
z-index: 1000;
-webkit-border-radius: 4px;
border-radius: 4px;
font-size: 0.7em;
}
Expand Down Expand Up @@ -295,7 +294,6 @@ table thead td {
position: relative;
display: inline-block;
margin-bottom: 50px;
-webkit-border-radius: 5px;
border-radius: 5px;
}
.next {
Expand Down Expand Up @@ -357,7 +355,8 @@ table thead td {
background-color: #fafafa;
}
.light .content a:link,
.light a:visited {
.light a:visited,
.light a > .hljs {
color: #4183c4;
}
.light .theme-popup {
Expand Down Expand Up @@ -398,9 +397,11 @@ table thead td {
display: inline-block;
vertical-align: middle;
padding: 0.1em 0.3em;
-webkit-border-radius: 3px;
border-radius: 3px;
}
.light a:hover > .hljs {
text-decoration: underline;
}
.light pre {
position: relative;
}
Expand Down Expand Up @@ -472,7 +473,8 @@ table thead td {
background-color: #292c2f;
}
.coal .content a:link,
.coal a:visited {
.coal a:visited,
.coal a > .hljs {
color: #2b79a2;
}
.coal .theme-popup {
Expand Down Expand Up @@ -513,9 +515,11 @@ table thead td {
display: inline-block;
vertical-align: middle;
padding: 0.1em 0.3em;
-webkit-border-radius: 3px;
border-radius: 3px;
}
.coal a:hover > .hljs {
text-decoration: underline;
}
.coal pre {
position: relative;
}
Expand Down Expand Up @@ -587,7 +591,8 @@ table thead td {
background-color: #282d3f;
}
.navy .content a:link,
.navy a:visited {
.navy a:visited,
.navy a > .hljs {
color: #2b79a2;
}
.navy .theme-popup {
Expand Down Expand Up @@ -628,9 +633,11 @@ table thead td {
display: inline-block;
vertical-align: middle;
padding: 0.1em 0.3em;
-webkit-border-radius: 3px;
border-radius: 3px;
}
.navy a:hover > .hljs {
text-decoration: underline;
}
.navy pre {
position: relative;
}
Expand Down Expand Up @@ -702,7 +709,8 @@ table thead td {
background-color: #3b2e2a;
}
.rust .content a:link,
.rust a:visited {
.rust a:visited,
.rust a > .hljs {
color: #2b79a2;
}
.rust .theme-popup {
Expand Down Expand Up @@ -743,9 +751,11 @@ table thead td {
display: inline-block;
vertical-align: middle;
padding: 0.1em 0.3em;
-webkit-border-radius: 3px;
border-radius: 3px;
}
.rust a:hover > .hljs {
text-decoration: underline;
}
.rust pre {
position: relative;
}
Expand Down Expand Up @@ -786,7 +796,6 @@ table thead td {
}
code {
background-color: #666;
-webkit-border-radius: 5px;
border-radius: 5px;
/* Force background to be printed in Chrome */
-webkit-print-color-adjust: exact;
Expand Down
6 changes: 5 additions & 1 deletion src/theme/stylus/themes/base.styl
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
background-color: $sidebar-bg
}

.content a:link, a:visited {
.content a:link, a:visited, a > .hljs {
color: $links
}

Expand Down Expand Up @@ -107,6 +107,10 @@
border-radius: 3px;
}

a:hover > .hljs {
text-decoration: underline;
}

pre {
position: relative;

Expand Down