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

287 lines
7.7 KiB
SCSS
Raw Normal View History

2019-02-15 15:39:39 +05:30
/*
* None Syntax Colors
*/
2020-07-28 23:09:34 +05:30
@import '../common';
2019-02-15 15:39:39 +05:30
2019-07-07 11:18:12 +05:30
@mixin match-line {
2019-02-15 15:39:39 +05:30
color: $black-transparent;
background-color: $white-normal;
}
2022-06-21 17:19:12 +05:30
:root {
--default-diff-color-deletion: #b4b4b4;
--default-diff-color-addition: #b4b4b4;
}
2019-02-15 15:39:39 +05:30
.code.none {
2022-07-23 23:45:48 +05:30
// Highlight.js theme overrides (https://gitlab.com/gitlab-org/gitlab/-/issues/365167)
// We should be able to remove the overrides once the upstream issue is fixed (https://github.com/sourcegraph/sourcegraph/issues/23251)
&.blob-viewer {
[class^="hljs-"] {
color: $gl-text-color;
}
}
2020-07-28 23:09:34 +05:30
// Line numbers
2021-04-29 21:17:54 +05:30
.file-line-num {
2022-08-27 11:52:29 +05:30
@include line-link($black, 'link');
}
.file-line-blame {
@include line-link($black, 'git');
}
.line-links {
@include line-hover-bg;
2021-04-29 21:17:54 +05:30
}
2019-02-15 15:39:39 +05:30
.line-numbers,
2022-01-26 12:08:38 +05:30
.diff-line-num,
.code-search-line {
2019-02-15 15:39:39 +05:30
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-04-22 19:07:51 +05:30
background-color: $white;
2019-02-15 15:39:39 +05:30
color: $gl-text-color;
}
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
// Diff line
2019-02-15 15:39:39 +05:30
$none-expanded-border: #e0e0e0;
2019-03-02 22:35:43 +05:30
$none-expanded-bg: #e0e0e0;
2019-02-15 15:39:39 +05:30
.line_holder {
&.match .line_content,
.new-nonewline.line_content,
.old-nonewline.line_content {
2019-07-07 11:18:12 +05:30
@include match-line;
2019-02-15 15:39:39 +05:30
}
2020-04-08 14:13:33 +05:30
.line-coverage {
@include line-coverage-border-color($green-500, $orange-500);
2021-09-04 01:27:46 +05:30
}
2020-04-08 14:13:33 +05:30
2021-09-04 01:27:46 +05:30
.line-coverage,
.line-codequality {
2020-04-08 14:13:33 +05:30
&.old,
2022-08-13 15:12:31 +05:30
&.new,
&.new-nomappinginraw,
&.old-nomappinginraw {
2020-04-08 14:13:33 +05:30
background-color: $white-normal;
}
}
2022-04-04 11:22:00 +05:30
&:not(.match) .diff-grid-left:hover,
&:not(.match) .diff-grid-right:hover,
&:not(.match) &.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
}
}
2019-02-15 15:39:39 +05:30
.diff-line-num {
&.old {
a {
color: scale-color($line-number-old, $red: -30%, $green: -30%, $blue: -30%);
}
}
&.new {
a {
color: scale-color($line-number-new, $red: -30%, $green: -30%, $blue: -30%);
}
}
&.is-over,
&.hll:not(.empty-cell).is-over {
2022-01-26 12:08:38 +05:30
@include line-number-hover;
2019-02-15 15:39:39 +05:30
}
&.hll:not(.empty-cell) {
2020-04-22 19:07:51 +05:30
background-color: $white;
2019-03-02 22:35:43 +05:30
border-color: $white-normal;
2019-02-15 15:39:39 +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,
2019-02-15 15:39:39 +05:30
> .line_content {
border-top: 1px solid $none-expanded-border;
}
}
&.diff-expanded {
> .diff-line-num,
2020-04-08 14:13:33 +05:30
> .line-coverage,
2019-02-15 15:39:39 +05:30
> .line_content {
background: $none-expanded-bg;
border-color: $none-expanded-bg;
}
}
.line_content {
2022-08-13 15:12:31 +05:30
&.old, &.old-nomappinginraw {
2019-03-02 22:35:43 +05:30
background-color: $white-normal;
2019-02-15 15:39:39 +05:30
&::before {
2019-03-02 22:35:43 +05:30
color: $gl-text-color;
2019-02-15 15:39:39 +05:30
}
span.idiff {
2019-03-02 22:35:43 +05:30
background-color: $white-normal;
text-decoration: underline;
2019-02-15 15:39:39 +05:30
}
}
2022-08-13 15:12:31 +05:30
&.new, &.new-nomappinginraw {
2019-03-02 22:35:43 +05:30
background-color: $white-normal;
2019-02-15 15:39:39 +05:30
&::before {
2019-03-02 22:35:43 +05:30
color: $gl-text-color;
2019-02-15 15:39:39 +05:30
}
span.idiff {
2019-03-02 22:35:43 +05:30
background-color: $white-normal;
text-decoration: underline;
2019-02-15 15:39:39 +05:30
}
}
&.match {
2019-07-07 11:18:12 +05:30
@include match-line;
2019-02-15 15:39:39 +05:30
}
&.hll:not(.empty-cell) {
2019-03-02 22:35:43 +05:30
background-color: $white-normal;
2019-02-15 15:39:39 +05:30
}
}
}
// highlight line via anchor
pre .hll {
background-color: $white-normal;
}
2020-07-28 23:09:34 +05:30
// Search result highlight
2019-02-15 15:39:39 +05:30
span.highlight_word {
background-color: $white-normal;
}
2020-07-28 23:09:34 +05:30
// Links to URLs, emails, or dependencies
2019-02-15 15:39:39 +05:30
.line a {
color: $gl-text-color;
text-decoration: underline;
}
2020-04-22 19:07:51 +05:30
.hll { background-color: $white; }
2019-02-15 15:39:39 +05:30
.gd {
color: $gl-text-color;
2020-04-22 19:07:51 +05:30
background-color: $white;
2019-02-15 15:39:39 +05:30
.x {
color: $gl-text-color;
2020-04-22 19:07:51 +05:30
background-color: $white;
2019-02-15 15:39:39 +05:30
}
}
.gi {
color: $gl-text-color;
2020-04-22 19:07:51 +05:30
background-color: $white;
2019-02-15 15:39:39 +05:30
.x {
color: $gl-text-color;
2020-04-22 19:07:51 +05:30
background-color: $white;
2019-02-15 15:39:39 +05:30
}
}
.c { color: $gl-text-color; } /* Comment */
.err { color: $gl-text-color; } /* Error */
.g { color: $gl-text-color; } /* Generic */
.k { color: $gl-text-color; } /* Keyword */
.l { color: $gl-text-color; } /* Literal */
.n { color: $gl-text-color; } /* Name */
.o { color: $gl-text-color; } /* Operator */
.x { color: $gl-text-color; } /* Other */
.p { color: $gl-text-color; } /* Punctuation */
.cm { color: $gl-text-color; } /* Comment.Multiline */
.cp { color: $gl-text-color; } /* Comment.Preproc */
.c1 { color: $gl-text-color; } /* Comment.Single */
.cs { color: $gl-text-color; } /* Comment.Special */
2022-04-04 11:22:00 +05:30
.cd { color: $gl-text-color; } /* Comment.Doc */
2019-02-15 15:39:39 +05:30
.ge { color: $gl-text-color; } /* Generic.Emph */
.gr { color: $gl-text-color; } /* Generic.Error */
.gh { color: $gl-text-color; } /* Generic.Heading */
.go { color: $gl-text-color; } /* Generic.Output */
.gp { color: $gl-text-color; } /* Generic.Prompt */
.gs { color: $gl-text-color; } /* Generic.Strong */
.gu { color: $gl-text-color; } /* Generic.Subheading */
.gt { color: $gl-text-color; } /* Generic.Traceback */
.kc { color: $gl-text-color; } /* Keyword.Constant */
.kd { color: $gl-text-color; } /* Keyword.Declaration */
.kn { color: $gl-text-color; } /* Keyword.Namespace */
.kp { color: $gl-text-color; } /* Keyword.Pseudo */
.kr { color: $gl-text-color; } /* Keyword.Reserved */
.kt { color: $gl-text-color; } /* Keyword.Type */
.ld { color: $gl-text-color; } /* Literal.Date */
.m { color: $gl-text-color; } /* Literal.Number */
.s { color: $gl-text-color; } /* Literal.String */
.na { color: $gl-text-color; } /* Name.Attribute */
.nb { color: $gl-text-color; } /* Name.Builtin */
.nc { color: $gl-text-color; } /* Name.Class */
.no { color: $gl-text-color; } /* Name.Constant */
.nd { color: $gl-text-color; } /* Name.Decorator */
.ni { color: $gl-text-color; } /* Name.Entity */
.ne { color: $gl-text-color; } /* Name.Exception */
.nf { color: $gl-text-color; } /* Name.Function */
.nl { color: $gl-text-color; } /* Name.Label */
.nn { color: $gl-text-color; } /* Name.Namespace */
.nx { color: $gl-text-color; } /* Name.Other */
.py { color: $gl-text-color; } /* Name.Property */
.nt { color: $gl-text-color; } /* Name.Tag */
.nv { color: $gl-text-color; } /* Name.Variable */
.ow { color: $gl-text-color; } /* Operator.Word */
.w { color: $gl-text-color; } /* Text.Whitespace */
.mf { color: $gl-text-color; } /* Literal.Number.Float */
.mh { color: $gl-text-color; } /* Literal.Number.Hex */
.mi { color: $gl-text-color; } /* Literal.Number.Integer */
.mo { color: $gl-text-color; } /* Literal.Number.Oct */
.sb { color: $gl-text-color; } /* Literal.String.Backtick */
.sc { color: $gl-text-color; } /* Literal.String.Char */
.sd { color: $gl-text-color; } /* Literal.String.Doc */
.s2 { color: $gl-text-color; } /* Literal.String.Double */
.se { color: $gl-text-color; } /* Literal.String.Escape */
.sh { color: $gl-text-color; } /* Literal.String.Heredoc */
.si { color: $gl-text-color; } /* Literal.String.Interpol */
.sx { color: $gl-text-color; } /* Literal.String.Other */
.sr { color: $gl-text-color; } /* Literal.String.Regex */
.s1 { color: $gl-text-color; } /* Literal.String.Single */
.ss { color: $gl-text-color; } /* Literal.String.Symbol */
.bp { color: $gl-text-color; } /* Name.Builtin.Pseudo */
.vc { color: $gl-text-color; } /* Name.Variable.Class */
.vg { color: $gl-text-color; } /* Name.Variable.Global */
.vi { color: $gl-text-color; } /* Name.Variable.Instance */
.il { color: $gl-text-color; } /* Literal.Number.Integer.Long */
}