discourse/app/assets/stylesheets/common/base/code_highlighting.scss

126 lines
2.0 KiB
SCSS
Raw Normal View History

2014-03-26 01:13:38 +08:00
/*
github.com style (c) Vasily Polovnyov <vast@whiteants.net>
*/
.hljs {
display: block;
padding: 0.5em;
color: dark-light-choose(#333, #f8f8f8);
2014-03-26 01:13:38 +08:00
}
.hljs-comment,
2016-04-01 05:33:25 +08:00
.hljs-doctag {
2015-08-19 06:02:41 +08:00
color: dark-light-choose(#998, #bba);
2014-03-26 01:13:38 +08:00
font-style: italic;
}
.hljs-keyword,
.javascript .hljs-title,
.nginx .hljs-title,
.hljs-subst,
.hljs-request,
.hljs-status {
color: dark-light-choose(#333, #f8f8f8);
2014-03-26 01:13:38 +08:00
font-weight: bold;
}
.hljs-number,
.ruby .hljs-constant {
2015-08-19 06:02:41 +08:00
color: dark-light-choose(#099, #aff);
2014-03-26 01:13:38 +08:00
}
.hljs-string,
2016-04-01 05:33:25 +08:00
.hljs-tag .hljs-string,
2014-03-26 01:13:38 +08:00
.tex .hljs-formula {
2015-08-19 06:02:41 +08:00
color: dark-light-choose(#d14, #f99);
2014-03-26 01:13:38 +08:00
}
.hljs-title,
2016-04-01 05:33:25 +08:00
.hljs-name,
2014-03-26 01:13:38 +08:00
.coffeescript .hljs-params,
2016-04-01 05:33:25 +08:00
.scss .hljs-meta {
2014-03-26 01:13:38 +08:00
color: #900;
font-weight: bold;
}
.javascript .hljs-title,
.lisp .hljs-title,
.clojure .hljs-title,
.hljs-subst {
font-weight: normal;
}
.hljs-class .hljs-title,
.haskell .hljs-type,
.vhdl .hljs-literal,
.tex .hljs-command {
2015-08-19 06:02:41 +08:00
color: dark-light-choose(#458, #9AE);
2014-03-26 01:13:38 +08:00
font-weight: bold;
}
.hljs-tag,
.hljs-tag .hljs-title,
.django .hljs-tag .hljs-keyword {
color: dark-light-choose(#000080, #99f);
2014-03-26 01:13:38 +08:00
font-weight: normal;
}
.hljs-attribute,
2016-04-01 05:33:25 +08:00
.css .hljs-keyword,
2014-03-26 01:13:38 +08:00
.hljs-variable,
.lisp .hljs-body {
color: dark-light-choose(#008080, #0ee);
2014-03-26 01:13:38 +08:00
}
.hljs-regexp {
color: #009926;
}
.hljs-symbol,
.ruby .hljs-symbol .hljs-string,
.lisp .hljs-keyword,
.tex .hljs-special,
.hljs-prompt {
2015-08-19 06:02:41 +08:00
color: dark-light-choose(#990073, #fbe);
2014-03-26 01:13:38 +08:00
}
.hljs-built_in,
.lisp .hljs-title,
2016-04-01 05:33:25 +08:00
.clojure .hljs-built_in,
.hljs-builtin-name {
2014-03-26 01:13:38 +08:00
color: #0086b3;
}
2016-04-01 05:33:25 +08:00
.meta {
2014-03-26 01:13:38 +08:00
color: #999;
font-weight: bold;
}
.hljs-deletion {
background: #fdd;
}
.hljs-addition {
background: #dfd;
}
2016-04-01 05:33:25 +08:00
.diff .hljs-meta {
2014-03-26 01:13:38 +08:00
color: #aaa;
2013-10-22 04:55:16 +08:00
}
/*
--------------------------------------------------------------------------------
| SHOULD NOT BE REMOVED |
--------------------------------------------------------------------------------
*/
p > code, li > code, pre > code {
color: dark-light-choose(#333, #f8f8f8);
background: dark-light-choose(#f8f8f8, #333);
}
// removed some unnecessary styles here