Andrew Tomaka
6933084926
Line numbers are not supported by highlight.js. This is hacked in through JavaScript. At page load, the number of new line characters are counted in the code element. Then, JavaScript loops through and adds a number and line break to an empty div that is floated left. This gives the appearence of line numbers.
150 lines
2.5 KiB
CSS
150 lines
2.5 KiB
CSS
/*
|
|
|
|
Original style from softwaremaniacs.org (c) Ivan Sagalaev <Maniac@SoftwareManiacs.Org>
|
|
|
|
*/
|
|
|
|
.hljs {
|
|
display: block;
|
|
background: #f0f0f0;
|
|
}
|
|
|
|
.hljs,
|
|
.hljs-subst,
|
|
.hljs-tag .hljs-title,
|
|
.lisp .hljs-title,
|
|
.clojure .hljs-built_in,
|
|
.nginx .hljs-title {
|
|
color: black;
|
|
}
|
|
|
|
.hljs-string,
|
|
.hljs-title,
|
|
.hljs-constant,
|
|
.hljs-parent,
|
|
.hljs-tag .hljs-value,
|
|
.hljs-rules .hljs-value,
|
|
.hljs-preprocessor,
|
|
.hljs-pragma,
|
|
.haml .hljs-symbol,
|
|
.ruby .hljs-symbol,
|
|
.ruby .hljs-symbol .hljs-string,
|
|
.hljs-template_tag,
|
|
.django .hljs-variable,
|
|
.smalltalk .hljs-class,
|
|
.hljs-addition,
|
|
.hljs-flow,
|
|
.hljs-stream,
|
|
.bash .hljs-variable,
|
|
.apache .hljs-tag,
|
|
.apache .hljs-cbracket,
|
|
.tex .hljs-command,
|
|
.tex .hljs-special,
|
|
.erlang_repl .hljs-function_or_atom,
|
|
.asciidoc .hljs-header,
|
|
.markdown .hljs-header,
|
|
.coffeescript .hljs-attribute {
|
|
color: #800;
|
|
}
|
|
|
|
.smartquote,
|
|
.hljs-comment,
|
|
.hljs-annotation,
|
|
.hljs-template_comment,
|
|
.diff .hljs-header,
|
|
.hljs-chunk,
|
|
.asciidoc .hljs-blockquote,
|
|
.markdown .hljs-blockquote {
|
|
color: #888;
|
|
}
|
|
|
|
.hljs-number,
|
|
.hljs-date,
|
|
.hljs-regexp,
|
|
.hljs-literal,
|
|
.hljs-hexcolor,
|
|
.smalltalk .hljs-symbol,
|
|
.smalltalk .hljs-char,
|
|
.go .hljs-constant,
|
|
.hljs-change,
|
|
.lasso .hljs-variable,
|
|
.makefile .hljs-variable,
|
|
.asciidoc .hljs-bullet,
|
|
.markdown .hljs-bullet,
|
|
.asciidoc .hljs-link_url,
|
|
.markdown .hljs-link_url {
|
|
color: #080;
|
|
}
|
|
|
|
.hljs-label,
|
|
.hljs-javadoc,
|
|
.ruby .hljs-string,
|
|
.hljs-decorator,
|
|
.hljs-filter .hljs-argument,
|
|
.hljs-localvars,
|
|
.hljs-array,
|
|
.hljs-attr_selector,
|
|
.hljs-important,
|
|
.hljs-pseudo,
|
|
.hljs-pi,
|
|
.haml .hljs-bullet,
|
|
.hljs-doctype,
|
|
.hljs-deletion,
|
|
.hljs-envvar,
|
|
.hljs-shebang,
|
|
.apache .hljs-sqbracket,
|
|
.nginx .hljs-built_in,
|
|
.tex .hljs-formula,
|
|
.erlang_repl .hljs-reserved,
|
|
.hljs-prompt,
|
|
.asciidoc .hljs-link_label,
|
|
.markdown .hljs-link_label,
|
|
.vhdl .hljs-attribute,
|
|
.clojure .hljs-attribute,
|
|
.asciidoc .hljs-attribute,
|
|
.lasso .hljs-attribute,
|
|
.coffeescript .hljs-property,
|
|
.hljs-phony {
|
|
color: #88f;
|
|
}
|
|
|
|
.hljs-keyword,
|
|
.hljs-id,
|
|
.hljs-title,
|
|
.hljs-built_in,
|
|
.css .hljs-tag,
|
|
.hljs-javadoctag,
|
|
.hljs-phpdoc,
|
|
.hljs-yardoctag,
|
|
.smalltalk .hljs-class,
|
|
.hljs-winutils,
|
|
.bash .hljs-variable,
|
|
.apache .hljs-tag,
|
|
.go .hljs-typename,
|
|
.tex .hljs-command,
|
|
.asciidoc .hljs-strong,
|
|
.markdown .hljs-strong,
|
|
.hljs-request,
|
|
.hljs-status {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.asciidoc .hljs-emphasis,
|
|
.markdown .hljs-emphasis {
|
|
font-style: italic;
|
|
}
|
|
|
|
.nginx .hljs-built_in {
|
|
font-weight: normal;
|
|
}
|
|
|
|
.coffeescript .javascript,
|
|
.javascript .xml,
|
|
.lasso .markup,
|
|
.tex .hljs-formula,
|
|
.xml .javascript,
|
|
.xml .vbscript,
|
|
.xml .css,
|
|
.xml .hljs-cdata {
|
|
opacity: 0.5;
|
|
}
|