2014-12-03 09:27:31 -05:00
|
|
|
/* https://github.com/richleland/pygments-css/blob/master/monokai.css */
|
2016-11-30 08:25:25 -05:00
|
|
|
|
2019-02-21 19:58:37 -05:00
|
|
|
@import "../common";
|
2019-02-14 01:54:34 -05:00
|
|
|
|
2016-11-30 08:25:25 -05:00
|
|
|
/*
|
|
|
|
* Monokai Colors
|
|
|
|
*/
|
|
|
|
$monokai-bg: #272822;
|
|
|
|
$monokai-border: #555;
|
|
|
|
$monokai-text-color: #f8f8f2;
|
|
|
|
$monokai-line-num-color: rgba(255, 255, 255, 0.3);
|
2017-01-25 10:03:14 -05:00
|
|
|
$monokai-line-num-color-new: #707565;
|
|
|
|
$monokai-line-num-color-old: #7e736f;
|
2016-11-30 08:25:25 -05:00
|
|
|
$monokai-line-empty-bg: #49483e;
|
|
|
|
$monokai-line-empty-border: darken($monokai-line-empty-bg, 15%);
|
|
|
|
$monokai-diff-border: #808080;
|
|
|
|
$monokai-highlight-bg: #ffe792;
|
2017-02-23 04:09:08 -05:00
|
|
|
$monokai-over-bg: #9f9ab5;
|
2017-02-24 09:56:20 -05:00
|
|
|
$monokai-expanded-bg: #3e3e3e;
|
2016-11-30 08:25:25 -05:00
|
|
|
|
|
|
|
$monokai-new-bg: rgba(166, 226, 46, 0.1);
|
|
|
|
$monokai-new-idiff: rgba(166, 226, 46, 0.15);
|
|
|
|
|
|
|
|
$monokai-old-bg: rgba(254, 147, 140, 0.15);
|
|
|
|
$monokai-old-idiff: rgba(254, 147, 140, 0.2);
|
|
|
|
|
|
|
|
$monokai-hll: #49483e;
|
|
|
|
$monokai-c: #75715e;
|
|
|
|
$monokai-err-color: #960050;
|
|
|
|
$monokai-err-bg: #1e0010;
|
|
|
|
$monokai-k: #66d9ef;
|
|
|
|
$monokai-l: #ae81ff;
|
|
|
|
$monokai-n: #f8f8f2;
|
|
|
|
$monokai-o: #f92672;
|
|
|
|
$monokai-p: #f8f8f2;
|
|
|
|
$monokai-cm: #75715e;
|
|
|
|
$monokai-cp: #75715e;
|
|
|
|
$monokai-c1: #75715e;
|
|
|
|
$monokai-cs: #75715e;
|
|
|
|
$monokai-kc: #66d9ef;
|
|
|
|
$monokai-kd: #66d9ef;
|
|
|
|
$monokai-kn: #f92672;
|
|
|
|
$monokai-kp: #66d9ef;
|
|
|
|
$monokai-kr: #66d9ef;
|
|
|
|
$monokai-kt: #66d9ef;
|
|
|
|
$monokai-ld: #e6db74;
|
|
|
|
$monokai-m: #ae81ff;
|
|
|
|
$monokai-s: #e6db74;
|
|
|
|
$monokai-na: #a6e22e;
|
|
|
|
$monokai-nb: #f8f8f2;
|
|
|
|
$monokai-nc: #a6e22e;
|
|
|
|
$monokai-no: #66d9ef;
|
|
|
|
$monokai-nd: #a6e22e;
|
|
|
|
$monokai-ni: #f8f8f2;
|
|
|
|
$monokai-ne: #a6e22e;
|
|
|
|
$monokai-nf: #a6e22e;
|
|
|
|
$monokai-nl: #f8f8f2;
|
|
|
|
$monokai-nn: #f8f8f2;
|
|
|
|
$monokai-nx: #a6e22e;
|
|
|
|
$monokai-py: #f8f8f2;
|
|
|
|
$monokai-nt: #f92672;
|
|
|
|
$monokai-nv: #f8f8f2;
|
|
|
|
$monokai-ow: #f92672;
|
|
|
|
$monokai-w: #f8f8f2;
|
|
|
|
$monokai-mf: #ae81ff;
|
|
|
|
$monokai-mh: #ae81ff;
|
|
|
|
$monokai-mi: #ae81ff;
|
|
|
|
$monokai-mo: #ae81ff;
|
|
|
|
$monokai-sb: #e6db74;
|
|
|
|
$monokai-sc: #e6db74;
|
|
|
|
$monokai-sd: #e6db74;
|
|
|
|
$monokai-s2: #e6db74;
|
|
|
|
$monokai-se: #ae81ff;
|
|
|
|
$monokai-sh: #e6db74;
|
|
|
|
$monokai-si: #e6db74;
|
|
|
|
$monokai-sx: #e6db74;
|
|
|
|
$monokai-sr: #e6db74;
|
|
|
|
$monokai-s1: #e6db74;
|
|
|
|
$monokai-ss: #e6db74;
|
|
|
|
$monokai-bp: #f8f8f2;
|
|
|
|
$monokai-vc: #f8f8f2;
|
|
|
|
$monokai-vg: #f8f8f2;
|
|
|
|
$monokai-vi: #f8f8f2;
|
|
|
|
$monokai-il: #ae81ff;
|
|
|
|
$monokai-gu: #75715e;
|
|
|
|
$monokai-gd: #f92672;
|
|
|
|
$monokai-gi: #a6e22e;
|
|
|
|
|
2014-12-03 09:27:31 -05:00
|
|
|
.code.monokai {
|
2016-01-21 08:23:53 -05:00
|
|
|
// Line numbers
|
2016-10-24 16:22:06 -04:00
|
|
|
.line-numbers,
|
|
|
|
.diff-line-num {
|
2016-11-30 08:25:25 -05:00
|
|
|
background-color: $monokai-bg;
|
2016-01-21 08:23:53 -05:00
|
|
|
}
|
2014-01-30 07:02:57 -05:00
|
|
|
|
2016-10-24 16:22:06 -04:00
|
|
|
.diff-line-num,
|
|
|
|
.diff-line-num a {
|
2016-11-30 08:25:25 -05:00
|
|
|
color: $monokai-line-num-color;
|
2014-12-03 09:27:31 -05:00
|
|
|
}
|
|
|
|
|
2016-01-21 08:23:53 -05:00
|
|
|
// Code itself
|
2016-10-24 16:22:06 -04:00
|
|
|
pre.code,
|
|
|
|
.diff-line-num {
|
2016-11-30 08:25:25 -05:00
|
|
|
border-color: $monokai-border;
|
2014-12-03 09:27:31 -05:00
|
|
|
}
|
|
|
|
|
2016-10-24 16:22:06 -04:00
|
|
|
&,
|
|
|
|
pre.code,
|
|
|
|
.line_holder .line_content {
|
2016-11-30 08:25:25 -05:00
|
|
|
background-color: $monokai-bg;
|
|
|
|
color: $monokai-text-color;
|
2016-01-21 08:23:53 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// Diff line
|
|
|
|
.line_holder {
|
2018-06-21 08:22:40 -04:00
|
|
|
&.match .line_content,
|
|
|
|
&.old-nonewline .line_content,
|
|
|
|
&.new-nonewline .line_content {
|
2016-07-31 11:25:40 -04:00
|
|
|
@include dark-diff-match-line;
|
|
|
|
}
|
|
|
|
|
2016-04-11 08:19:55 -04:00
|
|
|
td.diff-line-num.hll:not(.empty-cell),
|
|
|
|
td.line_content.hll:not(.empty-cell) {
|
2016-11-30 08:25:25 -05:00
|
|
|
background-color: $monokai-line-empty-bg;
|
|
|
|
border-color: $monokai-line-empty-border;
|
2016-04-11 08:19:55 -04:00
|
|
|
}
|
|
|
|
|
2016-10-24 16:22:06 -04:00
|
|
|
.diff-line-num.new,
|
|
|
|
.line_content.new {
|
2019-02-14 08:40:42 -05:00
|
|
|
@include diff-background($monokai-new-bg, $monokai-new-idiff, $monokai-diff-border);
|
2017-01-25 10:03:14 -05:00
|
|
|
|
|
|
|
&::before,
|
|
|
|
a {
|
|
|
|
color: $monokai-line-num-color-new;
|
|
|
|
}
|
2016-01-21 08:23:53 -05:00
|
|
|
}
|
|
|
|
|
2016-10-24 16:22:06 -04:00
|
|
|
.diff-line-num.old,
|
|
|
|
.line_content.old {
|
2019-02-14 08:40:42 -05:00
|
|
|
@include diff-background($monokai-old-bg, $monokai-old-idiff, $monokai-diff-border);
|
2017-01-25 10:03:14 -05:00
|
|
|
|
|
|
|
&::before,
|
|
|
|
a {
|
|
|
|
color: $monokai-line-num-color-old;
|
|
|
|
}
|
2016-01-21 08:56:23 -05:00
|
|
|
}
|
|
|
|
|
2017-02-22 12:30:17 -05:00
|
|
|
.diff-line-num {
|
2017-02-27 05:50:15 -05:00
|
|
|
&.is-over,
|
|
|
|
&.hll:not(.empty-cell).is-over {
|
2017-02-23 04:09:08 -05:00
|
|
|
background-color: $monokai-over-bg;
|
|
|
|
border-color: darken($monokai-over-bg, 5%);
|
2017-02-22 12:30:17 -05:00
|
|
|
|
|
|
|
a {
|
2017-02-23 04:09:08 -05:00
|
|
|
color: darken($monokai-over-bg, 15%);
|
2017-02-22 12:30:17 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-01-21 08:56:23 -05:00
|
|
|
.line_content.match {
|
2016-07-31 11:25:40 -04:00
|
|
|
@include dark-diff-match-line;
|
2016-01-21 08:23:53 -05:00
|
|
|
}
|
2017-02-23 05:46:40 -05:00
|
|
|
|
|
|
|
&:not(.diff-expanded) + .diff-expanded,
|
|
|
|
&.diff-expanded + .line_holder:not(.diff-expanded) {
|
|
|
|
> .diff-line-num,
|
|
|
|
> .line_content {
|
2017-02-24 09:56:20 -05:00
|
|
|
border-top: 1px solid $black;
|
2017-02-23 05:46:40 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.diff-expanded {
|
|
|
|
> .diff-line-num,
|
|
|
|
> .line_content {
|
2017-02-24 09:56:20 -05:00
|
|
|
background: $monokai-expanded-bg;
|
|
|
|
border-color: $monokai-expanded-bg;
|
2017-02-23 05:46:40 -05:00
|
|
|
}
|
|
|
|
}
|
2016-01-21 08:23:53 -05:00
|
|
|
}
|
|
|
|
|
2015-02-18 13:06:58 -05:00
|
|
|
// highlight line via anchor
|
2015-03-10 13:30:07 -04:00
|
|
|
pre .hll {
|
2016-11-30 08:25:25 -05:00
|
|
|
background-color: $monokai-hll !important;
|
2015-02-18 13:06:58 -05:00
|
|
|
}
|
|
|
|
|
2015-08-25 18:23:41 -04:00
|
|
|
// Search result highlight
|
|
|
|
span.highlight_word {
|
2016-11-30 08:25:25 -05:00
|
|
|
background-color: $monokai-highlight-bg !important;
|
|
|
|
color: $black !important;
|
2015-08-25 18:23:41 -04:00
|
|
|
}
|
|
|
|
|
2017-05-09 17:39:10 -04:00
|
|
|
// Links to URLs, emails, or dependencies
|
|
|
|
.line a {
|
|
|
|
color: $monokai-k;
|
|
|
|
}
|
|
|
|
|
2016-11-30 08:25:25 -05:00
|
|
|
.hll { background-color: $monokai-hll; }
|
|
|
|
.c { color: $monokai-c; } /* Comment */
|
|
|
|
.err { color: $monokai-err-color; background-color: $monokai-err-bg; } /* Error */
|
|
|
|
.k { color: $monokai-k; } /* Keyword */
|
|
|
|
.l { color: $monokai-l; } /* Literal */
|
|
|
|
.n { color: $monokai-n; } /* Name */
|
|
|
|
.o { color: $monokai-o; } /* Operator */
|
|
|
|
.p { color: $monokai-p; } /* Punctuation */
|
|
|
|
.cm { color: $monokai-cm; } /* Comment.Multiline */
|
|
|
|
.cp { color: $monokai-cp; } /* Comment.Preproc */
|
|
|
|
.c1 { color: $monokai-c1; } /* Comment.Single */
|
|
|
|
.cs { color: $monokai-cs; } /* Comment.Special */
|
2016-10-14 16:39:08 -04:00
|
|
|
.ge { font-style: italic; } /* Generic.Emph */
|
2017-08-24 10:13:24 -04:00
|
|
|
.gs { font-weight: $gl-font-weight-bold; } /* Generic.Strong */
|
2016-11-30 08:25:25 -05:00
|
|
|
.kc { color: $monokai-kc; } /* Keyword.Constant */
|
|
|
|
.kd { color: $monokai-kd; } /* Keyword.Declaration */
|
|
|
|
.kn { color: $monokai-kn; } /* Keyword.Namespace */
|
|
|
|
.kp { color: $monokai-kp; } /* Keyword.Pseudo */
|
|
|
|
.kr { color: $monokai-kr; } /* Keyword.Reserved */
|
|
|
|
.kt { color: $monokai-kt; } /* Keyword.Type */
|
|
|
|
.ld { color: $monokai-ld; } /* Literal.Date */
|
|
|
|
.m { color: $monokai-m; } /* Literal.Number */
|
|
|
|
.s { color: $monokai-s; } /* Literal.String */
|
|
|
|
.na { color: $monokai-na; } /* Name.Attribute */
|
|
|
|
.nb { color: $monokai-nb; } /* Name.Builtin */
|
|
|
|
.nc { color: $monokai-nc; } /* Name.Class */
|
|
|
|
.no { color: $monokai-no; } /* Name.Constant */
|
|
|
|
.nd { color: $monokai-nd; } /* Name.Decorator */
|
|
|
|
.ni { color: $monokai-ni; } /* Name.Entity */
|
|
|
|
.ne { color: $monokai-ne; } /* Name.Exception */
|
|
|
|
.nf { color: $monokai-nf; } /* Name.Function */
|
|
|
|
.nl { color: $monokai-nl; } /* Name.Label */
|
|
|
|
.nn { color: $monokai-nn; } /* Name.Namespace */
|
|
|
|
.nx { color: $monokai-nx; } /* Name.Other */
|
|
|
|
.py { color: $monokai-py; } /* Name.Property */
|
|
|
|
.nt { color: $monokai-nt; } /* Name.Tag */
|
|
|
|
.nv { color: $monokai-nv; } /* Name.Variable */
|
|
|
|
.ow { color: $monokai-ow; } /* Operator.Word */
|
|
|
|
.w { color: $monokai-w; } /* Text.Whitespace */
|
|
|
|
.mf { color: $monokai-mf; } /* Literal.Number.Float */
|
|
|
|
.mh { color: $monokai-mh; } /* Literal.Number.Hex */
|
|
|
|
.mi { color: $monokai-mi; } /* Literal.Number.Integer */
|
|
|
|
.mo { color: $monokai-mo; } /* Literal.Number.Oct */
|
|
|
|
.sb { color: $monokai-sb; } /* Literal.String.Backtick */
|
|
|
|
.sc { color: $monokai-sc; } /* Literal.String.Char */
|
|
|
|
.sd { color: $monokai-sd; } /* Literal.String.Doc */
|
|
|
|
.s2 { color: $monokai-s2; } /* Literal.String.Double */
|
|
|
|
.se { color: $monokai-se; } /* Literal.String.Escape */
|
|
|
|
.sh { color: $monokai-sh; } /* Literal.String.Heredoc */
|
|
|
|
.si { color: $monokai-si; } /* Literal.String.Interpol */
|
|
|
|
.sx { color: $monokai-sx; } /* Literal.String.Other */
|
|
|
|
.sr { color: $monokai-sr; } /* Literal.String.Regex */
|
|
|
|
.s1 { color: $monokai-s1; } /* Literal.String.Single */
|
|
|
|
.ss { color: $monokai-ss; } /* Literal.String.Symbol */
|
|
|
|
.bp { color: $monokai-bp; } /* Name.Builtin.Pseudo */
|
|
|
|
.vc { color: $monokai-vc; } /* Name.Variable.Class */
|
|
|
|
.vg { color: $monokai-vg; } /* Name.Variable.Global */
|
|
|
|
.vi { color: $monokai-vi; } /* Name.Variable.Instance */
|
|
|
|
.il { color: $monokai-il; } /* Literal.Number.Integer.Long */
|
|
|
|
.gu { color: $monokai-gu; } /* Generic.Subheading & Diff Unified/Comment? */
|
|
|
|
.gd { color: $monokai-gd; } /* Generic.Deleted & Diff Deleted */
|
|
|
|
.gi { color: $monokai-gi; } /* Generic.Inserted & Diff Inserted */
|
2014-01-26 15:00:23 -05:00
|
|
|
}
|