Merge pull request #289 from budziq/highlight

Inline code with hyperlink is now highlighted
This commit is contained in:
Mathieu David 2017-05-20 17:27:56 +02:00 committed by GitHub
commit 3f98d69690
2 changed files with 25 additions and 12 deletions

View File

@ -258,7 +258,6 @@ table thead td {
position: relative; position: relative;
left: 10px; left: 10px;
z-index: 1000; z-index: 1000;
-webkit-border-radius: 4px;
border-radius: 4px; border-radius: 4px;
font-size: 0.7em; font-size: 0.7em;
} }
@ -295,7 +294,6 @@ table thead td {
position: relative; position: relative;
display: inline-block; display: inline-block;
margin-bottom: 50px; margin-bottom: 50px;
-webkit-border-radius: 5px;
border-radius: 5px; border-radius: 5px;
} }
.next { .next {
@ -357,7 +355,8 @@ table thead td {
background-color: #fafafa; background-color: #fafafa;
} }
.light .content a:link, .light .content a:link,
.light a:visited { .light a:visited,
.light a > .hljs {
color: #4183c4; color: #4183c4;
} }
.light .theme-popup { .light .theme-popup {
@ -398,9 +397,11 @@ table thead td {
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
padding: 0.1em 0.3em; padding: 0.1em 0.3em;
-webkit-border-radius: 3px;
border-radius: 3px; border-radius: 3px;
} }
.light a:hover > .hljs {
text-decoration: underline;
}
.light pre { .light pre {
position: relative; position: relative;
} }
@ -472,7 +473,8 @@ table thead td {
background-color: #292c2f; background-color: #292c2f;
} }
.coal .content a:link, .coal .content a:link,
.coal a:visited { .coal a:visited,
.coal a > .hljs {
color: #2b79a2; color: #2b79a2;
} }
.coal .theme-popup { .coal .theme-popup {
@ -513,9 +515,11 @@ table thead td {
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
padding: 0.1em 0.3em; padding: 0.1em 0.3em;
-webkit-border-radius: 3px;
border-radius: 3px; border-radius: 3px;
} }
.coal a:hover > .hljs {
text-decoration: underline;
}
.coal pre { .coal pre {
position: relative; position: relative;
} }
@ -587,7 +591,8 @@ table thead td {
background-color: #282d3f; background-color: #282d3f;
} }
.navy .content a:link, .navy .content a:link,
.navy a:visited { .navy a:visited,
.navy a > .hljs {
color: #2b79a2; color: #2b79a2;
} }
.navy .theme-popup { .navy .theme-popup {
@ -628,9 +633,11 @@ table thead td {
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
padding: 0.1em 0.3em; padding: 0.1em 0.3em;
-webkit-border-radius: 3px;
border-radius: 3px; border-radius: 3px;
} }
.navy a:hover > .hljs {
text-decoration: underline;
}
.navy pre { .navy pre {
position: relative; position: relative;
} }
@ -702,7 +709,8 @@ table thead td {
background-color: #3b2e2a; background-color: #3b2e2a;
} }
.rust .content a:link, .rust .content a:link,
.rust a:visited { .rust a:visited,
.rust a > .hljs {
color: #2b79a2; color: #2b79a2;
} }
.rust .theme-popup { .rust .theme-popup {
@ -743,9 +751,11 @@ table thead td {
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
padding: 0.1em 0.3em; padding: 0.1em 0.3em;
-webkit-border-radius: 3px;
border-radius: 3px; border-radius: 3px;
} }
.rust a:hover > .hljs {
text-decoration: underline;
}
.rust pre { .rust pre {
position: relative; position: relative;
} }
@ -786,7 +796,6 @@ table thead td {
} }
code { code {
background-color: #666; background-color: #666;
-webkit-border-radius: 5px;
border-radius: 5px; border-radius: 5px;
/* Force background to be printed in Chrome */ /* Force background to be printed in Chrome */
-webkit-print-color-adjust: exact; -webkit-print-color-adjust: exact;

View File

@ -56,7 +56,7 @@
background-color: $sidebar-bg background-color: $sidebar-bg
} }
.content a:link, a:visited { .content a:link, a:visited, a > .hljs {
color: $links color: $links
} }
@ -107,6 +107,10 @@
border-radius: 3px; border-radius: 3px;
} }
a:hover > .hljs {
text-decoration: underline;
}
pre { pre {
position: relative; position: relative;