updated higlightjs, fixes for code blocks, code block style changes

This commit is contained in:
jomo
2015-01-25 16:30:58 +01:00
parent eb7892ebe4
commit c71df8193d
5 changed files with 13 additions and 11 deletions

View File

@@ -36,7 +36,7 @@ $(function(){
});
$('pre code').each(function() {
if ($(this).attr("class")) {
$(this).parent().attr("lang", $(this).attr("class").replace("hljs", "").trim());
$(this).parent().attr("lang", $(this).attr("class").replace("hljs", "").toLowerCase().trim());
} else {
$(this).parent().attr("lang", "(language unknown)");
}

View File

@@ -2,5 +2,5 @@
*= require_self
*= require style.css
*= require mobi.css
*= require highlight/tomorrow-night.css
*= require highlight/default.css
*/

View File

@@ -344,9 +344,9 @@ pre {
background: #3f3f3f;
&:after {
color: #fff;
content: attr(lang); // show language on top right
font-style: italic;
text-transform: capitalize;
margin: 4px 10px;
position: absolute;
right: -10px;
@@ -365,10 +365,7 @@ pre {
code {
display: block;
padding: 0.5em;
color: #C5C8C6; //hljs
box-shadow: 0 0 16px #222 inset;
background: #3f3f3f !important;
border: none;
border: 1px solid #ccc;
border-radius: 3px;
overflow-x: auto;
}