2018-02-06 08:33:18 -05:00
|
|
|
/* https://github.com/aahan/pygments-github-style */
|
|
|
|
|
2019-02-25 14:03:21 -05:00
|
|
|
@import './common';
|
2019-02-14 01:54:34 -05:00
|
|
|
|
2018-02-06 08:33:18 -05:00
|
|
|
/*
|
|
|
|
* 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;
|
2019-02-25 14:03:21 -05:00
|
|
|
$white-na: #008080;
|
2018-02-06 08:33:18 -05:00
|
|
|
$white-nb: #0086b3;
|
|
|
|
$white-nc: #458;
|
2019-02-25 14:03:21 -05:00
|
|
|
$white-no: #008080;
|
|
|
|
$white-ni: #800080;
|
2018-02-06 08:33:18 -05:00
|
|
|
$white-ne: #900;
|
|
|
|
$white-nf: #900;
|
|
|
|
$white-nn: #555;
|
2019-02-25 14:03:21 -05:00
|
|
|
$white-nt: #000080;
|
|
|
|
$white-nv: #008080;
|
2018-02-06 08:33:18 -05:00
|
|
|
$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;
|
2019-02-25 14:03:21 -05:00
|
|
|
$white-vc: #008080;
|
|
|
|
$white-vg: #008080;
|
|
|
|
$white-vi: #008080;
|
2018-02-06 08:33:18 -05:00
|
|
|
$white-il: #099;
|
|
|
|
$white-gc-color: #999;
|
|
|
|
$white-gc-bg: #eaf2f5;
|
|
|
|
|
|
|
|
|
2019-02-14 08:40:42 -05:00
|
|
|
@mixin match-line {
|
2018-02-06 08:33:18 -05:00
|
|
|
color: $black-transparent;
|
|
|
|
background-color: $gray-light;
|
|
|
|
}
|
|
|
|
|
2019-02-25 14:03:21 -05:00
|
|
|
// Line numbers
|
2018-02-06 08:33:18 -05:00
|
|
|
.line-numbers,
|
|
|
|
.diff-line-num {
|
|
|
|
background-color: $gray-light;
|
|
|
|
}
|
|
|
|
|
|
|
|
.diff-line-num,
|
|
|
|
.diff-line-num a {
|
|
|
|
color: $black-transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Code itself
|
|
|
|
pre.code,
|
|
|
|
.diff-line-num {
|
|
|
|
border-color: $white-normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
&,
|
|
|
|
pre.code,
|
|
|
|
.line_holder .line_content {
|
2020-03-30 20:08:09 -04:00
|
|
|
background-color: $white;
|
2018-02-06 08:33:18 -05:00
|
|
|
color: $white-code-color;
|
|
|
|
}
|
|
|
|
|
2019-08-09 22:36:32 -04:00
|
|
|
.line_expansion {
|
2019-08-20 16:18:06 -04:00
|
|
|
@include diff-expansion($gray-light, $border-color, $blue-600);
|
2019-08-09 22:36:32 -04:00
|
|
|
}
|
|
|
|
|
2018-02-06 08:33:18 -05:00
|
|
|
// Diff line
|
|
|
|
.line_holder {
|
2018-06-27 17:20:41 -04:00
|
|
|
&.match .line_content,
|
|
|
|
.new-nonewline.line_content,
|
|
|
|
.old-nonewline.line_content {
|
2019-02-14 08:40:42 -05:00
|
|
|
@include match-line;
|
2018-02-06 08:33:18 -05:00
|
|
|
}
|
|
|
|
|
2020-11-10 07:08:57 -05:00
|
|
|
.diff-grid-left:hover,
|
|
|
|
.diff-grid-right:hover {
|
|
|
|
.diff-line-num:not(.empty-cell) {
|
|
|
|
@include line-number-hover($white-over-bg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-02-06 08:33:18 -05:00
|
|
|
.diff-line-num {
|
|
|
|
&.old {
|
|
|
|
background-color: $line-number-old;
|
|
|
|
border-color: $line-removed-dark;
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: scale-color($line-number-old, $red: -30%, $green: -30%, $blue: -30%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.new {
|
|
|
|
background-color: $line-number-new;
|
|
|
|
border-color: $line-added-dark;
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: scale-color($line-number-new, $red: -30%, $green: -30%, $blue: -30%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-over,
|
|
|
|
&.hll:not(.empty-cell).is-over {
|
2020-11-10 07:08:57 -05:00
|
|
|
@include line-number-hover($white-over-bg);
|
2018-02-06 08:33:18 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
&.hll:not(.empty-cell) {
|
|
|
|
background-color: $line-number-select;
|
|
|
|
border-color: $line-select-yellow-dark;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(.diff-expanded) + .diff-expanded,
|
|
|
|
&.diff-expanded + .line_holder:not(.diff-expanded) {
|
|
|
|
> .diff-line-num,
|
2020-03-17 14:09:44 -04:00
|
|
|
> .line-coverage,
|
2018-02-06 08:33:18 -05:00
|
|
|
> .line_content {
|
|
|
|
border-top: 1px solid $white-expanded-border;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.diff-expanded {
|
|
|
|
> .diff-line-num,
|
2020-03-17 14:09:44 -04:00
|
|
|
> .line-coverage,
|
2018-02-06 08:33:18 -05:00
|
|
|
> .line_content {
|
|
|
|
background: $white-expanded-bg;
|
|
|
|
border-color: $white-expanded-bg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.line_content {
|
|
|
|
&.old {
|
|
|
|
background-color: $line-removed;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
color: scale-color($line-number-old, $red: -30%, $green: -30%, $blue: -30%);
|
|
|
|
}
|
|
|
|
|
|
|
|
span.idiff {
|
|
|
|
background-color: $line-removed-dark;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.new {
|
|
|
|
background-color: $line-added;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
color: scale-color($line-number-new, $red: -30%, $green: -30%, $blue: -30%);
|
|
|
|
}
|
|
|
|
|
|
|
|
span.idiff {
|
|
|
|
background-color: $line-added-dark;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.match {
|
2019-02-14 08:40:42 -05:00
|
|
|
@include match-line;
|
2018-02-06 08:33:18 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
&.hll:not(.empty-cell) {
|
|
|
|
background-color: $line-select-yellow;
|
|
|
|
}
|
|
|
|
}
|
2020-03-17 14:09:44 -04:00
|
|
|
|
|
|
|
.line-coverage {
|
|
|
|
@include line-coverage-border-color($green-500, $orange-500);
|
|
|
|
|
|
|
|
&.old {
|
|
|
|
background-color: $line-removed;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.new {
|
|
|
|
background-color: $line-added;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.hll:not(.empty-cell) {
|
|
|
|
background-color: $line-select-yellow;
|
|
|
|
}
|
|
|
|
}
|
2018-02-06 08:33:18 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// highlight line via anchor
|
|
|
|
pre .hll {
|
|
|
|
background-color: $white-pre-hll-bg !important;
|
|
|
|
}
|
|
|
|
|
2019-02-25 14:03:21 -05:00
|
|
|
// Search result highlight
|
2018-02-06 08:33:18 -05:00
|
|
|
span.highlight_word {
|
|
|
|
background-color: $white-highlight !important;
|
|
|
|
}
|
|
|
|
|
2019-11-12 10:06:26 -05:00
|
|
|
// Links to URLs, emails, or dependencies
|
|
|
|
.line a {
|
|
|
|
color: $white-nb;
|
|
|
|
}
|
|
|
|
|
2018-02-06 08:33:18 -05:00
|
|
|
.hll { background-color: $white-hll-bg; }
|
2019-02-25 14:03:21 -05:00
|
|
|
|
|
|
|
.c { color: $white-c;
|
|
|
|
font-style: italic; }
|
|
|
|
|
|
|
|
.err { color: $white-err;
|
|
|
|
background-color: $white-err-bg; }
|
2018-02-06 08:33:18 -05:00
|
|
|
.k { font-weight: $gl-font-weight-bold; }
|
|
|
|
.o { font-weight: $gl-font-weight-bold; }
|
2019-02-25 14:03:21 -05:00
|
|
|
|
|
|
|
.cm { color: $white-cm;
|
|
|
|
font-style: italic; }
|
|
|
|
|
|
|
|
.cp { color: $white-cp;
|
|
|
|
font-weight: $gl-font-weight-bold; }
|
|
|
|
|
|
|
|
.c1 { color: $white-c1;
|
|
|
|
font-style: italic; }
|
|
|
|
|
|
|
|
.cs { color: $white-cs;
|
|
|
|
font-weight: $gl-font-weight-bold;
|
|
|
|
font-style: italic; }
|
2018-02-06 08:33:18 -05:00
|
|
|
|
|
|
|
.gd {
|
|
|
|
color: $white-gd;
|
|
|
|
background-color: $white-gd-bg;
|
|
|
|
|
|
|
|
.x {
|
|
|
|
color: $white-gd-x;
|
|
|
|
background-color: $white-gd-x-bg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.ge { font-style: italic; }
|
|
|
|
.gr { color: $white-gr; }
|
|
|
|
.gh { color: $white-gh; }
|
|
|
|
|
|
|
|
.gi {
|
|
|
|
color: $white-gi;
|
|
|
|
background-color: $white-gi-bg;
|
|
|
|
|
|
|
|
.x {
|
|
|
|
color: $white-gi-x;
|
|
|
|
background-color: $white-gi-x-bg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.go { color: $white-go; }
|
|
|
|
.gp { color: $white-gp; }
|
|
|
|
.gs { font-weight: $gl-font-weight-bold; }
|
2019-02-25 14:03:21 -05:00
|
|
|
|
|
|
|
.gu { color: $white-gu;
|
|
|
|
font-weight: $gl-font-weight-bold; }
|
2018-02-06 08:33:18 -05:00
|
|
|
.gt { color: $white-gt; }
|
|
|
|
.kc { font-weight: $gl-font-weight-bold; }
|
|
|
|
.kd { font-weight: $gl-font-weight-bold; }
|
|
|
|
.kn { font-weight: $gl-font-weight-bold; }
|
|
|
|
.kp { font-weight: $gl-font-weight-bold; }
|
|
|
|
.kr { font-weight: $gl-font-weight-bold; }
|
2019-02-25 14:03:21 -05:00
|
|
|
|
|
|
|
.kt { color: $white-kt;
|
|
|
|
font-weight: $gl-font-weight-bold; }
|
2018-02-06 08:33:18 -05:00
|
|
|
.m { color: $white-m; }
|
|
|
|
.s { color: $white-s; }
|
|
|
|
.n { color: $white-n; }
|
|
|
|
.na { color: $white-na; }
|
|
|
|
.nb { color: $white-nb; }
|
2019-02-25 14:03:21 -05:00
|
|
|
|
|
|
|
.nc { color: $white-nc;
|
|
|
|
font-weight: $gl-font-weight-bold; }
|
2018-02-06 08:33:18 -05:00
|
|
|
.no { color: $white-no; }
|
|
|
|
.ni { color: $white-ni; }
|
2019-02-25 14:03:21 -05:00
|
|
|
|
|
|
|
.ne { color: $white-ne;
|
|
|
|
font-weight: $gl-font-weight-bold; }
|
|
|
|
|
|
|
|
.nf { color: $white-nf;
|
|
|
|
font-weight: $gl-font-weight-bold; }
|
2018-02-06 08:33:18 -05:00
|
|
|
.nn { color: $white-nn; }
|
|
|
|
.nt { color: $white-nt; }
|
|
|
|
.nv { color: $white-nv; }
|
|
|
|
.ow { font-weight: $gl-font-weight-bold; }
|
|
|
|
.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; }
|
2019-02-25 14:03:21 -05:00
|
|
|
|
|
|
|
.gc { color: $white-gc-color;
|
|
|
|
background-color: $white-gc-bg; }
|