diff --git a/requirements.txt b/requirements.txt index e6a25c998..39eff78ad 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,7 +5,7 @@ flask==1.1.2 idna==2.10 jinja2==2.11.3 lxml==4.6.2 -pygments==2.1.3 +pygments==2.8.0 python-dateutil==2.8.1 pyyaml==5.4.1 requests[socks]==2.25.1 diff --git a/searx/static/themes/oscar/css/bootstrap.min.css.map b/searx/static/themes/oscar/css/bootstrap.min.css.map index 3adb4213b..121f504ca 100644 Binary files a/searx/static/themes/oscar/css/bootstrap.min.css.map and b/searx/static/themes/oscar/css/bootstrap.min.css.map differ diff --git a/searx/static/themes/oscar/css/logicodev-dark.css b/searx/static/themes/oscar/css/logicodev-dark.css index 79df720e0..e2a3c5ca5 100644 --- a/searx/static/themes/oscar/css/logicodev-dark.css +++ b/searx/static/themes/oscar/css/logicodev-dark.css @@ -162,9 +162,7 @@ input[type=checkbox]:not(:checked) + .label_hide_if_checked + .label_hide_if_not color: #666; font-size: 13px; } -.result-content .highlight, -.result-format .highlight, -.result-source .highlight { +.result .highlight { font-weight: bold; } .result-source { @@ -529,277 +527,11 @@ pre, code { font-family: 'Ubuntu Mono', 'Courier New', 'Lucida Console', monospace !important; } -.lineno { - margin-right: 5px; -} -.highlight .hll { - background-color: #ffffcc; -} -.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 { +/* + 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; @@ -807,26 +539,351 @@ code { -ms-user-select: none; user-select: none; cursor: default; - color: #556366; + margin-right: 8px; + text-align: right; } -.highlight .lineno::selection { +.code-highlight .linenos::selection { background: transparent; /* WebKit/Blink Browsers */ } -.highlight .lineno::-moz-selection { +.code-highlight .linenos::-moz-selection { background: transparent; /* Gecko Browsers */ } -.highlight pre { - background-color: #282C34; - color: #D7DAE0; - border: none; - margin-bottom: 25px; - font-size: 15px; - padding: 20px 10px; +.code-highlight pre { + line-height: 125%; } -.highlight { - font-weight: 700; +.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 */ +.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 > th { diff --git a/searx/static/themes/oscar/css/logicodev-dark.min.css b/searx/static/themes/oscar/css/logicodev-dark.min.css index 5fc23854d..3b0a8b6c0 100644 Binary files a/searx/static/themes/oscar/css/logicodev-dark.min.css and b/searx/static/themes/oscar/css/logicodev-dark.min.css differ diff --git a/searx/static/themes/oscar/css/logicodev-dark.min.css.map b/searx/static/themes/oscar/css/logicodev-dark.min.css.map index 348dd7dfa..0593f389f 100644 Binary files a/searx/static/themes/oscar/css/logicodev-dark.min.css.map and b/searx/static/themes/oscar/css/logicodev-dark.min.css.map differ diff --git a/searx/static/themes/oscar/css/logicodev.css b/searx/static/themes/oscar/css/logicodev.css index dfa982c79..8898928f8 100644 --- a/searx/static/themes/oscar/css/logicodev.css +++ b/searx/static/themes/oscar/css/logicodev.css @@ -135,9 +135,7 @@ input[type=checkbox]:not(:checked) + .label_hide_if_checked + .label_hide_if_not color: #666; font-size: 13px; } -.result-content .highlight, -.result-format .highlight, -.result-source .highlight { +.result .highlight { font-weight: bold; } .result-source { @@ -502,277 +500,11 @@ pre, code { font-family: 'Ubuntu Mono', 'Courier New', 'Lucida Console', monospace !important; } -.lineno { - margin-right: 5px; -} -.highlight .hll { - background-color: #ffffcc; -} -.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 { +/* + 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; @@ -780,26 +512,351 @@ code { -ms-user-select: none; user-select: none; cursor: default; - color: #556366; + margin-right: 8px; + text-align: right; } -.highlight .lineno::selection { +.code-highlight .linenos::selection { background: transparent; /* WebKit/Blink Browsers */ } -.highlight .lineno::-moz-selection { +.code-highlight .linenos::-moz-selection { background: transparent; /* Gecko Browsers */ } -.highlight pre { - background-color: #282C34; - color: #D7DAE0; - border: none; - margin-bottom: 25px; - font-size: 15px; - padding: 20px 10px; +.code-highlight pre { + line-height: 125%; } -.highlight { - font-weight: 700; +.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 */ +.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 > th { @@ -872,9 +929,6 @@ ul.nav li a { .table-striped tr th { border-color: #4d3f43 !important; } -.highlight { - background: #333333 !important; -} /*nav*/ .navbar { background: #1d1f21 none; diff --git a/searx/static/themes/oscar/css/logicodev.min.css b/searx/static/themes/oscar/css/logicodev.min.css index 40365bb6f..5b769354c 100644 Binary files a/searx/static/themes/oscar/css/logicodev.min.css and b/searx/static/themes/oscar/css/logicodev.min.css differ diff --git a/searx/static/themes/oscar/css/logicodev.min.css.map b/searx/static/themes/oscar/css/logicodev.min.css.map index 97323d9a9..2201e4311 100644 Binary files a/searx/static/themes/oscar/css/logicodev.min.css.map and b/searx/static/themes/oscar/css/logicodev.min.css.map differ diff --git a/searx/static/themes/oscar/css/pointhi.css b/searx/static/themes/oscar/css/pointhi.css index 6962a70ce..7c0f1d180 100644 --- a/searx/static/themes/oscar/css/pointhi.css +++ b/searx/static/themes/oscar/css/pointhi.css @@ -156,6 +156,9 @@ input[type=checkbox]:not(:checked) + .label_hide_if_checked + .label_hide_if_not outline: 0 none; position: relative; } +.highlight { + font-weight: 700; +} .infobox img { max-height: 250px; } @@ -303,274 +306,11 @@ input[type=checkbox]:not(:checked) + .label_hide_if_checked + .label_hide_if_not .cursor-pointer { cursor: pointer !important; } -.highlight .hll { - 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 .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-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; user-select: none; cursor: default; + margin-right: 8px; + text-align: right; } -.highlight .lineno::selection { +.code-highlight .linenos::selection { background: transparent; /* WebKit/Blink Browsers */ } -.highlight .lineno::-moz-selection { +.code-highlight .linenos::-moz-selection { background: transparent; /* 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 { background: #eee; color: #aaa; diff --git a/searx/static/themes/oscar/css/pointhi.min.css b/searx/static/themes/oscar/css/pointhi.min.css index d3151e73c..dbe662a58 100644 Binary files a/searx/static/themes/oscar/css/pointhi.min.css and b/searx/static/themes/oscar/css/pointhi.min.css differ diff --git a/searx/static/themes/oscar/css/pointhi.min.css.map b/searx/static/themes/oscar/css/pointhi.min.css.map index 1b354d65d..3cabc4855 100644 Binary files a/searx/static/themes/oscar/css/pointhi.min.css.map and b/searx/static/themes/oscar/css/pointhi.min.css.map differ diff --git a/searx/static/themes/oscar/js/bootstrap.bundle.min.js b/searx/static/themes/oscar/js/bootstrap.bundle.min.js new file mode 100644 index 000000000..7961bdaf8 Binary files /dev/null and b/searx/static/themes/oscar/js/bootstrap.bundle.min.js differ diff --git a/searx/static/themes/oscar/js/searx.min.js b/searx/static/themes/oscar/js/searx.min.js index cc2f9036c..71d67ae7f 100644 Binary files a/searx/static/themes/oscar/js/searx.min.js and b/searx/static/themes/oscar/js/searx.min.js differ diff --git a/searx/static/themes/oscar/js/searx.min.js.map b/searx/static/themes/oscar/js/searx.min.js.map index 1b97836dd..11b3a9102 100644 Binary files a/searx/static/themes/oscar/js/searx.min.js.map and b/searx/static/themes/oscar/js/searx.min.js.map differ diff --git a/searx/static/themes/oscar/src/less/logicodev-dark/oscar.less b/searx/static/themes/oscar/src/less/logicodev-dark/oscar.less index e788b8cba..b7feccdff 100644 --- a/searx/static/themes/oscar/src/less/logicodev-dark/oscar.less +++ b/searx/static/themes/oscar/src/less/logicodev-dark/oscar.less @@ -71,10 +71,6 @@ ul.nav li a { border-color: #4d3f43 !important; } -.highlight { - background: #333333 !important; -} - /*nav*/ .navbar{ background:#1d1f21 none; diff --git a/searx/static/themes/oscar/src/less/logicodev/code.less b/searx/static/themes/oscar/src/less/logicodev/code.less index 491b30e5a..3aef9685f 100644 --- a/searx/static/themes/oscar/src/less/logicodev/code.less +++ b/searx/static/themes/oscar/src/less/logicodev/code.less @@ -1,101 +1,14 @@ -pre, code{ +pre, code { font-family: 'Ubuntu Mono', 'Courier New', 'Lucida Console', monospace !important; } -.lineno{ - margin-right: 5px; -} +@import "pygments.less"; -.highlight .hll { background-color: #ffffcc } -.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; +.code-highlight pre { margin-bottom: 25px; - font-size: 15px; padding: 20px 10px; -} - -.highlight { - font-weight: 700; + background-color: inherit; + color: inherit; + border: inherit; + color: #D7DAE0; } diff --git a/searx/static/themes/oscar/src/less/logicodev/pygments.less b/searx/static/themes/oscar/src/less/logicodev/pygments.less new file mode 100644 index 000000000..301c94e57 --- /dev/null +++ b/searx/static/themes/oscar/src/less/logicodev/pygments.less @@ -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 */ diff --git a/searx/static/themes/oscar/src/less/logicodev/results.less b/searx/static/themes/oscar/src/less/logicodev/results.less index 33965fb33..ce62cd34d 100644 --- a/searx/static/themes/oscar/src/less/logicodev/results.less +++ b/searx/static/themes/oscar/src/less/logicodev/results.less @@ -33,12 +33,10 @@ word-wrap: break-word; color: @dark-gray; font-size: 13px; +} - - .highlight { - font-weight:bold; - } - +.result .highlight { + font-weight: bold; } .result-source { diff --git a/searx/static/themes/oscar/src/less/pointhi/code.less b/searx/static/themes/oscar/src/less/pointhi/code.less index 70a2a5d49..86fe15372 100644 --- a/searx/static/themes/oscar/src/less/pointhi/code.less +++ b/searx/static/themes/oscar/src/less/pointhi/code.less @@ -1,79 +1,2 @@ -.highlight .hll { 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 */ +@import "pygments.less"; -.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 */ - } -} diff --git a/searx/static/themes/oscar/src/less/pointhi/oscar.less b/searx/static/themes/oscar/src/less/pointhi/oscar.less index fc1c525ff..037bfa59b 100644 --- a/searx/static/themes/oscar/src/less/pointhi/oscar.less +++ b/searx/static/themes/oscar/src/less/pointhi/oscar.less @@ -18,4 +18,6 @@ @import "navbar.less"; +@import "code.less"; + @import "preferences.less"; diff --git a/searx/static/themes/oscar/src/less/pointhi/pygments.less b/searx/static/themes/oscar/src/less/pointhi/pygments.less new file mode 100644 index 000000000..25a921c0e --- /dev/null +++ b/searx/static/themes/oscar/src/less/pointhi/pygments.less @@ -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 */ diff --git a/searx/static/themes/oscar/src/less/pointhi/results.less b/searx/static/themes/oscar/src/less/pointhi/results.less index 13266c007..f6a2a0239 100644 --- a/searx/static/themes/oscar/src/less/pointhi/results.less +++ b/searx/static/themes/oscar/src/less/pointhi/results.less @@ -107,3 +107,7 @@ outline: 0 none; position: relative; } + +.highlight { + font-weight: 700; +} diff --git a/searx/static/themes/simple/css/searx-rtl.css b/searx/static/themes/simple/css/searx-rtl.css index d0c033680..526f63668 100644 --- a/searx/static/themes/simple/css/searx-rtl.css +++ b/searx/static/themes/simple/css/searx-rtl.css @@ -1,4 +1,4 @@ -/*! searx | 01-12-2020 | https://github.com/searx/searx */ +/*! searx | 16-03-2021 | */ /* * searx, A privacy-respecting, hackable metasearch engine * @@ -311,277 +311,17 @@ template { /* * searx, A privacy-respecting, hackable metasearch engine */ -.highlight .hll { - 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 { +.code-highlight pre { 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-user-select: none; -khtml-user-select: none; @@ -589,15 +329,341 @@ template { -ms-user-select: none; user-select: none; cursor: default; + margin-right: 8px; + text-align: right; } -.highlight .lineno::selection { +.code-highlight .linenos::selection { background: transparent; /* WebKit/Blink Browsers */ } -.highlight .lineno::-moz-selection { +.code-highlight .linenos::-moz-selection { background: transparent; /* 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 { display: none; } diff --git a/searx/static/themes/simple/css/searx-rtl.min.css b/searx/static/themes/simple/css/searx-rtl.min.css index a4e0b72ec..73383a710 100644 Binary files a/searx/static/themes/simple/css/searx-rtl.min.css and b/searx/static/themes/simple/css/searx-rtl.min.css differ diff --git a/searx/static/themes/simple/css/searx.css b/searx/static/themes/simple/css/searx.css index 080a306be..938731ff7 100644 --- a/searx/static/themes/simple/css/searx.css +++ b/searx/static/themes/simple/css/searx.css @@ -1,4 +1,4 @@ -/*! searx | 01-12-2020 | https://github.com/searx/searx */ +/*! searx | 16-03-2021 | */ /* * searx, A privacy-respecting, hackable metasearch engine * @@ -311,277 +311,17 @@ template { /* * searx, A privacy-respecting, hackable metasearch engine */ -.highlight .hll { - 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 { +.code-highlight pre { 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-user-select: none; -khtml-user-select: none; @@ -589,15 +329,341 @@ template { -ms-user-select: none; user-select: none; cursor: default; + margin-right: 8px; + text-align: right; } -.highlight .lineno::selection { +.code-highlight .linenos::selection { background: transparent; /* WebKit/Blink Browsers */ } -.highlight .lineno::-moz-selection { +.code-highlight .linenos::-moz-selection { background: transparent; /* 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 { display: none; } diff --git a/searx/static/themes/simple/css/searx.min.css b/searx/static/themes/simple/css/searx.min.css index 0944b950f..2e8a04828 100644 Binary files a/searx/static/themes/simple/css/searx.min.css and b/searx/static/themes/simple/css/searx.min.css differ diff --git a/searx/static/themes/simple/js/searx.head.min.js b/searx/static/themes/simple/js/searx.head.min.js index 8634d2a90..19de1e498 100644 Binary files a/searx/static/themes/simple/js/searx.head.min.js and b/searx/static/themes/simple/js/searx.head.min.js differ diff --git a/searx/static/themes/simple/js/searx.min.js b/searx/static/themes/simple/js/searx.min.js index 74d7cf4ce..731e9ca7c 100644 Binary files a/searx/static/themes/simple/js/searx.min.js and b/searx/static/themes/simple/js/searx.min.js differ diff --git a/searx/static/themes/simple/less/code.less b/searx/static/themes/simple/less/code.less index a688dd98d..b732103fb 100644 --- a/searx/static/themes/simple/less/code.less +++ b/searx/static/themes/simple/less/code.less @@ -1,83 +1,8 @@ -.highlight .hll { 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 { +.code-highlight pre { overflow: auto; + background-color: inherit; + color: inherit; + border: inherit; } -.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 */ - } -} +@import "pygments.less"; diff --git a/searx/static/themes/simple/less/pygments.less b/searx/static/themes/simple/less/pygments.less new file mode 100644 index 000000000..25a921c0e --- /dev/null +++ b/searx/static/themes/simple/less/pygments.less @@ -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 */ diff --git a/searx/webapp.py b/searx/webapp.py index ed1e9ce49..062077292 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -242,7 +242,8 @@ def code_highlighter(codelines, language=None): # highlight last codepart formatter = HtmlFormatter(linenos='inline', - linenostart=line_code_start) + linenostart=line_code_start, + cssclass="code-highlight") html_code = html_code + highlight(tmp_code, lexer, formatter) # reset conditions for next codepart @@ -256,7 +257,7 @@ def code_highlighter(codelines, language=None): last_line = line # 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) return html_code diff --git a/searx_extra/update/update_pygments.py b/searx_extra/update/update_pygments.py new file mode 100755 index 000000000..067cd4594 --- /dev/null +++ b/searx_extra/update/update_pygments.py @@ -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()