This commit is contained in:
Hakim El Hattab 2014-03-25 16:42:55 +01:00
commit b8157a1e91
3 changed files with 80 additions and 76 deletions

View File

@ -412,7 +412,10 @@ function linkify( selector ) {
{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } }, { src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } }, { src: 'plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } }, { src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } }, { src: 'plugin/highlight/highlight.js', async: true, callback: function() {
hljs.configure({languages:['js','html']}); // limit language detection to what's in the presentation
hljs.initHighlightingOnLoad();
} },
{ src: 'plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } }, { src: 'plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
{ src: 'plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } } { src: 'plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }
] ]

View File

@ -5,110 +5,113 @@ based on dark.css by Ivan Sagalaev
*/ */
pre code { .hljs {
display: block; padding: 0.5em; display: block; padding: 0.5em;
background: #3F3F3F; background: #3F3F3F;
color: #DCDCDC; color: #DCDCDC;
} }
pre .keyword, .hljs-keyword,
pre .tag, .hljs-tag,
pre .css .class, .css .hljs-class,
pre .css .id, .css .hljs-id,
pre .lisp .title, .lisp .hljs-title,
pre .nginx .title, .nginx .hljs-title,
pre .request, .hljs-request,
pre .status, .hljs-status,
pre .clojure .attribute { .clojure .hljs-attribute {
color: #E3CEAB; color: #E3CEAB;
} }
pre .django .template_tag, .django .hljs-template_tag,
pre .django .variable, .django .hljs-variable,
pre .django .filter .argument { .django .hljs-filter .hljs-argument {
color: #DCDCDC; color: #DCDCDC;
} }
pre .number, .hljs-number,
pre .date { .hljs-date {
color: #8CD0D3; color: #8CD0D3;
} }
pre .dos .envvar, .dos .hljs-envvar,
pre .dos .stream, .dos .hljs-stream,
pre .variable, .hljs-variable,
pre .apache .sqbracket { .apache .hljs-sqbracket {
color: #EFDCBC; color: #EFDCBC;
} }
pre .dos .flow, .dos .hljs-flow,
pre .diff .change, .diff .hljs-change,
pre .python .exception, .python .exception,
pre .python .built_in, .python .hljs-built_in,
pre .literal, .hljs-literal,
pre .tex .special { .tex .hljs-special {
color: #EFEFAF; color: #EFEFAF;
} }
pre .diff .chunk, .diff .hljs-chunk,
pre .subst { .hljs-subst {
color: #8F8F8F; color: #8F8F8F;
} }
pre .dos .keyword, .dos .hljs-keyword,
pre .python .decorator, .python .hljs-decorator,
pre .title, .hljs-title,
pre .haskell .type, .haskell .hljs-type,
pre .diff .header, .diff .hljs-header,
pre .ruby .class .parent, .ruby .hljs-class .hljs-parent,
pre .apache .tag, .apache .hljs-tag,
pre .nginx .built_in, .nginx .hljs-built_in,
pre .tex .command, .tex .hljs-command,
pre .prompt { .hljs-prompt {
color: #efef8f; color: #efef8f;
} }
pre .dos .winutils, .dos .hljs-winutils,
pre .ruby .symbol, .ruby .hljs-symbol,
pre .ruby .symbol .string, .ruby .hljs-symbol .hljs-string,
pre .ruby .string { .ruby .hljs-string {
color: #DCA3A3; color: #DCA3A3;
} }
pre .diff .deletion, .diff .hljs-deletion,
pre .string, .hljs-string,
pre .tag .value, .hljs-tag .hljs-value,
pre .preprocessor, .hljs-preprocessor,
pre .built_in, .hljs-pragma,
pre .sql .aggregate, .hljs-built_in,
pre .javadoc, .sql .hljs-aggregate,
pre .smalltalk .class, .hljs-javadoc,
pre .smalltalk .localvars, .smalltalk .hljs-class,
pre .smalltalk .array, .smalltalk .hljs-localvars,
pre .css .rules .value, .smalltalk .hljs-array,
pre .attr_selector, .css .hljs-rules .hljs-value,
pre .pseudo, .hljs-attr_selector,
pre .apache .cbracket, .hljs-pseudo,
pre .tex .formula { .apache .hljs-cbracket,
.tex .hljs-formula,
.coffeescript .hljs-attribute {
color: #CC9393; color: #CC9393;
} }
pre .shebang, .hljs-shebang,
pre .diff .addition, .diff .hljs-addition,
pre .comment, .hljs-comment,
pre .java .annotation, .java .hljs-annotation,
pre .template_comment, .hljs-template_comment,
pre .pi, .hljs-pi,
pre .doctype { .hljs-doctype {
color: #7F9F7F; color: #7F9F7F;
} }
pre .coffeescript .javascript, .coffeescript .javascript,
pre .javascript .xml, .javascript .xml,
pre .tex .formula, .tex .hljs-formula,
pre .xml .javascript, .xml .javascript,
pre .xml .vbscript, .xml .vbscript,
pre .xml .css, .xml .css,
pre .xml .cdata { .xml .hljs-cdata {
opacity: 0.5; opacity: 0.5;
} }

File diff suppressed because one or more lines are too long