2015-04-26 12:48:37 +05:30
|
|
|
/* https://github.com/aahan/pygments-github-style */
|
2016-09-13 17:45:13 +05:30
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
/*
|
|
|
|
* White Syntax Colors
|
|
|
|
*/
|
|
|
|
$white-code-color: $gl-text-color;
|
|
|
|
$white-highlight: #fafe3d;
|
|
|
|
$white-pre-hll-bg: #f8eec7;
|
|
|
|
$white-hll-bg: #f8f8f8;
|
|
|
|
$white-over-bg: #ded7fc;
|
|
|
|
$white-expanded-border: #e0e0e0;
|
|
|
|
$white-expanded-bg: #f7f7f7;
|
|
|
|
$white-c: #998;
|
|
|
|
$white-err: #a61717;
|
|
|
|
$white-err-bg: #e3d2d2;
|
|
|
|
$white-cm: #998;
|
|
|
|
$white-cp: #999;
|
|
|
|
$white-c1: #998;
|
|
|
|
$white-cs: #999;
|
|
|
|
$white-gd: $black;
|
|
|
|
$white-gd-bg: #fdd;
|
|
|
|
$white-gd-x: $black;
|
|
|
|
$white-gd-x-bg: #faa;
|
|
|
|
$white-gr: #a00;
|
|
|
|
$white-gh: #999;
|
|
|
|
$white-gi: $black;
|
|
|
|
$white-gi-bg: #dfd;
|
|
|
|
$white-gi-x: $black;
|
|
|
|
$white-gi-x-bg: #afa;
|
|
|
|
$white-go: #888;
|
|
|
|
$white-gp: #555;
|
|
|
|
$white-gu: #800080;
|
|
|
|
$white-gt: #a00;
|
|
|
|
$white-kt: #458;
|
|
|
|
$white-m: #099;
|
|
|
|
$white-s: #d14;
|
|
|
|
$white-n: #333;
|
|
|
|
$white-na: teal;
|
|
|
|
$white-nb: #0086b3;
|
|
|
|
$white-nc: #458;
|
|
|
|
$white-no: teal;
|
|
|
|
$white-ni: purple;
|
|
|
|
$white-ne: #900;
|
|
|
|
$white-nf: #900;
|
|
|
|
$white-nn: #555;
|
|
|
|
$white-nt: navy;
|
|
|
|
$white-nv: teal;
|
|
|
|
$white-w: #bbb;
|
|
|
|
$white-mf: #099;
|
|
|
|
$white-mh: #099;
|
|
|
|
$white-mi: #099;
|
|
|
|
$white-mo: #099;
|
|
|
|
$white-sb: #d14;
|
|
|
|
$white-sc: #d14;
|
|
|
|
$white-sd: #d14;
|
|
|
|
$white-s2: #d14;
|
|
|
|
$white-se: #d14;
|
|
|
|
$white-sh: #d14;
|
|
|
|
$white-si: #d14;
|
|
|
|
$white-sx: #d14;
|
|
|
|
$white-sr: #009926;
|
|
|
|
$white-s1: #d14;
|
|
|
|
$white-ss: #990073;
|
|
|
|
$white-bp: #999;
|
|
|
|
$white-vc: teal;
|
|
|
|
$white-vg: teal;
|
|
|
|
$white-vi: teal;
|
|
|
|
$white-il: #099;
|
|
|
|
$white-gc-color: #999;
|
|
|
|
$white-gc-bg: #eaf2f5;
|
|
|
|
|
|
|
|
|
2016-09-13 17:45:13 +05:30
|
|
|
@mixin matchLine {
|
|
|
|
color: $black-transparent;
|
2017-08-17 22:00:37 +05:30
|
|
|
background-color: $gray-light;
|
2016-09-13 17:45:13 +05:30
|
|
|
}
|
|
|
|
|
2015-04-26 12:48:37 +05:30
|
|
|
.code.white {
|
2016-02-05 20:25:01 +05:30
|
|
|
// Line numbers
|
2017-08-17 22:00:37 +05:30
|
|
|
.line-numbers,
|
|
|
|
.diff-line-num {
|
|
|
|
background-color: $gray-light;
|
2016-02-05 20:25:01 +05:30
|
|
|
}
|
2014-09-02 18:07:02 +05:30
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
.diff-line-num,
|
|
|
|
.diff-line-num a {
|
2016-06-02 11:05:42 +05:30
|
|
|
color: $black-transparent;
|
2016-02-05 20:25:01 +05:30
|
|
|
}
|
2014-09-02 18:07:02 +05:30
|
|
|
|
2016-02-05 20:25:01 +05:30
|
|
|
// Code itself
|
2017-08-17 22:00:37 +05:30
|
|
|
pre.code,
|
|
|
|
.diff-line-num {
|
|
|
|
border-color: $white-normal;
|
2015-09-25 12:07:36 +05:30
|
|
|
}
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
&,
|
|
|
|
pre.code,
|
|
|
|
.line_holder .line_content {
|
|
|
|
background-color: $white-light;
|
|
|
|
color: $white-code-color;
|
2016-02-05 20:25:01 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
// Diff line
|
|
|
|
.line_holder {
|
2016-06-02 11:05:42 +05:30
|
|
|
|
2016-09-13 17:45:13 +05:30
|
|
|
&.match .line_content {
|
|
|
|
@include matchLine;
|
|
|
|
}
|
|
|
|
|
2016-02-05 20:25:01 +05:30
|
|
|
.diff-line-num {
|
|
|
|
&.old {
|
2016-06-02 11:05:42 +05:30
|
|
|
background-color: $line-number-old;
|
|
|
|
border-color: $line-removed-dark;
|
2017-08-17 22:00:37 +05:30
|
|
|
|
|
|
|
a {
|
|
|
|
color: scale-color($line-number-old,$red: -30%, $green: -30%, $blue: -30%);
|
|
|
|
}
|
2016-02-05 20:25:01 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
&.new {
|
2016-06-02 11:05:42 +05:30
|
|
|
background-color: $line-number-new;
|
|
|
|
border-color: $line-added-dark;
|
2017-08-17 22:00:37 +05:30
|
|
|
|
|
|
|
a {
|
|
|
|
color: scale-color($line-number-new,$red: -30%, $green: -30%, $blue: -30%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-over,
|
|
|
|
&.hll:not(.empty-cell).is-over {
|
|
|
|
background-color: $white-over-bg;
|
|
|
|
border-color: darken($white-over-bg, 5%);
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: darken($white-over-bg, 15%);
|
|
|
|
}
|
2016-06-02 11:05:42 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
&.hll:not(.empty-cell) {
|
|
|
|
background-color: $line-number-select;
|
|
|
|
border-color: $line-select-yellow-dark;
|
2016-02-05 20:25:01 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
&:not(.diff-expanded) + .diff-expanded,
|
|
|
|
&.diff-expanded + .line_holder:not(.diff-expanded) {
|
|
|
|
> .diff-line-num,
|
|
|
|
> .line_content {
|
|
|
|
border-top: 1px solid $white-expanded-border;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.diff-expanded {
|
|
|
|
> .diff-line-num,
|
|
|
|
> .line_content {
|
|
|
|
background: $white-expanded-bg;
|
|
|
|
border-color: $white-expanded-bg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-05 20:25:01 +05:30
|
|
|
.line_content {
|
|
|
|
&.old {
|
2016-06-02 11:05:42 +05:30
|
|
|
background-color: $line-removed;
|
2016-02-05 20:25:01 +05:30
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
&::before {
|
|
|
|
color: scale-color($line-number-old,$red: -30%, $green: -30%, $blue: -30%);
|
|
|
|
}
|
|
|
|
|
2016-02-05 20:25:01 +05:30
|
|
|
span.idiff {
|
2016-06-02 11:05:42 +05:30
|
|
|
background-color: $line-removed-dark;
|
2016-02-05 20:25:01 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.new {
|
2016-06-02 11:05:42 +05:30
|
|
|
background-color: $line-added;
|
2016-02-05 20:25:01 +05:30
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
&::before {
|
|
|
|
color: scale-color($line-number-new,$red: -30%, $green: -30%, $blue: -30%);
|
|
|
|
}
|
|
|
|
|
2016-02-05 20:25:01 +05:30
|
|
|
span.idiff {
|
2016-06-02 11:05:42 +05:30
|
|
|
background-color: $line-added-dark;
|
2016-02-05 20:25:01 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.match {
|
2016-09-13 17:45:13 +05:30
|
|
|
@include matchLine;
|
2016-06-02 11:05:42 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
&.hll:not(.empty-cell) {
|
|
|
|
background-color: $line-select-yellow;
|
2016-02-05 20:25:01 +05:30
|
|
|
}
|
|
|
|
}
|
2015-04-26 12:48:37 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
// highlight line via anchor
|
|
|
|
pre .hll {
|
2017-08-17 22:00:37 +05:30
|
|
|
background-color: $white-pre-hll-bg !important;
|
2015-04-26 12:48:37 +05:30
|
|
|
}
|
|
|
|
|
2015-09-25 12:07:36 +05:30
|
|
|
// Search result highlight
|
|
|
|
span.highlight_word {
|
2017-08-17 22:00:37 +05:30
|
|
|
background-color: $white-highlight !important;
|
2015-09-25 12:07:36 +05:30
|
|
|
}
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
.hll { background-color: $white-hll-bg; }
|
|
|
|
.c { color: $white-c; font-style: italic; }
|
|
|
|
.err { color: $white-err; background-color: $white-err-bg; }
|
2015-04-26 12:48:37 +05:30
|
|
|
.k { font-weight: bold; }
|
|
|
|
.o { font-weight: bold; }
|
2017-08-17 22:00:37 +05:30
|
|
|
.cm { color: $white-cm; font-style: italic; }
|
|
|
|
.cp { color: $white-cp; font-weight: bold; }
|
|
|
|
.c1 { color: $white-c1; font-style: italic; }
|
|
|
|
.cs { color: $white-cs; font-weight: bold; font-style: italic; }
|
|
|
|
.gd { color: $white-gd; background-color: $white-gd-bg; }
|
|
|
|
.gd .x { color: $white-gd-x; background-color: $white-gd-x-bg; }
|
2015-04-26 12:48:37 +05:30
|
|
|
.ge { font-style: italic; }
|
2017-08-17 22:00:37 +05:30
|
|
|
.gr { color: $white-gr; }
|
|
|
|
.gh { color: $white-gh; }
|
|
|
|
.gi { color: $white-gi; background-color: $white-gi-bg; }
|
|
|
|
.gi .x { color: $white-gi-x; background-color: $white-gi-x-bg; }
|
|
|
|
.go { color: $white-go; }
|
|
|
|
.gp { color: $white-gp; }
|
2015-04-26 12:48:37 +05:30
|
|
|
.gs { font-weight: bold; }
|
2017-08-17 22:00:37 +05:30
|
|
|
.gu { color: $white-gu; font-weight: bold; }
|
|
|
|
.gt { color: $white-gt; }
|
2015-04-26 12:48:37 +05:30
|
|
|
.kc { font-weight: bold; }
|
|
|
|
.kd { font-weight: bold; }
|
|
|
|
.kn { font-weight: bold; }
|
|
|
|
.kp { font-weight: bold; }
|
|
|
|
.kr { font-weight: bold; }
|
2017-08-17 22:00:37 +05:30
|
|
|
.kt { color: $white-kt; font-weight: bold; }
|
|
|
|
.m { color: $white-m; }
|
|
|
|
.s { color: $white-s; }
|
|
|
|
.n { color: $white-n; }
|
|
|
|
.na { color: $white-na; }
|
|
|
|
.nb { color: $white-nb; }
|
|
|
|
.nc { color: $white-nc; font-weight: bold; }
|
|
|
|
.no { color: $white-no; }
|
|
|
|
.ni { color: $white-ni; }
|
|
|
|
.ne { color: $white-ne; font-weight: bold; }
|
|
|
|
.nf { color: $white-nf; font-weight: bold; }
|
|
|
|
.nn { color: $white-nn; }
|
|
|
|
.nt { color: $white-nt; }
|
|
|
|
.nv { color: $white-nv; }
|
2015-04-26 12:48:37 +05:30
|
|
|
.ow { font-weight: bold; }
|
2017-08-17 22:00:37 +05:30
|
|
|
.w { color: $white-w; }
|
|
|
|
.mf { color: $white-mf; }
|
|
|
|
.mh { color: $white-mh; }
|
|
|
|
.mi { color: $white-mi; }
|
|
|
|
.mo { color: $white-mo; }
|
|
|
|
.sb { color: $white-sb; }
|
|
|
|
.sc { color: $white-sc; }
|
|
|
|
.sd { color: $white-sd; }
|
|
|
|
.s2 { color: $white-s2; }
|
|
|
|
.se { color: $white-se; }
|
|
|
|
.sh { color: $white-sh; }
|
|
|
|
.si { color: $white-si; }
|
|
|
|
.sx { color: $white-sx; }
|
|
|
|
.sr { color: $white-sr; }
|
|
|
|
.s1 { color: $white-s1; }
|
|
|
|
.ss { color: $white-ss; }
|
|
|
|
.bp { color: $white-bp; }
|
|
|
|
.vc { color: $white-vc; }
|
|
|
|
.vg { color: $white-vg; }
|
|
|
|
.vi { color: $white-vi; }
|
|
|
|
.il { color: $white-il; }
|
|
|
|
.gc { color: $white-gc-color; background-color: $white-gc-bg; }
|
2014-09-02 18:07:02 +05:30
|
|
|
}
|