debian-mirror-gitlab/app/assets/stylesheets/highlight/themes/solarized-light.scss

347 lines
11 KiB
SCSS
Raw Normal View History

2015-04-26 12:48:37 +05:30
/* https://gist.github.com/qguv/7936275 */
2016-09-13 17:45:13 +05:30
2020-07-28 23:09:34 +05:30
@import '../common';
2022-07-16 23:28:13 +05:30
@import 'highlight.js/styles/base16/solarized-light.css';
2019-07-07 11:18:12 +05:30
2017-08-17 22:00:37 +05:30
/*
* Solarized light syntax colors
*/
$solarized-light-matchline-bg: rgba(255, 255, 255, 0.4);
$solarized-light-new-bg: rgba(133, 153, 0, 0.2);
$solarized-light-new-idiff: rgba(133, 153, 0, 0.25);
$solarized-light-old-bg: rgba(220, 50, 47, 0.2);
$solarized-light-old-idiff: rgba(220, 50, 47, 0.25);
$solarized-light-border: #c5d0d4;
$solarized-light-pre-bg: #002b36;
$solarized-light-pre-bg: #fdf6e3;
$solarized-light-pre-color: #586e75;
$solarized-light-line-bg: #fdf6e3;
$solarized-light-line-color: rgba(0, 0, 0, 0.3);
$solarized-light-line-color-new: #a1a080;
$solarized-light-line-color-old: #ad9186;
$solarized-light-highlight: #eee8d5;
$solarized-light-hll-bg: #ddd8c5;
$solarized-light-expanded-border: #d2cdbd;
$solarized-light-expanded-bg: #ece6d4;
2020-04-08 14:13:33 +05:30
$solarized-light-coverage: #859900;
$solarized-light-no-coverage: #cb4b16;
2017-08-17 22:00:37 +05:30
$solarized-light-c: #93a1a1;
$solarized-light-err: #586e75;
$solarized-light-g: #586e75;
$solarized-light-k: #859900;
$solarized-light-l: #586e75;
$solarized-light-n: #586e75;
$solarized-light-o: #859900;
$solarized-light-x: #cb4b16;
$solarized-light-p: #586e75;
$solarized-light-cm: #93a1a1;
$solarized-light-cp: #859900;
$solarized-light-c1: #93a1a1;
$solarized-light-cs: #859900;
2022-04-04 11:22:00 +05:30
$solarized-light-cd: #93a1a1;
2017-08-17 22:00:37 +05:30
$solarized-light-gd: #2aa198;
$solarized-light-ge: #586e75;
$solarized-light-gr: #dc322f;
$solarized-light-gh: #cb4b16;
$solarized-light-gi: #859900;
$solarized-light-go: #586e75;
$solarized-light-gp: #586e75;
$solarized-light-gs: #586e75;
$solarized-light-gu: #cb4b16;
$solarized-light-gt: #586e75;
$solarized-light-kc: #cb4b16;
$solarized-light-kd: #268bd2;
$solarized-light-kn: #859900;
$solarized-light-kp: #859900;
$solarized-light-kr: #268bd2;
$solarized-light-kt: #dc322f;
$solarized-light-ld: #586e75;
$solarized-light-m: #2aa198;
$solarized-light-s: #2aa198;
$solarized-light-na: #586e75;
$solarized-light-nb: #b58900;
$solarized-light-nc: #268bd2;
$solarized-light-no: #cb4b16;
$solarized-light-nd: #268bd2;
$solarized-light-ni: #cb4b16;
$solarized-light-ne: #cb4b16;
$solarized-light-nf: #268bd2;
$solarized-light-nl: #586e75;
$solarized-light-nn: #586e75;
$solarized-light-nx: #586e75;
$solarized-light-py: #586e75;
$solarized-light-nt: #268bd2;
$solarized-light-nv: #268bd2;
$solarized-light-ow: #859900;
$solarized-light-w: #586e75;
$solarized-light-mf: #2aa198;
$solarized-light-mh: #2aa198;
$solarized-light-mi: #2aa198;
$solarized-light-mo: #2aa198;
$solarized-light-sb: #93a1a1;
$solarized-light-sc: #2aa198;
$solarized-light-sd: #586e75;
$solarized-light-s2: #2aa198;
$solarized-light-se: #cb4b16;
$solarized-light-sh: #586e75;
$solarized-light-si: #2aa198;
$solarized-light-sx: #2aa198;
$solarized-light-sr: #dc322f;
$solarized-light-s1: #2aa198;
$solarized-light-ss: #2aa198;
$solarized-light-bp: #268bd2;
$solarized-light-vc: #268bd2;
$solarized-light-vg: #268bd2;
$solarized-light-vi: #268bd2;
$solarized-light-il: #2aa198;
2022-06-21 17:19:12 +05:30
:root {
--default-diff-color-deletion: #dc322f;
--default-diff-color-addition: #859900;
}
2019-07-07 11:18:12 +05:30
@mixin match-line {
2016-09-13 17:45:13 +05:30
color: $black-transparent;
2017-08-17 22:00:37 +05:30
background: $solarized-light-matchline-bg;
2016-09-13 17:45:13 +05:30
}
2015-04-26 12:48:37 +05:30
.code.solarized-light {
2016-02-05 20:25:01 +05:30
// Line numbers
2021-04-29 21:17:54 +05:30
.file-line-num {
@include line-number-link($solarized-light-line-color);
}
2017-08-17 22:00:37 +05:30
.line-numbers,
2022-01-26 12:08:38 +05:30
.diff-line-num,
.code-search-line {
2017-08-17 22:00:37 +05:30
background-color: $solarized-light-line-bg;
2016-02-05 20:25:01 +05:30
}
2015-04-26 12:48:37 +05:30
2017-08-17 22:00:37 +05:30
.diff-line-num,
.diff-line-num a {
color: $solarized-light-line-color;
2016-02-05 20:25:01 +05:30
}
2015-04-26 12:48:37 +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: $solarized-light-border;
2015-04-26 12:48:37 +05:30
}
2017-08-17 22:00:37 +05:30
&,
pre.code,
.line_holder .line_content {
background-color: $solarized-light-pre-bg;
color: $solarized-light-pre-color;
2016-02-05 20:25:01 +05:30
}
2022-07-16 23:28:13 +05:30
.old-line_expansion {
@include old-diff-expansion($solarized-light-line-bg, $solarized-light-border, $solarized-light-kd);
}
2016-02-05 20:25:01 +05:30
2022-07-16 23:28:13 +05:30
.diff-line-expand-button {
@include diff-expansion($gray-100, $gray-700, $gray-200, $gray-800);
2019-10-12 21:52:04 +05:30
}
2016-02-05 20:25:01 +05:30
// Diff line
.line_holder {
2018-11-08 19:23:39 +05:30
&.match .line_content,
&.old-nonewline .line_content,
&.new-nonewline .line_content {
2019-07-07 11:18:12 +05:30
@include match-line;
2016-09-13 17:45:13 +05:30
}
2022-07-16 23:28:13 +05:30
&.diff-grid-row.expansion .diff-td {
background-color: $solarized-light-matchline-bg;
}
2021-01-29 00:20:46 +05:30
.diff-td.diff-line-num.hll:not(.empty-cell),
.diff-td.line-coverage.hll:not(.empty-cell),
2021-09-04 01:27:46 +05:30
.diff-td.line-codequality.hll:not(.empty-cell),
2021-01-29 00:20:46 +05:30
.diff-td.line_content.hll:not(.empty-cell),
2016-06-02 11:05:42 +05:30
td.diff-line-num.hll:not(.empty-cell),
2020-04-08 14:13:33 +05:30
td.line-coverage.hll:not(.empty-cell),
2016-06-02 11:05:42 +05:30
td.line_content.hll:not(.empty-cell) {
2017-08-17 22:00:37 +05:30
background-color: $solarized-light-hll-bg;
border-color: darken($solarized-light-hll-bg, 15%);
2016-06-02 11:05:42 +05:30
}
2020-04-08 14:13:33 +05:30
.line-coverage {
@include line-coverage-border-color($solarized-light-coverage, $solarized-light-no-coverage);
}
2017-08-17 22:00:37 +05:30
.diff-line-num.new,
2020-04-08 14:13:33 +05:30
.line-coverage.new,
2021-09-04 01:27:46 +05:30
.line-codequality.new,
2017-08-17 22:00:37 +05:30
.line_content.new {
2019-07-07 11:18:12 +05:30
@include diff-background($solarized-light-new-bg,
2017-08-17 22:00:37 +05:30
$solarized-light-new-idiff, $solarized-light-border);
&::before,
a {
color: $solarized-light-line-color-new;
}
}
2022-04-04 11:22:00 +05:30
&:not(.match) .diff-grid-left:hover,
&:not(.match) .diff-grid-right:hover,
2022-01-26 12:08:38 +05:30
&.code-search-line:hover {
2021-01-29 00:20:46 +05:30
.diff-line-num:not(.empty-cell) {
2022-01-26 12:08:38 +05:30
@include line-number-hover;
2021-01-29 00:20:46 +05:30
}
}
2017-08-17 22:00:37 +05:30
.diff-line-num.old,
2020-04-08 14:13:33 +05:30
.line-coverage.old,
2021-09-04 01:27:46 +05:30
.line-codequality.old,
2017-08-17 22:00:37 +05:30
.line_content.old {
2019-07-07 11:18:12 +05:30
@include diff-background($solarized-light-old-bg, $solarized-light-old-idiff, $solarized-light-border);
2017-08-17 22:00:37 +05:30
&::before,
a {
color: $solarized-light-line-color-old;
}
2016-02-05 20:25:01 +05:30
}
2017-08-17 22:00:37 +05:30
.diff-line-num {
&.is-over,
&.hll:not(.empty-cell).is-over {
2022-01-26 12:08:38 +05:30
@include line-number-hover;
2017-08-17 22:00:37 +05:30
}
2016-02-05 20:25:01 +05:30
}
.line_content.match {
2019-07-07 11:18:12 +05:30
@include match-line;
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,
2020-04-08 14:13:33 +05:30
> .line-coverage,
2017-08-17 22:00:37 +05:30
> .line_content {
border-top: 1px solid $solarized-light-expanded-border;
}
}
&.diff-expanded {
> .diff-line-num,
2020-04-08 14:13:33 +05:30
> .line-coverage,
2017-08-17 22:00:37 +05:30
> .line_content {
background: $solarized-light-expanded-bg;
border-color: $solarized-light-expanded-bg;
}
}
2015-04-26 12:48:37 +05:30
}
2021-03-08 18:12:59 +05:30
@include conflict-colors('solarized-light');
2015-04-26 12:48:37 +05:30
// highlight line via anchor
pre .hll {
2017-08-17 22:00:37 +05:30
background-color: $solarized-light-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: $solarized-light-highlight !important;
2015-09-25 12:07:36 +05:30
}
2017-09-10 17:25:29 +05:30
// Links to URLs, emails, or dependencies
.line a {
color: $solarized-light-kd;
}
2015-04-26 12:48:37 +05:30
/* Solarized Light
For use with Jekyll and Pygments
http://ethanschoonover.com/solarized
SOLARIZED HEX ROLE
--------- -------- ------------------------------------------
base01 #586e75 body text / default code / primary content
base1 #93a1a1 comments / secondary content
base3 #fdf6e3 background
orange #cb4b16 constants
red #dc322f regex, special keywords
blue #268bd2 reserved keywords
cyan #2aa198 strings, numbers
green #859900 operators, other keywords
*/
2017-08-17 22:00:37 +05:30
.c { color: $solarized-light-c; } /* Comment */
.err { color: $solarized-light-err; } /* Error */
.g { color: $solarized-light-g; } /* Generic */
.k { color: $solarized-light-k; } /* Keyword */
.l { color: $solarized-light-l; } /* Literal */
.n { color: $solarized-light-n; } /* Name */
.o { color: $solarized-light-o; } /* Operator */
.x { color: $solarized-light-x; } /* Other */
.p { color: $solarized-light-p; } /* Punctuation */
.cm { color: $solarized-light-cm; } /* Comment.Multiline */
.cp { color: $solarized-light-cp; } /* Comment.Preproc */
.c1 { color: $solarized-light-c1; } /* Comment.Single */
.cs { color: $solarized-light-cs; } /* Comment.Special */
2022-04-04 11:22:00 +05:30
.cd { color: $solarized-light-cd; } /* Comment.Doc */
2017-08-17 22:00:37 +05:30
.gd { color: $solarized-light-gd; } /* Generic.Deleted */
2020-07-28 23:09:34 +05:30
.ge { /* Generic.Emph */
color: $solarized-light-ge;
font-style: italic;
}
2017-08-17 22:00:37 +05:30
.gr { color: $solarized-light-gr; } /* Generic.Error */
.gh { color: $solarized-light-gh; } /* Generic.Heading */
.gi { color: $solarized-light-gi; } /* Generic.Inserted */
.go { color: $solarized-light-go; } /* Generic.Output */
.gp { color: $solarized-light-gp; } /* Generic.Prompt */
2020-07-28 23:09:34 +05:30
.gs { /* Generic.Strong */
color: $solarized-light-gs;
font-weight: $gl-font-weight-bold;
}
2017-08-17 22:00:37 +05:30
.gu { color: $solarized-light-gu; } /* Generic.Subheading */
.gt { color: $solarized-light-gt; } /* Generic.Traceback */
.kc { color: $solarized-light-kc; } /* Keyword.Constant */
.kd { color: $solarized-light-kd; } /* Keyword.Declaration */
.kn { color: $solarized-light-kn; } /* Keyword.Namespace */
.kp { color: $solarized-light-kp; } /* Keyword.Pseudo */
.kr { color: $solarized-light-kr; } /* Keyword.Reserved */
.kt { color: $solarized-light-kt; } /* Keyword.Type */
.ld { color: $solarized-light-ld; } /* Literal.Date */
.m { color: $solarized-light-m; } /* Literal.Number */
.s { color: $solarized-light-s; } /* Literal.String */
.na { color: $solarized-light-na; } /* Name.Attribute */
.nb { color: $solarized-light-nb; } /* Name.Builtin */
.nc { color: $solarized-light-nc; } /* Name.Class */
.no { color: $solarized-light-no; } /* Name.Constant */
.nd { color: $solarized-light-nd; } /* Name.Decorator */
.ni { color: $solarized-light-ni; } /* Name.Entity */
.ne { color: $solarized-light-ne; } /* Name.Exception */
.nf { color: $solarized-light-nf; } /* Name.Function */
.nl { color: $solarized-light-nl; } /* Name.Label */
.nn { color: $solarized-light-nn; } /* Name.Namespace */
.nx { color: $solarized-light-nx; } /* Name.Other */
.py { color: $solarized-light-py; } /* Name.Property */
.nt { color: $solarized-light-nt; } /* Name.Tag */
.nv { color: $solarized-light-nv; } /* Name.Variable */
.ow { color: $solarized-light-ow; } /* Operator.Word */
.w { color: $solarized-light-w; } /* Text.Whitespace */
.mf { color: $solarized-light-mf; } /* Literal.Number.Float */
.mh { color: $solarized-light-mh; } /* Literal.Number.Hex */
.mi { color: $solarized-light-mi; } /* Literal.Number.Integer */
.mo { color: $solarized-light-mo; } /* Literal.Number.Oct */
.sb { color: $solarized-light-sb; } /* Literal.String.Backtick */
.sc { color: $solarized-light-sc; } /* Literal.String.Char */
.sd { color: $solarized-light-sd; } /* Literal.String.Doc */
.s2 { color: $solarized-light-s2; } /* Literal.String.Double */
.se { color: $solarized-light-se; } /* Literal.String.Escape */
.sh { color: $solarized-light-sh; } /* Literal.String.Heredoc */
.si { color: $solarized-light-si; } /* Literal.String.Interpol */
.sx { color: $solarized-light-sx; } /* Literal.String.Other */
.sr { color: $solarized-light-sr; } /* Literal.String.Regex */
.s1 { color: $solarized-light-s1; } /* Literal.String.Single */
.ss { color: $solarized-light-ss; } /* Literal.String.Symbol */
.bp { color: $solarized-light-bp; } /* Name.Builtin.Pseudo */
.vc { color: $solarized-light-vc; } /* Name.Variable.Class */
.vg { color: $solarized-light-vg; } /* Name.Variable.Global */
.vi { color: $solarized-light-vi; } /* Name.Variable.Instance */
.il { color: $solarized-light-il; } /* Literal.Number.Integer.Long */
2015-04-26 12:48:37 +05:30
}