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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

127 lines
2.0 KiB
SCSS
Raw Normal View History

2014-03-25 13:13:38 -04:00
/*
github.com style (c) Vasily Polovnyov <vast@whiteants.net>
*/
.hljs {
display: block;
padding: 0.5em;
color: var(--primary-very-high);
2014-03-25 13:13:38 -04:00
}
.hljs-comment,
.hljs-doctag {
color: var(--hljs-comment);
2014-03-25 13:13:38 -04:00
font-style: italic;
}
.hljs-keyword,
.javascript .hljs-title,
.nginx .hljs-title,
.hljs-subst,
.hljs-request,
.hljs-status {
color: var(--primary-very-high);
2014-03-25 13:13:38 -04:00
font-weight: bold;
}
.hljs-number,
.ruby .hljs-constant {
color: var(--hljs-number);
2014-03-25 13:13:38 -04:00
}
.hljs-string,
.hljs-tag .hljs-string,
2014-03-25 13:13:38 -04:00
.tex .hljs-formula {
color: var(--hljs-string);
2014-03-25 13:13:38 -04:00
}
.hljs-title,
.hljs-name,
2014-03-25 13:13:38 -04:00
.coffeescript .hljs-params,
.scss .hljs-meta {
color: var(--hljs-string);
2014-03-25 13:13:38 -04:00
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 {
color: var(--hljs-literal);
2014-03-25 13:13:38 -04:00
font-weight: bold;
}
.hljs-tag,
.hljs-tag .hljs-title,
.django .hljs-tag .hljs-keyword {
color: var(--hljs-tag);
2014-03-25 13:13:38 -04:00
font-weight: normal;
}
.hljs-attribute,
.css .hljs-keyword,
2014-03-25 13:13:38 -04:00
.hljs-variable,
.lisp .hljs-body {
color: var(--hljs-attribute);
2014-03-25 13:13:38 -04:00
}
.hljs-regexp {
color: var(--success);
2014-03-25 13:13:38 -04:00
}
.hljs-symbol,
.ruby .hljs-symbol .hljs-string,
.lisp .hljs-keyword,
.tex .hljs-special,
.hljs-prompt {
color: var(--hljs-symbol);
2014-03-25 13:13:38 -04:00
}
.hljs-built_in,
.lisp .hljs-title,
.clojure .hljs-built_in,
.hljs-builtin-name {
color: var(--tertiary-high);
2014-03-25 13:13:38 -04:00
}
.meta {
color: var(--primary-medium);
2014-03-25 13:13:38 -04:00
font-weight: bold;
}
.hljs-deletion {
background: var(--danger-low);
2014-03-25 13:13:38 -04:00
}
.hljs-addition {
background: var(--success-low);
2014-03-25 13:13:38 -04:00
}
.diff .hljs-meta {
color: var(--primary-low);
2013-10-21 16:55:16 -04:00
}
/*
--------------------------------------------------------------------------------
| SHOULD NOT BE REMOVED |
--------------------------------------------------------------------------------
*/
p > code,
li > code,
pre > code {
color: var(--primary-very-high);
background: var(--hljs-bg);
}
// removed some unnecessary styles here