Merge branch 'master' into conditional-sigusr1

This commit is contained in:
Dr. Rolf Jansen 2021-03-16 08:45:57 -03:00 committed by GitHub
commit 7a9dc63d74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
32 changed files with 2159 additions and 1653 deletions

View File

@ -5,7 +5,7 @@ flask==1.1.2
idna==2.10 idna==2.10
jinja2==2.11.3 jinja2==2.11.3
lxml==4.6.2 lxml==4.6.2
pygments==2.1.3 pygments==2.8.0
python-dateutil==2.8.1 python-dateutil==2.8.1
pyyaml==5.4.1 pyyaml==5.4.1
requests[socks]==2.25.1 requests[socks]==2.25.1

View File

@ -162,9 +162,7 @@ input[type=checkbox]:not(:checked) + .label_hide_if_checked + .label_hide_if_not
color: #666; color: #666;
font-size: 13px; font-size: 13px;
} }
.result-content .highlight, .result .highlight {
.result-format .highlight,
.result-source .highlight {
font-weight: bold; font-weight: bold;
} }
.result-source { .result-source {
@ -529,277 +527,11 @@ pre,
code { code {
font-family: 'Ubuntu Mono', 'Courier New', 'Lucida Console', monospace !important; font-family: 'Ubuntu Mono', 'Courier New', 'Lucida Console', monospace !important;
} }
.lineno { /*
margin-right: 5px; this file is generated automatically by searx_extra/update/update_pygments.py
} using pygments version 2.8.0
.highlight .hll { */
background-color: #ffffcc; .code-highlight .linenos {
}
.highlight {
background: #f8f8f8;
}
.highlight .c {
color: #556366;
font-style: italic;
}
/* Comment */
.highlight .err {
border: 1px solid #FFA92F;
}
/* Error */
.highlight .k {
color: #BE74D5;
font-weight: bold;
}
/* Keyword */
.highlight .o {
color: #D19A66;
}
/* Operator */
.highlight .cm {
color: #556366;
font-style: italic;
}
/* Comment.Multiline */
.highlight .cp {
color: #BC7A00;
}
/* Comment.Preproc */
.highlight .c1 {
color: #556366;
font-style: italic;
}
/* Comment.Single */
.highlight .cs {
color: #556366;
font-style: italic;
}
/* Comment.Special */
.highlight .gd {
color: #A00000;
}
/* Generic.Deleted */
.highlight .ge {
font-style: italic;
}
/* Generic.Emph */
.highlight .gr {
color: #FF0000;
}
/* Generic.Error */
.highlight .gh {
color: #000080;
font-weight: bold;
}
/* Generic.Heading */
.highlight .gi {
color: #00A000;
}
/* Generic.Inserted */
.highlight .go {
color: #888888;
}
/* Generic.Output */
.highlight .gp {
color: #000080;
font-weight: bold;
}
/* Generic.Prompt */
.highlight .gs {
font-weight: bold;
}
/* Generic.Strong */
.highlight .gu {
color: #800080;
font-weight: bold;
}
/* Generic.Subheading */
.highlight .gt {
color: #0044DD;
}
/* Generic.Traceback */
.highlight .kc {
color: #BE74D5;
font-weight: bold;
}
/* Keyword.Constant */
.highlight .kd {
color: #BE74D5;
font-weight: bold;
}
/* Keyword.Declaration */
.highlight .kn {
color: #BE74D5;
font-weight: bold;
}
/* Keyword.Namespace */
.highlight .kp {
color: #BE74D5;
}
/* Keyword.Pseudo */
.highlight .kr {
color: #BE74D5;
font-weight: bold;
}
/* Keyword.Reserved */
.highlight .kt {
color: #D46C72;
}
/* Keyword.Type */
.highlight .m {
color: #D19A66;
}
/* Literal.Number */
.highlight .s {
color: #86C372;
}
/* Literal.String */
.highlight .na {
color: #7D9029;
}
/* Name.Attribute */
.highlight .nb {
color: #BE74D5;
}
/* Name.Builtin */
.highlight .nc {
color: #61AFEF;
font-weight: bold;
}
/* Name.Class */
.highlight .no {
color: #D19A66;
}
/* Name.Constant */
.highlight .nd {
color: #AA22FF;
}
/* Name.Decorator */
.highlight .ni {
color: #999999;
font-weight: bold;
}
/* Name.Entity */
.highlight .ne {
color: #D2413A;
font-weight: bold;
}
/* Name.Exception */
.highlight .nf {
color: #61AFEF;
}
/* Name.Function */
.highlight .nl {
color: #A0A000;
}
/* Name.Label */
.highlight .nn {
color: #61AFEF;
font-weight: bold;
}
/* Name.Namespace */
.highlight .nt {
color: #BE74D5;
font-weight: bold;
}
/* Name.Tag */
.highlight .nv {
color: #DFC06F;
}
/* Name.Variable */
.highlight .ow {
color: #AA22FF;
font-weight: bold;
}
/* Operator.Word */
.highlight .w {
color: #D7DAE0;
}
/* Text.Whitespace */
.highlight .mf {
color: #D19A66;
}
/* Literal.Number.Float */
.highlight .mh {
color: #D19A66;
}
/* Literal.Number.Hex */
.highlight .mi {
color: #D19A66;
}
/* Literal.Number.Integer */
.highlight .mo {
color: #D19A66;
}
/* Literal.Number.Oct */
.highlight .sb {
color: #86C372;
}
/* Literal.String.Backtick */
.highlight .sc {
color: #86C372;
}
/* Literal.String.Char */
.highlight .sd {
color: #86C372;
font-style: italic;
}
/* Literal.String.Doc */
.highlight .s2 {
color: #86C372;
}
/* Literal.String.Double */
.highlight .se {
color: #BB6622;
font-weight: bold;
}
/* Literal.String.Escape */
.highlight .sh {
color: #86C372;
}
/* Literal.String.Heredoc */
.highlight .si {
color: #BB6688;
font-weight: bold;
}
/* Literal.String.Interpol */
.highlight .sx {
color: #BE74D5;
}
/* Literal.String.Other */
.highlight .sr {
color: #BB6688;
}
/* Literal.String.Regex */
.highlight .s1 {
color: #86C372;
}
/* Literal.String.Single */
.highlight .ss {
color: #DFC06F;
}
/* Literal.String.Symbol */
.highlight .bp {
color: #BE74D5;
}
/* Name.Builtin.Pseudo */
.highlight .vc {
color: #DFC06F;
}
/* Name.Variable.Class */
.highlight .vg {
color: #DFC06F;
}
/* Name.Variable.Global */
.highlight .vi {
color: #DFC06F;
}
/* Name.Variable.Instance */
.highlight .il {
color: #D19A66;
}
/* Literal.Number.Integer.Long */
.highlight .lineno {
-webkit-touch-callout: none; -webkit-touch-callout: none;
-webkit-user-select: none; -webkit-user-select: none;
-khtml-user-select: none; -khtml-user-select: none;
@ -807,26 +539,351 @@ code {
-ms-user-select: none; -ms-user-select: none;
user-select: none; user-select: none;
cursor: default; cursor: default;
color: #556366; margin-right: 8px;
text-align: right;
} }
.highlight .lineno::selection { .code-highlight .linenos::selection {
background: transparent; background: transparent;
/* WebKit/Blink Browsers */ /* WebKit/Blink Browsers */
} }
.highlight .lineno::-moz-selection { .code-highlight .linenos::-moz-selection {
background: transparent; background: transparent;
/* Gecko Browsers */ /* Gecko Browsers */
} }
.highlight pre { .code-highlight pre {
background-color: #282C34; line-height: 125%;
color: #D7DAE0;
border: none;
margin-bottom: 25px;
font-size: 15px;
padding: 20px 10px;
} }
.highlight { .code-highlight td.linenos .normal {
font-weight: 700; color: inherit;
background-color: transparent;
padding-left: 5px;
padding-right: 5px;
}
.code-highlight span.linenos {
color: inherit;
background-color: transparent;
padding-left: 5px;
padding-right: 5px;
}
.code-highlight td.linenos .special {
color: #000000;
background-color: #ffffc0;
padding-left: 5px;
padding-right: 5px;
}
.code-highlight span.linenos.special {
color: #000000;
background-color: #ffffc0;
padding-left: 5px;
padding-right: 5px;
}
.code-highlight .hll {
background-color: #ffffcc;
}
.code-highlight {
background: #282C34;
}
.code-highlight .c {
color: #556366;
font-style: italic;
}
/* Comment */
.code-highlight .err {
border: 1px solid #ff0000;
}
/* Error */
.code-highlight .k {
color: #BE74D5;
font-weight: bold;
}
/* Keyword */
.code-highlight .o {
color: #D19A66;
}
/* Operator */
.code-highlight .ch {
color: #556366;
font-style: italic;
}
/* Comment.Hashbang */
.code-highlight .cm {
color: #556366;
font-style: italic;
}
/* Comment.Multiline */
.code-highlight .cp {
color: #BC7A00;
font-style: italic;
}
/* Comment.Preproc */
.code-highlight .cpf {
color: #556366;
font-style: italic;
}
/* Comment.PreprocFile */
.code-highlight .c1 {
color: #556366;
font-style: italic;
}
/* Comment.Single */
.code-highlight .cs {
color: #556366;
font-style: italic;
}
/* Comment.Special */
.code-highlight .gd {
color: #A00000;
}
/* Generic.Deleted */
.code-highlight .ge {
font-style: italic;
}
/* Generic.Emph */
.code-highlight .gr {
color: #FF0000;
}
/* Generic.Error */
.code-highlight .gh {
color: #000080;
font-weight: bold;
}
/* Generic.Heading */
.code-highlight .gi {
color: #00A000;
}
/* Generic.Inserted */
.code-highlight .go {
color: #888888;
}
/* Generic.Output */
.code-highlight .gp {
color: #000080;
font-weight: bold;
}
/* Generic.Prompt */
.code-highlight .gs {
font-weight: bold;
}
/* Generic.Strong */
.code-highlight .gu {
color: #800080;
font-weight: bold;
}
/* Generic.Subheading */
.code-highlight .gt {
color: #0044DD;
}
/* Generic.Traceback */
.code-highlight .kc {
color: #BE74D5;
font-weight: bold;
}
/* Keyword.Constant */
.code-highlight .kd {
color: #BE74D5;
font-weight: bold;
}
/* Keyword.Declaration */
.code-highlight .kn {
color: #BE74D5;
font-weight: bold;
}
/* Keyword.Namespace */
.code-highlight .kp {
color: #BE74D5;
font-weight: bold;
}
/* Keyword.Pseudo */
.code-highlight .kr {
color: #BE74D5;
font-weight: bold;
}
/* Keyword.Reserved */
.code-highlight .kt {
color: #D46C72;
font-weight: bold;
}
/* Keyword.Type */
.code-highlight .m {
color: #D19A66;
}
/* Literal.Number */
.code-highlight .s {
color: #86C372;
}
/* Literal.String */
.code-highlight .na {
color: #7D9029;
}
/* Name.Attribute */
.code-highlight .nb {
color: #BE74D5;
}
/* Name.Builtin */
.code-highlight .nc {
color: #61AFEF;
font-weight: bold;
}
/* Name.Class */
.code-highlight .no {
color: #D19A66;
}
/* Name.Constant */
.code-highlight .nd {
color: #AA22FF;
}
/* Name.Decorator */
.code-highlight .ni {
color: #999999;
font-weight: bold;
}
/* Name.Entity */
.code-highlight .ne {
color: #D2413A;
font-weight: bold;
}
/* Name.Exception */
.code-highlight .nf {
color: #61AFEF;
}
/* Name.Function */
.code-highlight .nl {
color: #A0A000;
}
/* Name.Label */
.code-highlight .nn {
color: #61AFEF;
font-weight: bold;
}
/* Name.Namespace */
.code-highlight .nt {
color: #BE74D5;
font-weight: bold;
}
/* Name.Tag */
.code-highlight .nv {
color: #DFC06F;
}
/* Name.Variable */
.code-highlight .ow {
color: #AA22FF;
font-weight: bold;
}
/* Operator.Word */
.code-highlight .w {
color: #D7DAE0;
}
/* Text.Whitespace */
.code-highlight .mb {
color: #D19A66;
}
/* Literal.Number.Bin */
.code-highlight .mf {
color: #D19A66;
}
/* Literal.Number.Float */
.code-highlight .mh {
color: #D19A66;
}
/* Literal.Number.Hex */
.code-highlight .mi {
color: #D19A66;
}
/* Literal.Number.Integer */
.code-highlight .mo {
color: #D19A66;
}
/* Literal.Number.Oct */
.code-highlight .sa {
color: #86C372;
}
/* Literal.String.Affix */
.code-highlight .sb {
color: #86C372;
}
/* Literal.String.Backtick */
.code-highlight .sc {
color: #86C372;
}
/* Literal.String.Char */
.code-highlight .dl {
color: #86C372;
}
/* Literal.String.Delimiter */
.code-highlight .sd {
color: #86C372;
font-style: italic;
}
/* Literal.String.Doc */
.code-highlight .s2 {
color: #86C372;
}
/* Literal.String.Double */
.code-highlight .se {
color: #BB6622;
font-weight: bold;
}
/* Literal.String.Escape */
.code-highlight .sh {
color: #86C372;
}
/* Literal.String.Heredoc */
.code-highlight .si {
color: #BB6688;
font-weight: bold;
}
/* Literal.String.Interpol */
.code-highlight .sx {
color: #BE74D5;
}
/* Literal.String.Other */
.code-highlight .sr {
color: #BB6688;
}
/* Literal.String.Regex */
.code-highlight .s1 {
color: #86C372;
}
/* Literal.String.Single */
.code-highlight .ss {
color: #DFC06F;
}
/* Literal.String.Symbol */
.code-highlight .bp {
color: #BE74D5;
}
/* Name.Builtin.Pseudo */
.code-highlight .fm {
color: #61AFEF;
}
/* Name.Function.Magic */
.code-highlight .vc {
color: #DFC06F;
}
/* Name.Variable.Class */
.code-highlight .vg {
color: #DFC06F;
}
/* Name.Variable.Global */
.code-highlight .vi {
color: #DFC06F;
}
/* Name.Variable.Instance */
.code-highlight .vm {
color: #DFC06F;
}
/* Name.Variable.Magic */
.code-highlight .il {
color: #D19A66;
}
/* Literal.Number.Integer.Long */
.code-highlight pre {
margin-bottom: 25px;
padding: 20px 10px;
background-color: inherit;
color: inherit;
border: inherit;
color: #D7DAE0;
} }
.table > tbody > tr > td, .table > tbody > tr > td,
.table > tbody > tr > th { .table > tbody > tr > th {

View File

@ -135,9 +135,7 @@ input[type=checkbox]:not(:checked) + .label_hide_if_checked + .label_hide_if_not
color: #666; color: #666;
font-size: 13px; font-size: 13px;
} }
.result-content .highlight, .result .highlight {
.result-format .highlight,
.result-source .highlight {
font-weight: bold; font-weight: bold;
} }
.result-source { .result-source {
@ -502,277 +500,11 @@ pre,
code { code {
font-family: 'Ubuntu Mono', 'Courier New', 'Lucida Console', monospace !important; font-family: 'Ubuntu Mono', 'Courier New', 'Lucida Console', monospace !important;
} }
.lineno { /*
margin-right: 5px; this file is generated automatically by searx_extra/update/update_pygments.py
} using pygments version 2.8.0
.highlight .hll { */
background-color: #ffffcc; .code-highlight .linenos {
}
.highlight {
background: #f8f8f8;
}
.highlight .c {
color: #556366;
font-style: italic;
}
/* Comment */
.highlight .err {
border: 1px solid #FFA92F;
}
/* Error */
.highlight .k {
color: #BE74D5;
font-weight: bold;
}
/* Keyword */
.highlight .o {
color: #D19A66;
}
/* Operator */
.highlight .cm {
color: #556366;
font-style: italic;
}
/* Comment.Multiline */
.highlight .cp {
color: #BC7A00;
}
/* Comment.Preproc */
.highlight .c1 {
color: #556366;
font-style: italic;
}
/* Comment.Single */
.highlight .cs {
color: #556366;
font-style: italic;
}
/* Comment.Special */
.highlight .gd {
color: #A00000;
}
/* Generic.Deleted */
.highlight .ge {
font-style: italic;
}
/* Generic.Emph */
.highlight .gr {
color: #FF0000;
}
/* Generic.Error */
.highlight .gh {
color: #000080;
font-weight: bold;
}
/* Generic.Heading */
.highlight .gi {
color: #00A000;
}
/* Generic.Inserted */
.highlight .go {
color: #888888;
}
/* Generic.Output */
.highlight .gp {
color: #000080;
font-weight: bold;
}
/* Generic.Prompt */
.highlight .gs {
font-weight: bold;
}
/* Generic.Strong */
.highlight .gu {
color: #800080;
font-weight: bold;
}
/* Generic.Subheading */
.highlight .gt {
color: #0044DD;
}
/* Generic.Traceback */
.highlight .kc {
color: #BE74D5;
font-weight: bold;
}
/* Keyword.Constant */
.highlight .kd {
color: #BE74D5;
font-weight: bold;
}
/* Keyword.Declaration */
.highlight .kn {
color: #BE74D5;
font-weight: bold;
}
/* Keyword.Namespace */
.highlight .kp {
color: #BE74D5;
}
/* Keyword.Pseudo */
.highlight .kr {
color: #BE74D5;
font-weight: bold;
}
/* Keyword.Reserved */
.highlight .kt {
color: #D46C72;
}
/* Keyword.Type */
.highlight .m {
color: #D19A66;
}
/* Literal.Number */
.highlight .s {
color: #86C372;
}
/* Literal.String */
.highlight .na {
color: #7D9029;
}
/* Name.Attribute */
.highlight .nb {
color: #BE74D5;
}
/* Name.Builtin */
.highlight .nc {
color: #61AFEF;
font-weight: bold;
}
/* Name.Class */
.highlight .no {
color: #D19A66;
}
/* Name.Constant */
.highlight .nd {
color: #AA22FF;
}
/* Name.Decorator */
.highlight .ni {
color: #999999;
font-weight: bold;
}
/* Name.Entity */
.highlight .ne {
color: #D2413A;
font-weight: bold;
}
/* Name.Exception */
.highlight .nf {
color: #61AFEF;
}
/* Name.Function */
.highlight .nl {
color: #A0A000;
}
/* Name.Label */
.highlight .nn {
color: #61AFEF;
font-weight: bold;
}
/* Name.Namespace */
.highlight .nt {
color: #BE74D5;
font-weight: bold;
}
/* Name.Tag */
.highlight .nv {
color: #DFC06F;
}
/* Name.Variable */
.highlight .ow {
color: #AA22FF;
font-weight: bold;
}
/* Operator.Word */
.highlight .w {
color: #D7DAE0;
}
/* Text.Whitespace */
.highlight .mf {
color: #D19A66;
}
/* Literal.Number.Float */
.highlight .mh {
color: #D19A66;
}
/* Literal.Number.Hex */
.highlight .mi {
color: #D19A66;
}
/* Literal.Number.Integer */
.highlight .mo {
color: #D19A66;
}
/* Literal.Number.Oct */
.highlight .sb {
color: #86C372;
}
/* Literal.String.Backtick */
.highlight .sc {
color: #86C372;
}
/* Literal.String.Char */
.highlight .sd {
color: #86C372;
font-style: italic;
}
/* Literal.String.Doc */
.highlight .s2 {
color: #86C372;
}
/* Literal.String.Double */
.highlight .se {
color: #BB6622;
font-weight: bold;
}
/* Literal.String.Escape */
.highlight .sh {
color: #86C372;
}
/* Literal.String.Heredoc */
.highlight .si {
color: #BB6688;
font-weight: bold;
}
/* Literal.String.Interpol */
.highlight .sx {
color: #BE74D5;
}
/* Literal.String.Other */
.highlight .sr {
color: #BB6688;
}
/* Literal.String.Regex */
.highlight .s1 {
color: #86C372;
}
/* Literal.String.Single */
.highlight .ss {
color: #DFC06F;
}
/* Literal.String.Symbol */
.highlight .bp {
color: #BE74D5;
}
/* Name.Builtin.Pseudo */
.highlight .vc {
color: #DFC06F;
}
/* Name.Variable.Class */
.highlight .vg {
color: #DFC06F;
}
/* Name.Variable.Global */
.highlight .vi {
color: #DFC06F;
}
/* Name.Variable.Instance */
.highlight .il {
color: #D19A66;
}
/* Literal.Number.Integer.Long */
.highlight .lineno {
-webkit-touch-callout: none; -webkit-touch-callout: none;
-webkit-user-select: none; -webkit-user-select: none;
-khtml-user-select: none; -khtml-user-select: none;
@ -780,26 +512,351 @@ code {
-ms-user-select: none; -ms-user-select: none;
user-select: none; user-select: none;
cursor: default; cursor: default;
color: #556366; margin-right: 8px;
text-align: right;
} }
.highlight .lineno::selection { .code-highlight .linenos::selection {
background: transparent; background: transparent;
/* WebKit/Blink Browsers */ /* WebKit/Blink Browsers */
} }
.highlight .lineno::-moz-selection { .code-highlight .linenos::-moz-selection {
background: transparent; background: transparent;
/* Gecko Browsers */ /* Gecko Browsers */
} }
.highlight pre { .code-highlight pre {
background-color: #282C34; line-height: 125%;
color: #D7DAE0;
border: none;
margin-bottom: 25px;
font-size: 15px;
padding: 20px 10px;
} }
.highlight { .code-highlight td.linenos .normal {
font-weight: 700; color: inherit;
background-color: transparent;
padding-left: 5px;
padding-right: 5px;
}
.code-highlight span.linenos {
color: inherit;
background-color: transparent;
padding-left: 5px;
padding-right: 5px;
}
.code-highlight td.linenos .special {
color: #000000;
background-color: #ffffc0;
padding-left: 5px;
padding-right: 5px;
}
.code-highlight span.linenos.special {
color: #000000;
background-color: #ffffc0;
padding-left: 5px;
padding-right: 5px;
}
.code-highlight .hll {
background-color: #ffffcc;
}
.code-highlight {
background: #282C34;
}
.code-highlight .c {
color: #556366;
font-style: italic;
}
/* Comment */
.code-highlight .err {
border: 1px solid #ff0000;
}
/* Error */
.code-highlight .k {
color: #BE74D5;
font-weight: bold;
}
/* Keyword */
.code-highlight .o {
color: #D19A66;
}
/* Operator */
.code-highlight .ch {
color: #556366;
font-style: italic;
}
/* Comment.Hashbang */
.code-highlight .cm {
color: #556366;
font-style: italic;
}
/* Comment.Multiline */
.code-highlight .cp {
color: #BC7A00;
font-style: italic;
}
/* Comment.Preproc */
.code-highlight .cpf {
color: #556366;
font-style: italic;
}
/* Comment.PreprocFile */
.code-highlight .c1 {
color: #556366;
font-style: italic;
}
/* Comment.Single */
.code-highlight .cs {
color: #556366;
font-style: italic;
}
/* Comment.Special */
.code-highlight .gd {
color: #A00000;
}
/* Generic.Deleted */
.code-highlight .ge {
font-style: italic;
}
/* Generic.Emph */
.code-highlight .gr {
color: #FF0000;
}
/* Generic.Error */
.code-highlight .gh {
color: #000080;
font-weight: bold;
}
/* Generic.Heading */
.code-highlight .gi {
color: #00A000;
}
/* Generic.Inserted */
.code-highlight .go {
color: #888888;
}
/* Generic.Output */
.code-highlight .gp {
color: #000080;
font-weight: bold;
}
/* Generic.Prompt */
.code-highlight .gs {
font-weight: bold;
}
/* Generic.Strong */
.code-highlight .gu {
color: #800080;
font-weight: bold;
}
/* Generic.Subheading */
.code-highlight .gt {
color: #0044DD;
}
/* Generic.Traceback */
.code-highlight .kc {
color: #BE74D5;
font-weight: bold;
}
/* Keyword.Constant */
.code-highlight .kd {
color: #BE74D5;
font-weight: bold;
}
/* Keyword.Declaration */
.code-highlight .kn {
color: #BE74D5;
font-weight: bold;
}
/* Keyword.Namespace */
.code-highlight .kp {
color: #BE74D5;
font-weight: bold;
}
/* Keyword.Pseudo */
.code-highlight .kr {
color: #BE74D5;
font-weight: bold;
}
/* Keyword.Reserved */
.code-highlight .kt {
color: #D46C72;
font-weight: bold;
}
/* Keyword.Type */
.code-highlight .m {
color: #D19A66;
}
/* Literal.Number */
.code-highlight .s {
color: #86C372;
}
/* Literal.String */
.code-highlight .na {
color: #7D9029;
}
/* Name.Attribute */
.code-highlight .nb {
color: #BE74D5;
}
/* Name.Builtin */
.code-highlight .nc {
color: #61AFEF;
font-weight: bold;
}
/* Name.Class */
.code-highlight .no {
color: #D19A66;
}
/* Name.Constant */
.code-highlight .nd {
color: #AA22FF;
}
/* Name.Decorator */
.code-highlight .ni {
color: #999999;
font-weight: bold;
}
/* Name.Entity */
.code-highlight .ne {
color: #D2413A;
font-weight: bold;
}
/* Name.Exception */
.code-highlight .nf {
color: #61AFEF;
}
/* Name.Function */
.code-highlight .nl {
color: #A0A000;
}
/* Name.Label */
.code-highlight .nn {
color: #61AFEF;
font-weight: bold;
}
/* Name.Namespace */
.code-highlight .nt {
color: #BE74D5;
font-weight: bold;
}
/* Name.Tag */
.code-highlight .nv {
color: #DFC06F;
}
/* Name.Variable */
.code-highlight .ow {
color: #AA22FF;
font-weight: bold;
}
/* Operator.Word */
.code-highlight .w {
color: #D7DAE0;
}
/* Text.Whitespace */
.code-highlight .mb {
color: #D19A66;
}
/* Literal.Number.Bin */
.code-highlight .mf {
color: #D19A66;
}
/* Literal.Number.Float */
.code-highlight .mh {
color: #D19A66;
}
/* Literal.Number.Hex */
.code-highlight .mi {
color: #D19A66;
}
/* Literal.Number.Integer */
.code-highlight .mo {
color: #D19A66;
}
/* Literal.Number.Oct */
.code-highlight .sa {
color: #86C372;
}
/* Literal.String.Affix */
.code-highlight .sb {
color: #86C372;
}
/* Literal.String.Backtick */
.code-highlight .sc {
color: #86C372;
}
/* Literal.String.Char */
.code-highlight .dl {
color: #86C372;
}
/* Literal.String.Delimiter */
.code-highlight .sd {
color: #86C372;
font-style: italic;
}
/* Literal.String.Doc */
.code-highlight .s2 {
color: #86C372;
}
/* Literal.String.Double */
.code-highlight .se {
color: #BB6622;
font-weight: bold;
}
/* Literal.String.Escape */
.code-highlight .sh {
color: #86C372;
}
/* Literal.String.Heredoc */
.code-highlight .si {
color: #BB6688;
font-weight: bold;
}
/* Literal.String.Interpol */
.code-highlight .sx {
color: #BE74D5;
}
/* Literal.String.Other */
.code-highlight .sr {
color: #BB6688;
}
/* Literal.String.Regex */
.code-highlight .s1 {
color: #86C372;
}
/* Literal.String.Single */
.code-highlight .ss {
color: #DFC06F;
}
/* Literal.String.Symbol */
.code-highlight .bp {
color: #BE74D5;
}
/* Name.Builtin.Pseudo */
.code-highlight .fm {
color: #61AFEF;
}
/* Name.Function.Magic */
.code-highlight .vc {
color: #DFC06F;
}
/* Name.Variable.Class */
.code-highlight .vg {
color: #DFC06F;
}
/* Name.Variable.Global */
.code-highlight .vi {
color: #DFC06F;
}
/* Name.Variable.Instance */
.code-highlight .vm {
color: #DFC06F;
}
/* Name.Variable.Magic */
.code-highlight .il {
color: #D19A66;
}
/* Literal.Number.Integer.Long */
.code-highlight pre {
margin-bottom: 25px;
padding: 20px 10px;
background-color: inherit;
color: inherit;
border: inherit;
color: #D7DAE0;
} }
.table > tbody > tr > td, .table > tbody > tr > td,
.table > tbody > tr > th { .table > tbody > tr > th {
@ -872,9 +929,6 @@ ul.nav li a {
.table-striped tr th { .table-striped tr th {
border-color: #4d3f43 !important; border-color: #4d3f43 !important;
} }
.highlight {
background: #333333 !important;
}
/*nav*/ /*nav*/
.navbar { .navbar {
background: #1d1f21 none; background: #1d1f21 none;

Binary file not shown.

View File

@ -156,6 +156,9 @@ input[type=checkbox]:not(:checked) + .label_hide_if_checked + .label_hide_if_not
outline: 0 none; outline: 0 none;
position: relative; position: relative;
} }
.highlight {
font-weight: 700;
}
.infobox img { .infobox img {
max-height: 250px; max-height: 250px;
} }
@ -303,274 +306,11 @@ input[type=checkbox]:not(:checked) + .label_hide_if_checked + .label_hide_if_not
.cursor-pointer { .cursor-pointer {
cursor: pointer !important; cursor: pointer !important;
} }
.highlight .hll { /*
background-color: #ffffcc; this file is generated automatically by searx_extra/update/update_pygments.py
} using pygments version 2.8.0
.highlight { */
background: #f8f8f8; .code-highlight .linenos {
}
.highlight .c {
color: #408080;
font-style: italic;
}
/* Comment */
.highlight .err {
border: 1px solid #FF0000;
}
/* Error */
.highlight .k {
color: #008000;
font-weight: bold;
}
/* Keyword */
.highlight .o {
color: #666666;
}
/* Operator */
.highlight .cm {
color: #408080;
font-style: italic;
}
/* Comment.Multiline */
.highlight .cp {
color: #BC7A00;
}
/* Comment.Preproc */
.highlight .c1 {
color: #408080;
font-style: italic;
}
/* Comment.Single */
.highlight .cs {
color: #408080;
font-style: italic;
}
/* Comment.Special */
.highlight .gd {
color: #A00000;
}
/* Generic.Deleted */
.highlight .ge {
font-style: italic;
}
/* Generic.Emph */
.highlight .gr {
color: #FF0000;
}
/* Generic.Error */
.highlight .gh {
color: #000080;
font-weight: bold;
}
/* Generic.Heading */
.highlight .gi {
color: #00A000;
}
/* Generic.Inserted */
.highlight .go {
color: #888888;
}
/* Generic.Output */
.highlight .gp {
color: #000080;
font-weight: bold;
}
/* Generic.Prompt */
.highlight .gs {
font-weight: bold;
}
/* Generic.Strong */
.highlight .gu {
color: #800080;
font-weight: bold;
}
/* Generic.Subheading */
.highlight .gt {
color: #0044DD;
}
/* Generic.Traceback */
.highlight .kc {
color: #008000;
font-weight: bold;
}
/* Keyword.Constant */
.highlight .kd {
color: #008000;
font-weight: bold;
}
/* Keyword.Declaration */
.highlight .kn {
color: #008000;
font-weight: bold;
}
/* Keyword.Namespace */
.highlight .kp {
color: #008000;
}
/* Keyword.Pseudo */
.highlight .kr {
color: #008000;
font-weight: bold;
}
/* Keyword.Reserved */
.highlight .kt {
color: #B00040;
}
/* Keyword.Type */
.highlight .m {
color: #666666;
}
/* Literal.Number */
.highlight .s {
color: #BA2121;
}
/* Literal.String */
.highlight .na {
color: #7D9029;
}
/* Name.Attribute */
.highlight .nb {
color: #008000;
}
/* Name.Builtin */
.highlight .nc {
color: #0000FF;
font-weight: bold;
}
/* Name.Class */
.highlight .no {
color: #880000;
}
/* Name.Constant */
.highlight .nd {
color: #AA22FF;
}
/* Name.Decorator */
.highlight .ni {
color: #999999;
font-weight: bold;
}
/* Name.Entity */
.highlight .ne {
color: #D2413A;
font-weight: bold;
}
/* Name.Exception */
.highlight .nf {
color: #0000FF;
}
/* Name.Function */
.highlight .nl {
color: #A0A000;
}
/* Name.Label */
.highlight .nn {
color: #0000FF;
font-weight: bold;
}
/* Name.Namespace */
.highlight .nt {
color: #008000;
font-weight: bold;
}
/* Name.Tag */
.highlight .nv {
color: #19177C;
}
/* Name.Variable */
.highlight .ow {
color: #AA22FF;
font-weight: bold;
}
/* Operator.Word */
.highlight .w {
color: #bbbbbb;
}
/* Text.Whitespace */
.highlight .mf {
color: #666666;
}
/* Literal.Number.Float */
.highlight .mh {
color: #666666;
}
/* Literal.Number.Hex */
.highlight .mi {
color: #666666;
}
/* Literal.Number.Integer */
.highlight .mo {
color: #666666;
}
/* Literal.Number.Oct */
.highlight .sb {
color: #BA2121;
}
/* Literal.String.Backtick */
.highlight .sc {
color: #BA2121;
}
/* Literal.String.Char */
.highlight .sd {
color: #BA2121;
font-style: italic;
}
/* Literal.String.Doc */
.highlight .s2 {
color: #BA2121;
}
/* Literal.String.Double */
.highlight .se {
color: #BB6622;
font-weight: bold;
}
/* Literal.String.Escape */
.highlight .sh {
color: #BA2121;
}
/* Literal.String.Heredoc */
.highlight .si {
color: #BB6688;
font-weight: bold;
}
/* Literal.String.Interpol */
.highlight .sx {
color: #008000;
}
/* Literal.String.Other */
.highlight .sr {
color: #BB6688;
}
/* Literal.String.Regex */
.highlight .s1 {
color: #BA2121;
}
/* Literal.String.Single */
.highlight .ss {
color: #19177C;
}
/* Literal.String.Symbol */
.highlight .bp {
color: #008000;
}
/* Name.Builtin.Pseudo */
.highlight .vc {
color: #19177C;
}
/* Name.Variable.Class */
.highlight .vg {
color: #19177C;
}
/* Name.Variable.Global */
.highlight .vi {
color: #19177C;
}
/* Name.Variable.Instance */
.highlight .il {
color: #666666;
}
/* Literal.Number.Integer.Long */
.highlight .lineno {
-webkit-touch-callout: none; -webkit-touch-callout: none;
-webkit-user-select: none; -webkit-user-select: none;
-khtml-user-select: none; -khtml-user-select: none;
@ -578,15 +318,341 @@ input[type=checkbox]:not(:checked) + .label_hide_if_checked + .label_hide_if_not
-ms-user-select: none; -ms-user-select: none;
user-select: none; user-select: none;
cursor: default; cursor: default;
margin-right: 8px;
text-align: right;
} }
.highlight .lineno::selection { .code-highlight .linenos::selection {
background: transparent; background: transparent;
/* WebKit/Blink Browsers */ /* WebKit/Blink Browsers */
} }
.highlight .lineno::-moz-selection { .code-highlight .linenos::-moz-selection {
background: transparent; background: transparent;
/* Gecko Browsers */ /* Gecko Browsers */
} }
.code-highlight pre {
line-height: 125%;
}
.code-highlight td.linenos .normal {
color: inherit;
background-color: transparent;
padding-left: 5px;
padding-right: 5px;
}
.code-highlight span.linenos {
color: inherit;
background-color: transparent;
padding-left: 5px;
padding-right: 5px;
}
.code-highlight td.linenos .special {
color: #000000;
background-color: #ffffc0;
padding-left: 5px;
padding-right: 5px;
}
.code-highlight span.linenos.special {
color: #000000;
background-color: #ffffc0;
padding-left: 5px;
padding-right: 5px;
}
.code-highlight .hll {
background-color: #ffffcc;
}
.code-highlight {
background: #f8f8f8;
}
.code-highlight .c {
color: #408080;
font-style: italic;
}
/* Comment */
.code-highlight .err {
border: 1px solid #FF0000;
}
/* Error */
.code-highlight .k {
color: #008000;
font-weight: bold;
}
/* Keyword */
.code-highlight .o {
color: #666666;
}
/* Operator */
.code-highlight .ch {
color: #408080;
font-style: italic;
}
/* Comment.Hashbang */
.code-highlight .cm {
color: #408080;
font-style: italic;
}
/* Comment.Multiline */
.code-highlight .cp {
color: #BC7A00;
}
/* Comment.Preproc */
.code-highlight .cpf {
color: #408080;
font-style: italic;
}
/* Comment.PreprocFile */
.code-highlight .c1 {
color: #408080;
font-style: italic;
}
/* Comment.Single */
.code-highlight .cs {
color: #408080;
font-style: italic;
}
/* Comment.Special */
.code-highlight .gd {
color: #A00000;
}
/* Generic.Deleted */
.code-highlight .ge {
font-style: italic;
}
/* Generic.Emph */
.code-highlight .gr {
color: #FF0000;
}
/* Generic.Error */
.code-highlight .gh {
color: #000080;
font-weight: bold;
}
/* Generic.Heading */
.code-highlight .gi {
color: #00A000;
}
/* Generic.Inserted */
.code-highlight .go {
color: #888888;
}
/* Generic.Output */
.code-highlight .gp {
color: #000080;
font-weight: bold;
}
/* Generic.Prompt */
.code-highlight .gs {
font-weight: bold;
}
/* Generic.Strong */
.code-highlight .gu {
color: #800080;
font-weight: bold;
}
/* Generic.Subheading */
.code-highlight .gt {
color: #0044DD;
}
/* Generic.Traceback */
.code-highlight .kc {
color: #008000;
font-weight: bold;
}
/* Keyword.Constant */
.code-highlight .kd {
color: #008000;
font-weight: bold;
}
/* Keyword.Declaration */
.code-highlight .kn {
color: #008000;
font-weight: bold;
}
/* Keyword.Namespace */
.code-highlight .kp {
color: #008000;
}
/* Keyword.Pseudo */
.code-highlight .kr {
color: #008000;
font-weight: bold;
}
/* Keyword.Reserved */
.code-highlight .kt {
color: #B00040;
}
/* Keyword.Type */
.code-highlight .m {
color: #666666;
}
/* Literal.Number */
.code-highlight .s {
color: #BA2121;
}
/* Literal.String */
.code-highlight .na {
color: #7D9029;
}
/* Name.Attribute */
.code-highlight .nb {
color: #008000;
}
/* Name.Builtin */
.code-highlight .nc {
color: #0000FF;
font-weight: bold;
}
/* Name.Class */
.code-highlight .no {
color: #880000;
}
/* Name.Constant */
.code-highlight .nd {
color: #AA22FF;
}
/* Name.Decorator */
.code-highlight .ni {
color: #999999;
font-weight: bold;
}
/* Name.Entity */
.code-highlight .ne {
color: #D2413A;
font-weight: bold;
}
/* Name.Exception */
.code-highlight .nf {
color: #0000FF;
}
/* Name.Function */
.code-highlight .nl {
color: #A0A000;
}
/* Name.Label */
.code-highlight .nn {
color: #0000FF;
font-weight: bold;
}
/* Name.Namespace */
.code-highlight .nt {
color: #008000;
font-weight: bold;
}
/* Name.Tag */
.code-highlight .nv {
color: #19177C;
}
/* Name.Variable */
.code-highlight .ow {
color: #AA22FF;
font-weight: bold;
}
/* Operator.Word */
.code-highlight .w {
color: #bbbbbb;
}
/* Text.Whitespace */
.code-highlight .mb {
color: #666666;
}
/* Literal.Number.Bin */
.code-highlight .mf {
color: #666666;
}
/* Literal.Number.Float */
.code-highlight .mh {
color: #666666;
}
/* Literal.Number.Hex */
.code-highlight .mi {
color: #666666;
}
/* Literal.Number.Integer */
.code-highlight .mo {
color: #666666;
}
/* Literal.Number.Oct */
.code-highlight .sa {
color: #BA2121;
}
/* Literal.String.Affix */
.code-highlight .sb {
color: #BA2121;
}
/* Literal.String.Backtick */
.code-highlight .sc {
color: #BA2121;
}
/* Literal.String.Char */
.code-highlight .dl {
color: #BA2121;
}
/* Literal.String.Delimiter */
.code-highlight .sd {
color: #BA2121;
font-style: italic;
}
/* Literal.String.Doc */
.code-highlight .s2 {
color: #BA2121;
}
/* Literal.String.Double */
.code-highlight .se {
color: #BB6622;
font-weight: bold;
}
/* Literal.String.Escape */
.code-highlight .sh {
color: #BA2121;
}
/* Literal.String.Heredoc */
.code-highlight .si {
color: #BB6688;
font-weight: bold;
}
/* Literal.String.Interpol */
.code-highlight .sx {
color: #008000;
}
/* Literal.String.Other */
.code-highlight .sr {
color: #BB6688;
}
/* Literal.String.Regex */
.code-highlight .s1 {
color: #BA2121;
}
/* Literal.String.Single */
.code-highlight .ss {
color: #19177C;
}
/* Literal.String.Symbol */
.code-highlight .bp {
color: #008000;
}
/* Name.Builtin.Pseudo */
.code-highlight .fm {
color: #0000FF;
}
/* Name.Function.Magic */
.code-highlight .vc {
color: #19177C;
}
/* Name.Variable.Class */
.code-highlight .vg {
color: #19177C;
}
/* Name.Variable.Global */
.code-highlight .vi {
color: #19177C;
}
/* Name.Variable.Instance */
.code-highlight .vm {
color: #19177C;
}
/* Name.Variable.Magic */
.code-highlight .il {
color: #666666;
}
/* Literal.Number.Integer.Long */
.searx-navbar { .searx-navbar {
background: #eee; background: #eee;
color: #aaa; color: #aaa;

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -71,10 +71,6 @@ ul.nav li a {
border-color: #4d3f43 !important; border-color: #4d3f43 !important;
} }
.highlight {
background: #333333 !important;
}
/*nav*/ /*nav*/
.navbar{ .navbar{
background:#1d1f21 none; background:#1d1f21 none;

View File

@ -1,101 +1,14 @@
pre, code{ pre, code {
font-family: 'Ubuntu Mono', 'Courier New', 'Lucida Console', monospace !important; font-family: 'Ubuntu Mono', 'Courier New', 'Lucida Console', monospace !important;
} }
.lineno{ @import "pygments.less";
margin-right: 5px;
}
.highlight .hll { background-color: #ffffcc } .code-highlight pre {
.highlight { background: #f8f8f8; }
.highlight .c { color: #556366; font-style: italic } /* Comment */
.highlight .err { border: 1px solid @orange } /* Error */
.highlight .k { color: #BE74D5; font-weight: bold } /* Keyword */
.highlight .o { color: #D19A66 } /* Operator */
.highlight .cm { color: #556366; font-style: italic } /* Comment.Multiline */
.highlight .cp { color: #BC7A00 } /* Comment.Preproc */
.highlight .c1 { color: #556366; font-style: italic } /* Comment.Single */
.highlight .cs { color: #556366; font-style: italic } /* Comment.Special */
.highlight .gd { color: #A00000 } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gr { color: #FF0000 } /* Generic.Error */
.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
.highlight .gi { color: #00A000 } /* Generic.Inserted */
.highlight .go { color: #888888 } /* Generic.Output */
.highlight .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
.highlight .gt { color: #0044DD } /* Generic.Traceback */
.highlight .kc { color: #BE74D5; font-weight: bold } /* Keyword.Constant */
.highlight .kd { color: #BE74D5; font-weight: bold } /* Keyword.Declaration */
.highlight .kn { color: #BE74D5; font-weight: bold } /* Keyword.Namespace */
.highlight .kp { color: #BE74D5 } /* Keyword.Pseudo */
.highlight .kr { color: #BE74D5; font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #D46C72 } /* Keyword.Type */
.highlight .m { color: #D19A66 } /* Literal.Number */
.highlight .s { color: #86C372 } /* Literal.String */
.highlight .na { color: #7D9029 } /* Name.Attribute */
.highlight .nb { color: #BE74D5 } /* Name.Builtin */
.highlight .nc { color: #61AFEF; font-weight: bold } /* Name.Class */
.highlight .no { color: #D19A66 } /* Name.Constant */
.highlight .nd { color: #AA22FF } /* Name.Decorator */
.highlight .ni { color: #999999; font-weight: bold } /* Name.Entity */
.highlight .ne { color: #D2413A; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #61AFEF } /* Name.Function */
.highlight .nl { color: #A0A000 } /* Name.Label */
.highlight .nn { color: #61AFEF; font-weight: bold } /* Name.Namespace */
.highlight .nt { color: #BE74D5; font-weight: bold } /* Name.Tag */
.highlight .nv { color: #DFC06F } /* Name.Variable */
.highlight .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
.highlight .w { color: #D7DAE0 } /* Text.Whitespace */
.highlight .mf { color: #D19A66 } /* Literal.Number.Float */
.highlight .mh { color: #D19A66 } /* Literal.Number.Hex */
.highlight .mi { color: #D19A66 } /* Literal.Number.Integer */
.highlight .mo { color: #D19A66 } /* Literal.Number.Oct */
.highlight .sb { color: #86C372 } /* Literal.String.Backtick */
.highlight .sc { color: #86C372 } /* Literal.String.Char */
.highlight .sd { color: #86C372; font-style: italic } /* Literal.String.Doc */
.highlight .s2 { color: #86C372 } /* Literal.String.Double */
.highlight .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */
.highlight .sh { color: #86C372 } /* Literal.String.Heredoc */
.highlight .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */
.highlight .sx { color: #BE74D5 } /* Literal.String.Other */
.highlight .sr { color: #BB6688 } /* Literal.String.Regex */
.highlight .s1 { color: #86C372 } /* Literal.String.Single */
.highlight .ss { color: #DFC06F } /* Literal.String.Symbol */
.highlight .bp { color: #BE74D5 } /* Name.Builtin.Pseudo */
.highlight .vc { color: #DFC06F } /* Name.Variable.Class */
.highlight .vg { color: #DFC06F } /* Name.Variable.Global */
.highlight .vi { color: #DFC06F } /* Name.Variable.Instance */
.highlight .il { color: #D19A66 } /* Literal.Number.Integer.Long */
.highlight .lineno {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
cursor: default;
color: #556366;
&::selection {
background: transparent; /* WebKit/Blink Browsers */
}
&::-moz-selection {
background: transparent; /* Gecko Browsers */
}
}
.highlight pre {
background-color: #282C34;
color: #D7DAE0;
border: none;
margin-bottom: 25px; margin-bottom: 25px;
font-size: 15px;
padding: 20px 10px; padding: 20px 10px;
} background-color: inherit;
color: inherit;
.highlight { border: inherit;
font-weight: 700; color: #D7DAE0;
} }

View File

@ -0,0 +1,99 @@
/*
this file is generated automatically by searx_extra/update/update_pygments.py
using pygments version 2.8.0
*/
.code-highlight .linenos {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
cursor: default;
&::selection {
background: transparent; /* WebKit/Blink Browsers */
}
&::-moz-selection {
background: transparent; /* Gecko Browsers */
}
margin-right: 8px;
text-align: right;
}
.code-highlight pre { line-height: 125%; }
.code-highlight td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
.code-highlight span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
.code-highlight td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.code-highlight span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.code-highlight .hll { background-color: #ffffcc }
.code-highlight { background: #282C34; }
.code-highlight .c { color: #556366; font-style: italic } /* Comment */
.code-highlight .err { border: 1px solid #ff0000 } /* Error */
.code-highlight .k { color: #BE74D5; font-weight: bold } /* Keyword */
.code-highlight .o { color: #D19A66 } /* Operator */
.code-highlight .ch { color: #556366; font-style: italic } /* Comment.Hashbang */
.code-highlight .cm { color: #556366; font-style: italic } /* Comment.Multiline */
.code-highlight .cp { color: #BC7A00; font-style: italic } /* Comment.Preproc */
.code-highlight .cpf { color: #556366; font-style: italic } /* Comment.PreprocFile */
.code-highlight .c1 { color: #556366; font-style: italic } /* Comment.Single */
.code-highlight .cs { color: #556366; font-style: italic } /* Comment.Special */
.code-highlight .gd { color: #A00000 } /* Generic.Deleted */
.code-highlight .ge { font-style: italic } /* Generic.Emph */
.code-highlight .gr { color: #FF0000 } /* Generic.Error */
.code-highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
.code-highlight .gi { color: #00A000 } /* Generic.Inserted */
.code-highlight .go { color: #888888 } /* Generic.Output */
.code-highlight .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
.code-highlight .gs { font-weight: bold } /* Generic.Strong */
.code-highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
.code-highlight .gt { color: #0044DD } /* Generic.Traceback */
.code-highlight .kc { color: #BE74D5; font-weight: bold } /* Keyword.Constant */
.code-highlight .kd { color: #BE74D5; font-weight: bold } /* Keyword.Declaration */
.code-highlight .kn { color: #BE74D5; font-weight: bold } /* Keyword.Namespace */
.code-highlight .kp { color: #BE74D5; font-weight: bold } /* Keyword.Pseudo */
.code-highlight .kr { color: #BE74D5; font-weight: bold } /* Keyword.Reserved */
.code-highlight .kt { color: #D46C72; font-weight: bold } /* Keyword.Type */
.code-highlight .m { color: #D19A66 } /* Literal.Number */
.code-highlight .s { color: #86C372 } /* Literal.String */
.code-highlight .na { color: #7D9029 } /* Name.Attribute */
.code-highlight .nb { color: #BE74D5 } /* Name.Builtin */
.code-highlight .nc { color: #61AFEF; font-weight: bold } /* Name.Class */
.code-highlight .no { color: #D19A66 } /* Name.Constant */
.code-highlight .nd { color: #AA22FF } /* Name.Decorator */
.code-highlight .ni { color: #999999; font-weight: bold } /* Name.Entity */
.code-highlight .ne { color: #D2413A; font-weight: bold } /* Name.Exception */
.code-highlight .nf { color: #61AFEF } /* Name.Function */
.code-highlight .nl { color: #A0A000 } /* Name.Label */
.code-highlight .nn { color: #61AFEF; font-weight: bold } /* Name.Namespace */
.code-highlight .nt { color: #BE74D5; font-weight: bold } /* Name.Tag */
.code-highlight .nv { color: #DFC06F } /* Name.Variable */
.code-highlight .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
.code-highlight .w { color: #D7DAE0 } /* Text.Whitespace */
.code-highlight .mb { color: #D19A66 } /* Literal.Number.Bin */
.code-highlight .mf { color: #D19A66 } /* Literal.Number.Float */
.code-highlight .mh { color: #D19A66 } /* Literal.Number.Hex */
.code-highlight .mi { color: #D19A66 } /* Literal.Number.Integer */
.code-highlight .mo { color: #D19A66 } /* Literal.Number.Oct */
.code-highlight .sa { color: #86C372 } /* Literal.String.Affix */
.code-highlight .sb { color: #86C372 } /* Literal.String.Backtick */
.code-highlight .sc { color: #86C372 } /* Literal.String.Char */
.code-highlight .dl { color: #86C372 } /* Literal.String.Delimiter */
.code-highlight .sd { color: #86C372; font-style: italic } /* Literal.String.Doc */
.code-highlight .s2 { color: #86C372 } /* Literal.String.Double */
.code-highlight .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */
.code-highlight .sh { color: #86C372 } /* Literal.String.Heredoc */
.code-highlight .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */
.code-highlight .sx { color: #BE74D5 } /* Literal.String.Other */
.code-highlight .sr { color: #BB6688 } /* Literal.String.Regex */
.code-highlight .s1 { color: #86C372 } /* Literal.String.Single */
.code-highlight .ss { color: #DFC06F } /* Literal.String.Symbol */
.code-highlight .bp { color: #BE74D5 } /* Name.Builtin.Pseudo */
.code-highlight .fm { color: #61AFEF } /* Name.Function.Magic */
.code-highlight .vc { color: #DFC06F } /* Name.Variable.Class */
.code-highlight .vg { color: #DFC06F } /* Name.Variable.Global */
.code-highlight .vi { color: #DFC06F } /* Name.Variable.Instance */
.code-highlight .vm { color: #DFC06F } /* Name.Variable.Magic */
.code-highlight .il { color: #D19A66 } /* Literal.Number.Integer.Long */

View File

@ -33,12 +33,10 @@
word-wrap: break-word; word-wrap: break-word;
color: @dark-gray; color: @dark-gray;
font-size: 13px; font-size: 13px;
}
.result .highlight {
.highlight { font-weight: bold;
font-weight:bold;
}
} }
.result-source { .result-source {

View File

@ -1,79 +1,2 @@
.highlight .hll { background-color: #ffffcc } @import "pygments.less";
.highlight { background: #f8f8f8; }
.highlight .c { color: #408080; font-style: italic } /* Comment */
.highlight .err { border: 1px solid #FF0000 } /* Error */
.highlight .k { color: #008000; font-weight: bold } /* Keyword */
.highlight .o { color: #666666 } /* Operator */
.highlight .cm { color: #408080; font-style: italic } /* Comment.Multiline */
.highlight .cp { color: #BC7A00 } /* Comment.Preproc */
.highlight .c1 { color: #408080; font-style: italic } /* Comment.Single */
.highlight .cs { color: #408080; font-style: italic } /* Comment.Special */
.highlight .gd { color: #A00000 } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gr { color: #FF0000 } /* Generic.Error */
.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
.highlight .gi { color: #00A000 } /* Generic.Inserted */
.highlight .go { color: #888888 } /* Generic.Output */
.highlight .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
.highlight .gt { color: #0044DD } /* Generic.Traceback */
.highlight .kc { color: #008000; font-weight: bold } /* Keyword.Constant */
.highlight .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
.highlight .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
.highlight .kp { color: #008000 } /* Keyword.Pseudo */
.highlight .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #B00040 } /* Keyword.Type */
.highlight .m { color: #666666 } /* Literal.Number */
.highlight .s { color: #BA2121 } /* Literal.String */
.highlight .na { color: #7D9029 } /* Name.Attribute */
.highlight .nb { color: #008000 } /* Name.Builtin */
.highlight .nc { color: #0000FF; font-weight: bold } /* Name.Class */
.highlight .no { color: #880000 } /* Name.Constant */
.highlight .nd { color: #AA22FF } /* Name.Decorator */
.highlight .ni { color: #999999; font-weight: bold } /* Name.Entity */
.highlight .ne { color: #D2413A; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #0000FF } /* Name.Function */
.highlight .nl { color: #A0A000 } /* Name.Label */
.highlight .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */
.highlight .nt { color: #008000; font-weight: bold } /* Name.Tag */
.highlight .nv { color: #19177C } /* Name.Variable */
.highlight .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
.highlight .mf { color: #666666 } /* Literal.Number.Float */
.highlight .mh { color: #666666 } /* Literal.Number.Hex */
.highlight .mi { color: #666666 } /* Literal.Number.Integer */
.highlight .mo { color: #666666 } /* Literal.Number.Oct */
.highlight .sb { color: #BA2121 } /* Literal.String.Backtick */
.highlight .sc { color: #BA2121 } /* Literal.String.Char */
.highlight .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */
.highlight .s2 { color: #BA2121 } /* Literal.String.Double */
.highlight .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */
.highlight .sh { color: #BA2121 } /* Literal.String.Heredoc */
.highlight .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */
.highlight .sx { color: #008000 } /* Literal.String.Other */
.highlight .sr { color: #BB6688 } /* Literal.String.Regex */
.highlight .s1 { color: #BA2121 } /* Literal.String.Single */
.highlight .ss { color: #19177C } /* Literal.String.Symbol */
.highlight .bp { color: #008000 } /* Name.Builtin.Pseudo */
.highlight .vc { color: #19177C } /* Name.Variable.Class */
.highlight .vg { color: #19177C } /* Name.Variable.Global */
.highlight .vi { color: #19177C } /* Name.Variable.Instance */
.highlight .il { color: #666666 } /* Literal.Number.Integer.Long */
.highlight .lineno {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
cursor: default;
&::selection {
background: transparent; /* WebKit/Blink Browsers */
}
&::-moz-selection {
background: transparent; /* Gecko Browsers */
}
}

View File

@ -18,4 +18,6 @@
@import "navbar.less"; @import "navbar.less";
@import "code.less";
@import "preferences.less"; @import "preferences.less";

View File

@ -0,0 +1,99 @@
/*
this file is generated automatically by searx_extra/update/update_pygments.py
using pygments version 2.8.0
*/
.code-highlight .linenos {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
cursor: default;
&::selection {
background: transparent; /* WebKit/Blink Browsers */
}
&::-moz-selection {
background: transparent; /* Gecko Browsers */
}
margin-right: 8px;
text-align: right;
}
.code-highlight pre { line-height: 125%; }
.code-highlight td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
.code-highlight span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
.code-highlight td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.code-highlight span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.code-highlight .hll { background-color: #ffffcc }
.code-highlight { background: #f8f8f8; }
.code-highlight .c { color: #408080; font-style: italic } /* Comment */
.code-highlight .err { border: 1px solid #FF0000 } /* Error */
.code-highlight .k { color: #008000; font-weight: bold } /* Keyword */
.code-highlight .o { color: #666666 } /* Operator */
.code-highlight .ch { color: #408080; font-style: italic } /* Comment.Hashbang */
.code-highlight .cm { color: #408080; font-style: italic } /* Comment.Multiline */
.code-highlight .cp { color: #BC7A00 } /* Comment.Preproc */
.code-highlight .cpf { color: #408080; font-style: italic } /* Comment.PreprocFile */
.code-highlight .c1 { color: #408080; font-style: italic } /* Comment.Single */
.code-highlight .cs { color: #408080; font-style: italic } /* Comment.Special */
.code-highlight .gd { color: #A00000 } /* Generic.Deleted */
.code-highlight .ge { font-style: italic } /* Generic.Emph */
.code-highlight .gr { color: #FF0000 } /* Generic.Error */
.code-highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
.code-highlight .gi { color: #00A000 } /* Generic.Inserted */
.code-highlight .go { color: #888888 } /* Generic.Output */
.code-highlight .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
.code-highlight .gs { font-weight: bold } /* Generic.Strong */
.code-highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
.code-highlight .gt { color: #0044DD } /* Generic.Traceback */
.code-highlight .kc { color: #008000; font-weight: bold } /* Keyword.Constant */
.code-highlight .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
.code-highlight .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
.code-highlight .kp { color: #008000 } /* Keyword.Pseudo */
.code-highlight .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
.code-highlight .kt { color: #B00040 } /* Keyword.Type */
.code-highlight .m { color: #666666 } /* Literal.Number */
.code-highlight .s { color: #BA2121 } /* Literal.String */
.code-highlight .na { color: #7D9029 } /* Name.Attribute */
.code-highlight .nb { color: #008000 } /* Name.Builtin */
.code-highlight .nc { color: #0000FF; font-weight: bold } /* Name.Class */
.code-highlight .no { color: #880000 } /* Name.Constant */
.code-highlight .nd { color: #AA22FF } /* Name.Decorator */
.code-highlight .ni { color: #999999; font-weight: bold } /* Name.Entity */
.code-highlight .ne { color: #D2413A; font-weight: bold } /* Name.Exception */
.code-highlight .nf { color: #0000FF } /* Name.Function */
.code-highlight .nl { color: #A0A000 } /* Name.Label */
.code-highlight .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */
.code-highlight .nt { color: #008000; font-weight: bold } /* Name.Tag */
.code-highlight .nv { color: #19177C } /* Name.Variable */
.code-highlight .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
.code-highlight .w { color: #bbbbbb } /* Text.Whitespace */
.code-highlight .mb { color: #666666 } /* Literal.Number.Bin */
.code-highlight .mf { color: #666666 } /* Literal.Number.Float */
.code-highlight .mh { color: #666666 } /* Literal.Number.Hex */
.code-highlight .mi { color: #666666 } /* Literal.Number.Integer */
.code-highlight .mo { color: #666666 } /* Literal.Number.Oct */
.code-highlight .sa { color: #BA2121 } /* Literal.String.Affix */
.code-highlight .sb { color: #BA2121 } /* Literal.String.Backtick */
.code-highlight .sc { color: #BA2121 } /* Literal.String.Char */
.code-highlight .dl { color: #BA2121 } /* Literal.String.Delimiter */
.code-highlight .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */
.code-highlight .s2 { color: #BA2121 } /* Literal.String.Double */
.code-highlight .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */
.code-highlight .sh { color: #BA2121 } /* Literal.String.Heredoc */
.code-highlight .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */
.code-highlight .sx { color: #008000 } /* Literal.String.Other */
.code-highlight .sr { color: #BB6688 } /* Literal.String.Regex */
.code-highlight .s1 { color: #BA2121 } /* Literal.String.Single */
.code-highlight .ss { color: #19177C } /* Literal.String.Symbol */
.code-highlight .bp { color: #008000 } /* Name.Builtin.Pseudo */
.code-highlight .fm { color: #0000FF } /* Name.Function.Magic */
.code-highlight .vc { color: #19177C } /* Name.Variable.Class */
.code-highlight .vg { color: #19177C } /* Name.Variable.Global */
.code-highlight .vi { color: #19177C } /* Name.Variable.Instance */
.code-highlight .vm { color: #19177C } /* Name.Variable.Magic */
.code-highlight .il { color: #666666 } /* Literal.Number.Integer.Long */

View File

@ -107,3 +107,7 @@
outline: 0 none; outline: 0 none;
position: relative; position: relative;
} }
.highlight {
font-weight: 700;
}

View File

@ -1,4 +1,4 @@
/*! searx | 01-12-2020 | https://github.com/searx/searx */ /*! searx | 16-03-2021 | */
/* /*
* searx, A privacy-respecting, hackable metasearch engine * searx, A privacy-respecting, hackable metasearch engine
* *
@ -311,277 +311,17 @@ template {
/* /*
* searx, A privacy-respecting, hackable metasearch engine * searx, A privacy-respecting, hackable metasearch engine
*/ */
.highlight .hll { .code-highlight pre {
background-color: #ffffcc;
}
.highlight {
background: #f8f8f8;
}
.highlight .c {
color: #408080;
font-style: italic;
}
/* Comment */
.highlight .err {
border: 1px solid #FF0000;
}
/* Error */
.highlight .k {
color: #008000;
font-weight: bold;
}
/* Keyword */
.highlight .o {
color: #666666;
}
/* Operator */
.highlight .cm {
color: #408080;
font-style: italic;
}
/* Comment.Multiline */
.highlight .cp {
color: #BC7A00;
}
/* Comment.Preproc */
.highlight .c1 {
color: #408080;
font-style: italic;
}
/* Comment.Single */
.highlight .cs {
color: #408080;
font-style: italic;
}
/* Comment.Special */
.highlight .gd {
color: #A00000;
}
/* Generic.Deleted */
.highlight .ge {
font-style: italic;
}
/* Generic.Emph */
.highlight .gr {
color: #FF0000;
}
/* Generic.Error */
.highlight .gh {
color: #000080;
font-weight: bold;
}
/* Generic.Heading */
.highlight .gi {
color: #00A000;
}
/* Generic.Inserted */
.highlight .go {
color: #888888;
}
/* Generic.Output */
.highlight .gp {
color: #000080;
font-weight: bold;
}
/* Generic.Prompt */
.highlight .gs {
font-weight: bold;
}
/* Generic.Strong */
.highlight .gu {
color: #800080;
font-weight: bold;
}
/* Generic.Subheading */
.highlight .gt {
color: #0044DD;
}
/* Generic.Traceback */
.highlight .kc {
color: #008000;
font-weight: bold;
}
/* Keyword.Constant */
.highlight .kd {
color: #008000;
font-weight: bold;
}
/* Keyword.Declaration */
.highlight .kn {
color: #008000;
font-weight: bold;
}
/* Keyword.Namespace */
.highlight .kp {
color: #008000;
}
/* Keyword.Pseudo */
.highlight .kr {
color: #008000;
font-weight: bold;
}
/* Keyword.Reserved */
.highlight .kt {
color: #B00040;
}
/* Keyword.Type */
.highlight .m {
color: #666666;
}
/* Literal.Number */
.highlight .s {
color: #BA2121;
}
/* Literal.String */
.highlight .na {
color: #7D9029;
}
/* Name.Attribute */
.highlight .nb {
color: #008000;
}
/* Name.Builtin */
.highlight .nc {
color: #0000FF;
font-weight: bold;
}
/* Name.Class */
.highlight .no {
color: #880000;
}
/* Name.Constant */
.highlight .nd {
color: #AA22FF;
}
/* Name.Decorator */
.highlight .ni {
color: #999999;
font-weight: bold;
}
/* Name.Entity */
.highlight .ne {
color: #D2413A;
font-weight: bold;
}
/* Name.Exception */
.highlight .nf {
color: #0000FF;
}
/* Name.Function */
.highlight .nl {
color: #A0A000;
}
/* Name.Label */
.highlight .nn {
color: #0000FF;
font-weight: bold;
}
/* Name.Namespace */
.highlight .nt {
color: #008000;
font-weight: bold;
}
/* Name.Tag */
.highlight .nv {
color: #19177C;
}
/* Name.Variable */
.highlight .ow {
color: #AA22FF;
font-weight: bold;
}
/* Operator.Word */
.highlight .w {
color: #bbbbbb;
}
/* Text.Whitespace */
.highlight .mf {
color: #666666;
}
/* Literal.Number.Float */
.highlight .mh {
color: #666666;
}
/* Literal.Number.Hex */
.highlight .mi {
color: #666666;
}
/* Literal.Number.Integer */
.highlight .mo {
color: #666666;
}
/* Literal.Number.Oct */
.highlight .sb {
color: #BA2121;
}
/* Literal.String.Backtick */
.highlight .sc {
color: #BA2121;
}
/* Literal.String.Char */
.highlight .sd {
color: #BA2121;
font-style: italic;
}
/* Literal.String.Doc */
.highlight .s2 {
color: #BA2121;
}
/* Literal.String.Double */
.highlight .se {
color: #BB6622;
font-weight: bold;
}
/* Literal.String.Escape */
.highlight .sh {
color: #BA2121;
}
/* Literal.String.Heredoc */
.highlight .si {
color: #BB6688;
font-weight: bold;
}
/* Literal.String.Interpol */
.highlight .sx {
color: #008000;
}
/* Literal.String.Other */
.highlight .sr {
color: #BB6688;
}
/* Literal.String.Regex */
.highlight .s1 {
color: #BA2121;
}
/* Literal.String.Single */
.highlight .ss {
color: #19177C;
}
/* Literal.String.Symbol */
.highlight .bp {
color: #008000;
}
/* Name.Builtin.Pseudo */
.highlight .vc {
color: #19177C;
}
/* Name.Variable.Class */
.highlight .vg {
color: #19177C;
}
/* Name.Variable.Global */
.highlight .vi {
color: #19177C;
}
/* Name.Variable.Instance */
.highlight .il {
color: #666666;
}
/* Literal.Number.Integer.Long */
.highlight pre {
overflow: auto; overflow: auto;
background-color: inherit;
color: inherit;
border: inherit;
} }
.highlight .lineno { /*
this file is generated automatically by searx_extra/update/update_pygments.py
using pygments version 2.8.0
*/
.code-highlight .linenos {
-webkit-touch-callout: none; -webkit-touch-callout: none;
-webkit-user-select: none; -webkit-user-select: none;
-khtml-user-select: none; -khtml-user-select: none;
@ -589,15 +329,341 @@ template {
-ms-user-select: none; -ms-user-select: none;
user-select: none; user-select: none;
cursor: default; cursor: default;
margin-right: 8px;
text-align: right;
} }
.highlight .lineno::selection { .code-highlight .linenos::selection {
background: transparent; background: transparent;
/* WebKit/Blink Browsers */ /* WebKit/Blink Browsers */
} }
.highlight .lineno::-moz-selection { .code-highlight .linenos::-moz-selection {
background: transparent; background: transparent;
/* Gecko Browsers */ /* Gecko Browsers */
} }
.code-highlight pre {
line-height: 125%;
}
.code-highlight td.linenos .normal {
color: inherit;
background-color: transparent;
padding-left: 5px;
padding-right: 5px;
}
.code-highlight span.linenos {
color: inherit;
background-color: transparent;
padding-left: 5px;
padding-right: 5px;
}
.code-highlight td.linenos .special {
color: #000000;
background-color: #ffffc0;
padding-left: 5px;
padding-right: 5px;
}
.code-highlight span.linenos.special {
color: #000000;
background-color: #ffffc0;
padding-left: 5px;
padding-right: 5px;
}
.code-highlight .hll {
background-color: #ffffcc;
}
.code-highlight {
background: #f8f8f8;
}
.code-highlight .c {
color: #408080;
font-style: italic;
}
/* Comment */
.code-highlight .err {
border: 1px solid #FF0000;
}
/* Error */
.code-highlight .k {
color: #008000;
font-weight: bold;
}
/* Keyword */
.code-highlight .o {
color: #666666;
}
/* Operator */
.code-highlight .ch {
color: #408080;
font-style: italic;
}
/* Comment.Hashbang */
.code-highlight .cm {
color: #408080;
font-style: italic;
}
/* Comment.Multiline */
.code-highlight .cp {
color: #BC7A00;
}
/* Comment.Preproc */
.code-highlight .cpf {
color: #408080;
font-style: italic;
}
/* Comment.PreprocFile */
.code-highlight .c1 {
color: #408080;
font-style: italic;
}
/* Comment.Single */
.code-highlight .cs {
color: #408080;
font-style: italic;
}
/* Comment.Special */
.code-highlight .gd {
color: #A00000;
}
/* Generic.Deleted */
.code-highlight .ge {
font-style: italic;
}
/* Generic.Emph */
.code-highlight .gr {
color: #FF0000;
}
/* Generic.Error */
.code-highlight .gh {
color: #000080;
font-weight: bold;
}
/* Generic.Heading */
.code-highlight .gi {
color: #00A000;
}
/* Generic.Inserted */
.code-highlight .go {
color: #888888;
}
/* Generic.Output */
.code-highlight .gp {
color: #000080;
font-weight: bold;
}
/* Generic.Prompt */
.code-highlight .gs {
font-weight: bold;
}
/* Generic.Strong */
.code-highlight .gu {
color: #800080;
font-weight: bold;
}
/* Generic.Subheading */
.code-highlight .gt {
color: #0044DD;
}
/* Generic.Traceback */
.code-highlight .kc {
color: #008000;
font-weight: bold;
}
/* Keyword.Constant */
.code-highlight .kd {
color: #008000;
font-weight: bold;
}
/* Keyword.Declaration */
.code-highlight .kn {
color: #008000;
font-weight: bold;
}
/* Keyword.Namespace */
.code-highlight .kp {
color: #008000;
}
/* Keyword.Pseudo */
.code-highlight .kr {
color: #008000;
font-weight: bold;
}
/* Keyword.Reserved */
.code-highlight .kt {
color: #B00040;
}
/* Keyword.Type */
.code-highlight .m {
color: #666666;
}
/* Literal.Number */
.code-highlight .s {
color: #BA2121;
}
/* Literal.String */
.code-highlight .na {
color: #7D9029;
}
/* Name.Attribute */
.code-highlight .nb {
color: #008000;
}
/* Name.Builtin */
.code-highlight .nc {
color: #0000FF;
font-weight: bold;
}
/* Name.Class */
.code-highlight .no {
color: #880000;
}
/* Name.Constant */
.code-highlight .nd {
color: #AA22FF;
}
/* Name.Decorator */
.code-highlight .ni {
color: #999999;
font-weight: bold;
}
/* Name.Entity */
.code-highlight .ne {
color: #D2413A;
font-weight: bold;
}
/* Name.Exception */
.code-highlight .nf {
color: #0000FF;
}
/* Name.Function */
.code-highlight .nl {
color: #A0A000;
}
/* Name.Label */
.code-highlight .nn {
color: #0000FF;
font-weight: bold;
}
/* Name.Namespace */
.code-highlight .nt {
color: #008000;
font-weight: bold;
}
/* Name.Tag */
.code-highlight .nv {
color: #19177C;
}
/* Name.Variable */
.code-highlight .ow {
color: #AA22FF;
font-weight: bold;
}
/* Operator.Word */
.code-highlight .w {
color: #bbbbbb;
}
/* Text.Whitespace */
.code-highlight .mb {
color: #666666;
}
/* Literal.Number.Bin */
.code-highlight .mf {
color: #666666;
}
/* Literal.Number.Float */
.code-highlight .mh {
color: #666666;
}
/* Literal.Number.Hex */
.code-highlight .mi {
color: #666666;
}
/* Literal.Number.Integer */
.code-highlight .mo {
color: #666666;
}
/* Literal.Number.Oct */
.code-highlight .sa {
color: #BA2121;
}
/* Literal.String.Affix */
.code-highlight .sb {
color: #BA2121;
}
/* Literal.String.Backtick */
.code-highlight .sc {
color: #BA2121;
}
/* Literal.String.Char */
.code-highlight .dl {
color: #BA2121;
}
/* Literal.String.Delimiter */
.code-highlight .sd {
color: #BA2121;
font-style: italic;
}
/* Literal.String.Doc */
.code-highlight .s2 {
color: #BA2121;
}
/* Literal.String.Double */
.code-highlight .se {
color: #BB6622;
font-weight: bold;
}
/* Literal.String.Escape */
.code-highlight .sh {
color: #BA2121;
}
/* Literal.String.Heredoc */
.code-highlight .si {
color: #BB6688;
font-weight: bold;
}
/* Literal.String.Interpol */
.code-highlight .sx {
color: #008000;
}
/* Literal.String.Other */
.code-highlight .sr {
color: #BB6688;
}
/* Literal.String.Regex */
.code-highlight .s1 {
color: #BA2121;
}
/* Literal.String.Single */
.code-highlight .ss {
color: #19177C;
}
/* Literal.String.Symbol */
.code-highlight .bp {
color: #008000;
}
/* Name.Builtin.Pseudo */
.code-highlight .fm {
color: #0000FF;
}
/* Name.Function.Magic */
.code-highlight .vc {
color: #19177C;
}
/* Name.Variable.Class */
.code-highlight .vg {
color: #19177C;
}
/* Name.Variable.Global */
.code-highlight .vi {
color: #19177C;
}
/* Name.Variable.Instance */
.code-highlight .vm {
color: #19177C;
}
/* Name.Variable.Magic */
.code-highlight .il {
color: #666666;
}
/* Literal.Number.Integer.Long */
html.no-js .hide_if_nojs { html.no-js .hide_if_nojs {
display: none; display: none;
} }

Binary file not shown.

View File

@ -1,4 +1,4 @@
/*! searx | 01-12-2020 | https://github.com/searx/searx */ /*! searx | 16-03-2021 | */
/* /*
* searx, A privacy-respecting, hackable metasearch engine * searx, A privacy-respecting, hackable metasearch engine
* *
@ -311,277 +311,17 @@ template {
/* /*
* searx, A privacy-respecting, hackable metasearch engine * searx, A privacy-respecting, hackable metasearch engine
*/ */
.highlight .hll { .code-highlight pre {
background-color: #ffffcc;
}
.highlight {
background: #f8f8f8;
}
.highlight .c {
color: #408080;
font-style: italic;
}
/* Comment */
.highlight .err {
border: 1px solid #FF0000;
}
/* Error */
.highlight .k {
color: #008000;
font-weight: bold;
}
/* Keyword */
.highlight .o {
color: #666666;
}
/* Operator */
.highlight .cm {
color: #408080;
font-style: italic;
}
/* Comment.Multiline */
.highlight .cp {
color: #BC7A00;
}
/* Comment.Preproc */
.highlight .c1 {
color: #408080;
font-style: italic;
}
/* Comment.Single */
.highlight .cs {
color: #408080;
font-style: italic;
}
/* Comment.Special */
.highlight .gd {
color: #A00000;
}
/* Generic.Deleted */
.highlight .ge {
font-style: italic;
}
/* Generic.Emph */
.highlight .gr {
color: #FF0000;
}
/* Generic.Error */
.highlight .gh {
color: #000080;
font-weight: bold;
}
/* Generic.Heading */
.highlight .gi {
color: #00A000;
}
/* Generic.Inserted */
.highlight .go {
color: #888888;
}
/* Generic.Output */
.highlight .gp {
color: #000080;
font-weight: bold;
}
/* Generic.Prompt */
.highlight .gs {
font-weight: bold;
}
/* Generic.Strong */
.highlight .gu {
color: #800080;
font-weight: bold;
}
/* Generic.Subheading */
.highlight .gt {
color: #0044DD;
}
/* Generic.Traceback */
.highlight .kc {
color: #008000;
font-weight: bold;
}
/* Keyword.Constant */
.highlight .kd {
color: #008000;
font-weight: bold;
}
/* Keyword.Declaration */
.highlight .kn {
color: #008000;
font-weight: bold;
}
/* Keyword.Namespace */
.highlight .kp {
color: #008000;
}
/* Keyword.Pseudo */
.highlight .kr {
color: #008000;
font-weight: bold;
}
/* Keyword.Reserved */
.highlight .kt {
color: #B00040;
}
/* Keyword.Type */
.highlight .m {
color: #666666;
}
/* Literal.Number */
.highlight .s {
color: #BA2121;
}
/* Literal.String */
.highlight .na {
color: #7D9029;
}
/* Name.Attribute */
.highlight .nb {
color: #008000;
}
/* Name.Builtin */
.highlight .nc {
color: #0000FF;
font-weight: bold;
}
/* Name.Class */
.highlight .no {
color: #880000;
}
/* Name.Constant */
.highlight .nd {
color: #AA22FF;
}
/* Name.Decorator */
.highlight .ni {
color: #999999;
font-weight: bold;
}
/* Name.Entity */
.highlight .ne {
color: #D2413A;
font-weight: bold;
}
/* Name.Exception */
.highlight .nf {
color: #0000FF;
}
/* Name.Function */
.highlight .nl {
color: #A0A000;
}
/* Name.Label */
.highlight .nn {
color: #0000FF;
font-weight: bold;
}
/* Name.Namespace */
.highlight .nt {
color: #008000;
font-weight: bold;
}
/* Name.Tag */
.highlight .nv {
color: #19177C;
}
/* Name.Variable */
.highlight .ow {
color: #AA22FF;
font-weight: bold;
}
/* Operator.Word */
.highlight .w {
color: #bbbbbb;
}
/* Text.Whitespace */
.highlight .mf {
color: #666666;
}
/* Literal.Number.Float */
.highlight .mh {
color: #666666;
}
/* Literal.Number.Hex */
.highlight .mi {
color: #666666;
}
/* Literal.Number.Integer */
.highlight .mo {
color: #666666;
}
/* Literal.Number.Oct */
.highlight .sb {
color: #BA2121;
}
/* Literal.String.Backtick */
.highlight .sc {
color: #BA2121;
}
/* Literal.String.Char */
.highlight .sd {
color: #BA2121;
font-style: italic;
}
/* Literal.String.Doc */
.highlight .s2 {
color: #BA2121;
}
/* Literal.String.Double */
.highlight .se {
color: #BB6622;
font-weight: bold;
}
/* Literal.String.Escape */
.highlight .sh {
color: #BA2121;
}
/* Literal.String.Heredoc */
.highlight .si {
color: #BB6688;
font-weight: bold;
}
/* Literal.String.Interpol */
.highlight .sx {
color: #008000;
}
/* Literal.String.Other */
.highlight .sr {
color: #BB6688;
}
/* Literal.String.Regex */
.highlight .s1 {
color: #BA2121;
}
/* Literal.String.Single */
.highlight .ss {
color: #19177C;
}
/* Literal.String.Symbol */
.highlight .bp {
color: #008000;
}
/* Name.Builtin.Pseudo */
.highlight .vc {
color: #19177C;
}
/* Name.Variable.Class */
.highlight .vg {
color: #19177C;
}
/* Name.Variable.Global */
.highlight .vi {
color: #19177C;
}
/* Name.Variable.Instance */
.highlight .il {
color: #666666;
}
/* Literal.Number.Integer.Long */
.highlight pre {
overflow: auto; overflow: auto;
background-color: inherit;
color: inherit;
border: inherit;
} }
.highlight .lineno { /*
this file is generated automatically by searx_extra/update/update_pygments.py
using pygments version 2.8.0
*/
.code-highlight .linenos {
-webkit-touch-callout: none; -webkit-touch-callout: none;
-webkit-user-select: none; -webkit-user-select: none;
-khtml-user-select: none; -khtml-user-select: none;
@ -589,15 +329,341 @@ template {
-ms-user-select: none; -ms-user-select: none;
user-select: none; user-select: none;
cursor: default; cursor: default;
margin-right: 8px;
text-align: right;
} }
.highlight .lineno::selection { .code-highlight .linenos::selection {
background: transparent; background: transparent;
/* WebKit/Blink Browsers */ /* WebKit/Blink Browsers */
} }
.highlight .lineno::-moz-selection { .code-highlight .linenos::-moz-selection {
background: transparent; background: transparent;
/* Gecko Browsers */ /* Gecko Browsers */
} }
.code-highlight pre {
line-height: 125%;
}
.code-highlight td.linenos .normal {
color: inherit;
background-color: transparent;
padding-left: 5px;
padding-right: 5px;
}
.code-highlight span.linenos {
color: inherit;
background-color: transparent;
padding-left: 5px;
padding-right: 5px;
}
.code-highlight td.linenos .special {
color: #000000;
background-color: #ffffc0;
padding-left: 5px;
padding-right: 5px;
}
.code-highlight span.linenos.special {
color: #000000;
background-color: #ffffc0;
padding-left: 5px;
padding-right: 5px;
}
.code-highlight .hll {
background-color: #ffffcc;
}
.code-highlight {
background: #f8f8f8;
}
.code-highlight .c {
color: #408080;
font-style: italic;
}
/* Comment */
.code-highlight .err {
border: 1px solid #FF0000;
}
/* Error */
.code-highlight .k {
color: #008000;
font-weight: bold;
}
/* Keyword */
.code-highlight .o {
color: #666666;
}
/* Operator */
.code-highlight .ch {
color: #408080;
font-style: italic;
}
/* Comment.Hashbang */
.code-highlight .cm {
color: #408080;
font-style: italic;
}
/* Comment.Multiline */
.code-highlight .cp {
color: #BC7A00;
}
/* Comment.Preproc */
.code-highlight .cpf {
color: #408080;
font-style: italic;
}
/* Comment.PreprocFile */
.code-highlight .c1 {
color: #408080;
font-style: italic;
}
/* Comment.Single */
.code-highlight .cs {
color: #408080;
font-style: italic;
}
/* Comment.Special */
.code-highlight .gd {
color: #A00000;
}
/* Generic.Deleted */
.code-highlight .ge {
font-style: italic;
}
/* Generic.Emph */
.code-highlight .gr {
color: #FF0000;
}
/* Generic.Error */
.code-highlight .gh {
color: #000080;
font-weight: bold;
}
/* Generic.Heading */
.code-highlight .gi {
color: #00A000;
}
/* Generic.Inserted */
.code-highlight .go {
color: #888888;
}
/* Generic.Output */
.code-highlight .gp {
color: #000080;
font-weight: bold;
}
/* Generic.Prompt */
.code-highlight .gs {
font-weight: bold;
}
/* Generic.Strong */
.code-highlight .gu {
color: #800080;
font-weight: bold;
}
/* Generic.Subheading */
.code-highlight .gt {
color: #0044DD;
}
/* Generic.Traceback */
.code-highlight .kc {
color: #008000;
font-weight: bold;
}
/* Keyword.Constant */
.code-highlight .kd {
color: #008000;
font-weight: bold;
}
/* Keyword.Declaration */
.code-highlight .kn {
color: #008000;
font-weight: bold;
}
/* Keyword.Namespace */
.code-highlight .kp {
color: #008000;
}
/* Keyword.Pseudo */
.code-highlight .kr {
color: #008000;
font-weight: bold;
}
/* Keyword.Reserved */
.code-highlight .kt {
color: #B00040;
}
/* Keyword.Type */
.code-highlight .m {
color: #666666;
}
/* Literal.Number */
.code-highlight .s {
color: #BA2121;
}
/* Literal.String */
.code-highlight .na {
color: #7D9029;
}
/* Name.Attribute */
.code-highlight .nb {
color: #008000;
}
/* Name.Builtin */
.code-highlight .nc {
color: #0000FF;
font-weight: bold;
}
/* Name.Class */
.code-highlight .no {
color: #880000;
}
/* Name.Constant */
.code-highlight .nd {
color: #AA22FF;
}
/* Name.Decorator */
.code-highlight .ni {
color: #999999;
font-weight: bold;
}
/* Name.Entity */
.code-highlight .ne {
color: #D2413A;
font-weight: bold;
}
/* Name.Exception */
.code-highlight .nf {
color: #0000FF;
}
/* Name.Function */
.code-highlight .nl {
color: #A0A000;
}
/* Name.Label */
.code-highlight .nn {
color: #0000FF;
font-weight: bold;
}
/* Name.Namespace */
.code-highlight .nt {
color: #008000;
font-weight: bold;
}
/* Name.Tag */
.code-highlight .nv {
color: #19177C;
}
/* Name.Variable */
.code-highlight .ow {
color: #AA22FF;
font-weight: bold;
}
/* Operator.Word */
.code-highlight .w {
color: #bbbbbb;
}
/* Text.Whitespace */
.code-highlight .mb {
color: #666666;
}
/* Literal.Number.Bin */
.code-highlight .mf {
color: #666666;
}
/* Literal.Number.Float */
.code-highlight .mh {
color: #666666;
}
/* Literal.Number.Hex */
.code-highlight .mi {
color: #666666;
}
/* Literal.Number.Integer */
.code-highlight .mo {
color: #666666;
}
/* Literal.Number.Oct */
.code-highlight .sa {
color: #BA2121;
}
/* Literal.String.Affix */
.code-highlight .sb {
color: #BA2121;
}
/* Literal.String.Backtick */
.code-highlight .sc {
color: #BA2121;
}
/* Literal.String.Char */
.code-highlight .dl {
color: #BA2121;
}
/* Literal.String.Delimiter */
.code-highlight .sd {
color: #BA2121;
font-style: italic;
}
/* Literal.String.Doc */
.code-highlight .s2 {
color: #BA2121;
}
/* Literal.String.Double */
.code-highlight .se {
color: #BB6622;
font-weight: bold;
}
/* Literal.String.Escape */
.code-highlight .sh {
color: #BA2121;
}
/* Literal.String.Heredoc */
.code-highlight .si {
color: #BB6688;
font-weight: bold;
}
/* Literal.String.Interpol */
.code-highlight .sx {
color: #008000;
}
/* Literal.String.Other */
.code-highlight .sr {
color: #BB6688;
}
/* Literal.String.Regex */
.code-highlight .s1 {
color: #BA2121;
}
/* Literal.String.Single */
.code-highlight .ss {
color: #19177C;
}
/* Literal.String.Symbol */
.code-highlight .bp {
color: #008000;
}
/* Name.Builtin.Pseudo */
.code-highlight .fm {
color: #0000FF;
}
/* Name.Function.Magic */
.code-highlight .vc {
color: #19177C;
}
/* Name.Variable.Class */
.code-highlight .vg {
color: #19177C;
}
/* Name.Variable.Global */
.code-highlight .vi {
color: #19177C;
}
/* Name.Variable.Instance */
.code-highlight .vm {
color: #19177C;
}
/* Name.Variable.Magic */
.code-highlight .il {
color: #666666;
}
/* Literal.Number.Integer.Long */
html.no-js .hide_if_nojs { html.no-js .hide_if_nojs {
display: none; display: none;
} }

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,83 +1,8 @@
.highlight .hll { background-color: #ffffcc } .code-highlight pre {
.highlight { background: #f8f8f8; }
.highlight .c { color: #408080; font-style: italic } /* Comment */
.highlight .err { border: 1px solid #FF0000 } /* Error */
.highlight .k { color: #008000; font-weight: bold } /* Keyword */
.highlight .o { color: #666666 } /* Operator */
.highlight .cm { color: #408080; font-style: italic } /* Comment.Multiline */
.highlight .cp { color: #BC7A00 } /* Comment.Preproc */
.highlight .c1 { color: #408080; font-style: italic } /* Comment.Single */
.highlight .cs { color: #408080; font-style: italic } /* Comment.Special */
.highlight .gd { color: #A00000 } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gr { color: #FF0000 } /* Generic.Error */
.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
.highlight .gi { color: #00A000 } /* Generic.Inserted */
.highlight .go { color: #888888 } /* Generic.Output */
.highlight .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
.highlight .gt { color: #0044DD } /* Generic.Traceback */
.highlight .kc { color: #008000; font-weight: bold } /* Keyword.Constant */
.highlight .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
.highlight .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
.highlight .kp { color: #008000 } /* Keyword.Pseudo */
.highlight .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #B00040 } /* Keyword.Type */
.highlight .m { color: #666666 } /* Literal.Number */
.highlight .s { color: #BA2121 } /* Literal.String */
.highlight .na { color: #7D9029 } /* Name.Attribute */
.highlight .nb { color: #008000 } /* Name.Builtin */
.highlight .nc { color: #0000FF; font-weight: bold } /* Name.Class */
.highlight .no { color: #880000 } /* Name.Constant */
.highlight .nd { color: #AA22FF } /* Name.Decorator */
.highlight .ni { color: #999999; font-weight: bold } /* Name.Entity */
.highlight .ne { color: #D2413A; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #0000FF } /* Name.Function */
.highlight .nl { color: #A0A000 } /* Name.Label */
.highlight .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */
.highlight .nt { color: #008000; font-weight: bold } /* Name.Tag */
.highlight .nv { color: #19177C } /* Name.Variable */
.highlight .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
.highlight .mf { color: #666666 } /* Literal.Number.Float */
.highlight .mh { color: #666666 } /* Literal.Number.Hex */
.highlight .mi { color: #666666 } /* Literal.Number.Integer */
.highlight .mo { color: #666666 } /* Literal.Number.Oct */
.highlight .sb { color: #BA2121 } /* Literal.String.Backtick */
.highlight .sc { color: #BA2121 } /* Literal.String.Char */
.highlight .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */
.highlight .s2 { color: #BA2121 } /* Literal.String.Double */
.highlight .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */
.highlight .sh { color: #BA2121 } /* Literal.String.Heredoc */
.highlight .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */
.highlight .sx { color: #008000 } /* Literal.String.Other */
.highlight .sr { color: #BB6688 } /* Literal.String.Regex */
.highlight .s1 { color: #BA2121 } /* Literal.String.Single */
.highlight .ss { color: #19177C } /* Literal.String.Symbol */
.highlight .bp { color: #008000 } /* Name.Builtin.Pseudo */
.highlight .vc { color: #19177C } /* Name.Variable.Class */
.highlight .vg { color: #19177C } /* Name.Variable.Global */
.highlight .vi { color: #19177C } /* Name.Variable.Instance */
.highlight .il { color: #666666 } /* Literal.Number.Integer.Long */
.highlight pre {
overflow: auto; overflow: auto;
background-color: inherit;
color: inherit;
border: inherit;
} }
.highlight .lineno { @import "pygments.less";
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
cursor: default;
&::selection {
background: transparent; /* WebKit/Blink Browsers */
}
&::-moz-selection {
background: transparent; /* Gecko Browsers */
}
}

View File

@ -0,0 +1,99 @@
/*
this file is generated automatically by searx_extra/update/update_pygments.py
using pygments version 2.8.0
*/
.code-highlight .linenos {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
cursor: default;
&::selection {
background: transparent; /* WebKit/Blink Browsers */
}
&::-moz-selection {
background: transparent; /* Gecko Browsers */
}
margin-right: 8px;
text-align: right;
}
.code-highlight pre { line-height: 125%; }
.code-highlight td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
.code-highlight span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
.code-highlight td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.code-highlight span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.code-highlight .hll { background-color: #ffffcc }
.code-highlight { background: #f8f8f8; }
.code-highlight .c { color: #408080; font-style: italic } /* Comment */
.code-highlight .err { border: 1px solid #FF0000 } /* Error */
.code-highlight .k { color: #008000; font-weight: bold } /* Keyword */
.code-highlight .o { color: #666666 } /* Operator */
.code-highlight .ch { color: #408080; font-style: italic } /* Comment.Hashbang */
.code-highlight .cm { color: #408080; font-style: italic } /* Comment.Multiline */
.code-highlight .cp { color: #BC7A00 } /* Comment.Preproc */
.code-highlight .cpf { color: #408080; font-style: italic } /* Comment.PreprocFile */
.code-highlight .c1 { color: #408080; font-style: italic } /* Comment.Single */
.code-highlight .cs { color: #408080; font-style: italic } /* Comment.Special */
.code-highlight .gd { color: #A00000 } /* Generic.Deleted */
.code-highlight .ge { font-style: italic } /* Generic.Emph */
.code-highlight .gr { color: #FF0000 } /* Generic.Error */
.code-highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
.code-highlight .gi { color: #00A000 } /* Generic.Inserted */
.code-highlight .go { color: #888888 } /* Generic.Output */
.code-highlight .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
.code-highlight .gs { font-weight: bold } /* Generic.Strong */
.code-highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
.code-highlight .gt { color: #0044DD } /* Generic.Traceback */
.code-highlight .kc { color: #008000; font-weight: bold } /* Keyword.Constant */
.code-highlight .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
.code-highlight .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
.code-highlight .kp { color: #008000 } /* Keyword.Pseudo */
.code-highlight .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
.code-highlight .kt { color: #B00040 } /* Keyword.Type */
.code-highlight .m { color: #666666 } /* Literal.Number */
.code-highlight .s { color: #BA2121 } /* Literal.String */
.code-highlight .na { color: #7D9029 } /* Name.Attribute */
.code-highlight .nb { color: #008000 } /* Name.Builtin */
.code-highlight .nc { color: #0000FF; font-weight: bold } /* Name.Class */
.code-highlight .no { color: #880000 } /* Name.Constant */
.code-highlight .nd { color: #AA22FF } /* Name.Decorator */
.code-highlight .ni { color: #999999; font-weight: bold } /* Name.Entity */
.code-highlight .ne { color: #D2413A; font-weight: bold } /* Name.Exception */
.code-highlight .nf { color: #0000FF } /* Name.Function */
.code-highlight .nl { color: #A0A000 } /* Name.Label */
.code-highlight .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */
.code-highlight .nt { color: #008000; font-weight: bold } /* Name.Tag */
.code-highlight .nv { color: #19177C } /* Name.Variable */
.code-highlight .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
.code-highlight .w { color: #bbbbbb } /* Text.Whitespace */
.code-highlight .mb { color: #666666 } /* Literal.Number.Bin */
.code-highlight .mf { color: #666666 } /* Literal.Number.Float */
.code-highlight .mh { color: #666666 } /* Literal.Number.Hex */
.code-highlight .mi { color: #666666 } /* Literal.Number.Integer */
.code-highlight .mo { color: #666666 } /* Literal.Number.Oct */
.code-highlight .sa { color: #BA2121 } /* Literal.String.Affix */
.code-highlight .sb { color: #BA2121 } /* Literal.String.Backtick */
.code-highlight .sc { color: #BA2121 } /* Literal.String.Char */
.code-highlight .dl { color: #BA2121 } /* Literal.String.Delimiter */
.code-highlight .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */
.code-highlight .s2 { color: #BA2121 } /* Literal.String.Double */
.code-highlight .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */
.code-highlight .sh { color: #BA2121 } /* Literal.String.Heredoc */
.code-highlight .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */
.code-highlight .sx { color: #008000 } /* Literal.String.Other */
.code-highlight .sr { color: #BB6688 } /* Literal.String.Regex */
.code-highlight .s1 { color: #BA2121 } /* Literal.String.Single */
.code-highlight .ss { color: #19177C } /* Literal.String.Symbol */
.code-highlight .bp { color: #008000 } /* Name.Builtin.Pseudo */
.code-highlight .fm { color: #0000FF } /* Name.Function.Magic */
.code-highlight .vc { color: #19177C } /* Name.Variable.Class */
.code-highlight .vg { color: #19177C } /* Name.Variable.Global */
.code-highlight .vi { color: #19177C } /* Name.Variable.Instance */
.code-highlight .vm { color: #19177C } /* Name.Variable.Magic */
.code-highlight .il { color: #666666 } /* Literal.Number.Integer.Long */

View File

@ -242,7 +242,8 @@ def code_highlighter(codelines, language=None):
# highlight last codepart # highlight last codepart
formatter = HtmlFormatter(linenos='inline', formatter = HtmlFormatter(linenos='inline',
linenostart=line_code_start) linenostart=line_code_start,
cssclass="code-highlight")
html_code = html_code + highlight(tmp_code, lexer, formatter) html_code = html_code + highlight(tmp_code, lexer, formatter)
# reset conditions for next codepart # reset conditions for next codepart
@ -256,7 +257,7 @@ def code_highlighter(codelines, language=None):
last_line = line last_line = line
# highlight last codepart # highlight last codepart
formatter = HtmlFormatter(linenos='inline', linenostart=line_code_start) formatter = HtmlFormatter(linenos='inline', linenostart=line_code_start, cssclass="code-highlight")
html_code = html_code + highlight(tmp_code, lexer, formatter) html_code = html_code + highlight(tmp_code, lexer, formatter)
return html_code return html_code

View File

@ -0,0 +1,138 @@
#!/usr/bin/env python
"""
Update pygments style
Call this script after each upgrade of pygments
"""
# pylint: disable=C0116
# set path
from os.path import join
import pygments
from pygments.formatters import HtmlFormatter # pylint: disable=E0611
from pygments.style import Style
from pygments.token import Comment, Error, Generic, Keyword, Literal, Name, Operator, Text
from searx import searx_dir
class LogicodevStyle(Style): # pylint: disable=R0903
"""Logicodev style
based on https://github.com/searx/searx/blob/2a5c39e33c3306ca17e09211fbf5a0f785cb10c8/searx/static/themes/oscar/less/logicodev/code.less
""" # pylint: disable=C0301
background_color = '#282C34'
styles = {
Comment: "#556366 italic",
Comment.Multiline: "#556366 italic",
Comment.Preproc: "#BC7A00",
Comment.Single: "#556366 italic",
Comment.Special: "#556366 italic",
Error: "border:#ff0000",
Generic.Deleted: "#A00000",
Generic.Emph: "italic",
Generic.Error: "#FF0000",
Generic.Heading: "#000080 bold",
Generic.Inserted: "#00A000",
Generic.Output: "#888888",
Generic.Prompt: "#000080 bold",
Generic.Strong: "bold",
Generic.Subheading: "#800080 bold",
Generic.Traceback: "#0044DD",
Keyword: "#BE74D5 bold",
Keyword.Constant: "#BE74D5 bold",
Keyword.Declaration: "#BE74D5 bold",
Keyword.Namespace: "#BE74D5 bold",
Keyword.Pseudo: "#BE74D5",
Keyword.Reserved: "#BE74D5 bold",
Keyword.Type: "#D46C72",
Literal.Number: "#D19A66",
Literal.String: "#86C372",
Literal.String.Backtick:"#86C372",
Literal.String.Char: "#86C372",
Literal.String.Doc: "#86C372 italic",
Literal.String.Double: "#86C372",
Literal.String.Escape: "#BB6622 bold",
Literal.String.Heredoc: "#86C372",
Literal.String.Interpol:"#BB6688 bold",
Literal.String.Other: "#BE74D5",
Literal.String.Regex: "#BB6688",
Literal.String.Single: "#86C372",
Literal.String.Symbol: "#DFC06F",
Name.Attribute: "#7D9029",
Name.Builtin: "#BE74D5",
Name.Builtin.Pseudo: "#BE74D5",
Name.Class: "#61AFEF bold",
Name.Constant: "#D19A66",
Name.Decorator: "#AA22FF",
Name.Entity: "#999999 bold",
Name.Exception: "#D2413A bold",
Name.Function: "#61AFEF",
Name.Label: "#A0A000",
Name.Namespace: "#61AFEF bold",
Name.Tag: "#BE74D5 bold",
Name.Variable: "#DFC06F",
Name.Variable.Class: "#DFC06F",
Name.Variable.Global: "#DFC06F",
Name.Variable.Instance: "#DFC06F",
Operator: "#D19A66",
Operator.Word: "#AA22FF bold",
Text.Whitespace: "#D7DAE0",
}
CSSCLASS = '.code-highlight'
RULE_CODE_LINENOS = """ .linenos {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
cursor: default;
&::selection {
background: transparent; /* WebKit/Blink Browsers */
}
&::-moz-selection {
background: transparent; /* Gecko Browsers */
}
margin-right: 8px;
text-align: right;
}"""
def get_output_filename(relative_name):
return join(searx_dir, relative_name)
def get_css(cssclass, style):
result = f"""/*
this file is generated automatically by searx_extra/update/update_pygments.py
using pygments version {pygments.__version__}
*/\n\n"""
css_text = HtmlFormatter(style=style).get_style_defs(cssclass)
result += cssclass + RULE_CODE_LINENOS + '\n\n'
for line in css_text.splitlines():
if ' ' in line and not line.startswith(cssclass):
line = cssclass + ' ' + line
result += line + '\n'
return result
def main():
with open(get_output_filename('static/themes/oscar/src/less/logicodev/pygments.less'), 'w') as f:
f.write(get_css(CSSCLASS, LogicodevStyle))
with open(get_output_filename('static/themes/oscar/src/less/pointhi/pygments.less'), 'w') as f:
f.write(get_css(CSSCLASS, 'default'))
with open(get_output_filename('static/themes/simple/less/pygments.less'), 'w') as f:
f.write(get_css(CSSCLASS, 'default'))
if __name__ == '__main__':
main()