Code highlight: change to light theme

Closed #14
This commit is contained in:
Damien Vitrac 2019-08-20 11:39:33 +02:00 committed by Brian Clozel
parent 0303bcdf51
commit 792437b2c6
3 changed files with 9 additions and 9 deletions

View File

@ -53,7 +53,7 @@ function render() {
'sectnums',
'source-highlighter=highlight.js',
'highlightjsdir=js/highlight',
'highlightjs-theme=atom-one-dark-reasonable',
'highlightjs-theme=color-brewer',
'stylesdir=css',
'stylesheet=spring.css',
'docinfo=shared',

View File

@ -786,14 +786,14 @@ table.tableblock #preamble > .sectionbody > .paragraph:first-of-type p {
}
.literalblock pre, .listingblock pre:not(.highlight), .listingblock pre[class="highlight"], .listingblock pre[class^="highlight "], .listingblock pre.CodeRay, .listingblock pre.prettyprint {
background: #282c33;
color: #e6e1dc;
background: #f2f2f2;
color: #222;
border-radius: 4px;
}
.sidebarblock .literalblock pre, .sidebarblock .listingblock pre:not(.highlight), .sidebarblock .listingblock pre[class="highlight"], .sidebarblock .listingblock pre[class^="highlight "], .sidebarblock .listingblock pre.CodeRay, .sidebarblock .listingblock pre.prettyprint {
background: #282c33;
color: #e6e1dc;
background: #f2f2f2;
color: #222;
}
.literalblock pre, .literalblock pre[class], .listingblock pre, .listingblock pre[class], .listingblock pre:not(.highlight) {

View File

@ -257,11 +257,11 @@ h6 {
}
pre.highlight {
background: #232323;
background: #f2f2f2;
code {
color: #e6e1dc;
color: #222;
}
color: #e6e1dc;
color: #666;
border-radius: 4px;
}
@ -284,7 +284,7 @@ pre.highlight, #toc.toc2 {
.literalblock pre, .listingblock pre[class="highlight"], .highlight, pre, .highlight code, .highlight code span {
&::selection {
background: rgba(255, 255, 255, .2) !important;
background: rgba(0, 0, 0, .2) !important;
}
}