use less saturated color highlighter color scheme
This commit is contained in:
parent
894a7d9f9a
commit
7b725ccc58
2 changed files with 19 additions and 17 deletions
|
@ -91,17 +91,17 @@ pre > div{
|
||||||
.categoryList:not(.blurred)+.categoryList,
|
.categoryList:not(.blurred)+.categoryList,
|
||||||
.hidden{ display: none !important }
|
.hidden{ display: none !important }
|
||||||
|
|
||||||
.comment{ color: rgb(50,180,20) }
|
.comment{ color: rgb(50,180,90) }
|
||||||
.selector{ color: palegoldenrod }
|
.selector{ color: silver }
|
||||||
.pseudo{ color: silver }
|
.pseudo{ color: silver }
|
||||||
.id{ color: lightcoral }
|
.id{ color: rgb(240, 148, 138) }
|
||||||
.class{ color: lightgreen }
|
.class{ color: skyblue }
|
||||||
.attribute{ color: cyan }
|
.attribute{ color: rgb(210,120,190) }
|
||||||
.atrule{ color: mediumslateblue }
|
.atrule{ color: lime }
|
||||||
.atvalue{ color: lightblue }
|
.atvalue{ color: lightblue }
|
||||||
.property{ color: orange }
|
.property{ color: palegoldenrod }
|
||||||
.value{ color: skyblue }
|
.value{ color: skyblue }
|
||||||
.curly{ color: orangered }
|
.curly{ color: magenta }
|
||||||
|
|
||||||
@keyframes showDelayed{ from{ visibility: hidden } to{ visibility: visibile }}
|
@keyframes showDelayed{ from{ visibility: hidden } to{ visibility: visibile }}
|
||||||
|
|
||||||
|
|
|
@ -35,10 +35,10 @@ function fetchWithType(url){
|
||||||
}
|
}
|
||||||
if(ext === "json"){
|
if(ext === "json"){
|
||||||
response.json()
|
response.json()
|
||||||
.then(r=>resolve(r))
|
.then(resolve)
|
||||||
}else{
|
}else{
|
||||||
response.text()
|
response.text()
|
||||||
.then(r=>resolve(r))
|
.then(resolve)
|
||||||
|
|
||||||
}
|
}
|
||||||
},except => reject(except))
|
},except => reject(except))
|
||||||
|
@ -458,12 +458,14 @@ async function handleSearchQuery(){
|
||||||
}
|
}
|
||||||
|
|
||||||
const codeBlock = document.querySelector("pre");
|
const codeBlock = document.querySelector("pre");
|
||||||
let composedText = "";
|
const promises = files.map(file=>fetchWithType(`chrome/${file}`).catch(e=>""));
|
||||||
for(let file of files){
|
|
||||||
composedText += await fetchWithType(`chrome/${file}`);
|
Promise.all(promises)
|
||||||
composedText += "\n";
|
.then(responses => {
|
||||||
}
|
|
||||||
Highlighter.parse(codeBlock,composedText)
|
Highlighter.parse(codeBlock,responses.join("\n\n/*************************************/\n\n"))
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue