fix no-highlight code color

This commit is contained in:
Thibault Kruse
2016-08-26 06:55:54 +02:00
parent 50d2480169
commit e974b7a18f
2 changed files with 3 additions and 2 deletions

View File

@@ -53,6 +53,7 @@
$("button")
.click(function( event ) {
$("pre code").toggleClass("cpp");
$("pre code").toggleClass("hljs");
$("pre code").toggleClass("no-highlight");
$("pre code").each(function(i, block) {
hljs.highlightBlock(block);

View File

@@ -150,10 +150,10 @@ pre {
code {
padding: .2em .2em;
font-size: 90%;
color: #bf616a;
background-color: #f9f9f9;
border-radius: 3px;
}
@media (max-width: 70em) {
code {
white-space: pre-wrap;
@@ -184,7 +184,7 @@ pre {
pre code {
padding: 0;
font-size: 100%;
color: inherit;
color: black;
background-color: transparent;
}