mirror of
https://github.com/searxng/searxng
synced 2024-01-01 18:24:07 +00:00
[enh] oscar theme redesign added
The original code made by @logico-dev (#559)
This commit is contained in:
parent
237d251d14
commit
f496dc353d
1
searx/static/themes/oscar/css/logicodev.min.css
vendored
Normal file
1
searx/static/themes/oscar/css/logicodev.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
88
searx/static/themes/oscar/css/oscar.min.css
vendored
88
searx/static/themes/oscar/css/oscar.min.css
vendored
@ -1,88 +0,0 @@
|
||||
html{position:relative;min-height:100%}
|
||||
body{margin-bottom:80px}
|
||||
.footer{position:absolute;bottom:0;width:100%;height:60px}
|
||||
input[type=checkbox]:checked+.label_hide_if_checked,input[type=checkbox]:checked+.label_hide_if_not_checked+.label_hide_if_checked{display:none}
|
||||
input[type=checkbox]:not(:checked)+.label_hide_if_not_checked,input[type=checkbox]:not(:checked)+.label_hide_if_checked+.label_hide_if_not_checked{display:none}
|
||||
.result_header{margin-bottom:5px;margin-top:20px}.result_header .favicon{margin-bottom:-3px}
|
||||
.result_header a{vertical-align:bottom}.result_header a .highlight{font-weight:bold}
|
||||
.result-content{margin-top:5px;word-wrap:break-word}.result-content .highlight{font-weight:bold}
|
||||
.result-default{clear:both}
|
||||
.result-images{float:left !important}
|
||||
.img-thumbnail{margin:5px;max-height:128px;min-height:128px}
|
||||
.result-videos{clear:both}
|
||||
.result-torrents{clear:both}
|
||||
.result-map{clear:both}
|
||||
.result-code{clear:both}
|
||||
.suggestion_item{margin:2px 5px}
|
||||
.result_download{margin-right:5px}
|
||||
#pagination{margin-top:30px;padding-bottom:50px}
|
||||
.label-default{color:#aaa;background:#fff}
|
||||
.infobox .infobox_part{margin-bottom:20px;word-wrap:break-word;table-layout:fixed}
|
||||
.infobox .infobox_part:last-child{margin-bottom:0}
|
||||
.search_categories{margin:10px 0;text-transform:capitalize}
|
||||
.cursor-text{cursor:text !important}
|
||||
.cursor-pointer{cursor:pointer !important}
|
||||
.highlight .hll{background-color:#ffc}
|
||||
.highlight{background:#f8f8f8}
|
||||
.highlight .c{color:#408080;font-style:italic}
|
||||
.highlight .err{border:1px solid #f00}
|
||||
.highlight .k{color:#008000;font-weight:bold}
|
||||
.highlight .o{color:#666}
|
||||
.highlight .cm{color:#408080;font-style:italic}
|
||||
.highlight .cp{color:#bc7a00}
|
||||
.highlight .c1{color:#408080;font-style:italic}
|
||||
.highlight .cs{color:#408080;font-style:italic}
|
||||
.highlight .gd{color:#a00000}
|
||||
.highlight .ge{font-style:italic}
|
||||
.highlight .gr{color:#f00}
|
||||
.highlight .gh{color:#000080;font-weight:bold}
|
||||
.highlight .gi{color:#00a000}
|
||||
.highlight .go{color:#888}
|
||||
.highlight .gp{color:#000080;font-weight:bold}
|
||||
.highlight .gs{font-weight:bold}
|
||||
.highlight .gu{color:#800080;font-weight:bold}
|
||||
.highlight .gt{color:#04d}
|
||||
.highlight .kc{color:#008000;font-weight:bold}
|
||||
.highlight .kd{color:#008000;font-weight:bold}
|
||||
.highlight .kn{color:#008000;font-weight:bold}
|
||||
.highlight .kp{color:#008000}
|
||||
.highlight .kr{color:#008000;font-weight:bold}
|
||||
.highlight .kt{color:#b00040}
|
||||
.highlight .m{color:#666}
|
||||
.highlight .s{color:#ba2121}
|
||||
.highlight .na{color:#7d9029}
|
||||
.highlight .nb{color:#008000}
|
||||
.highlight .nc{color:#00f;font-weight:bold}
|
||||
.highlight .no{color:#800}
|
||||
.highlight .nd{color:#a2f}
|
||||
.highlight .ni{color:#999;font-weight:bold}
|
||||
.highlight .ne{color:#d2413a;font-weight:bold}
|
||||
.highlight .nf{color:#00f}
|
||||
.highlight .nl{color:#a0a000}
|
||||
.highlight .nn{color:#00f;font-weight:bold}
|
||||
.highlight .nt{color:#008000;font-weight:bold}
|
||||
.highlight .nv{color:#19177c}
|
||||
.highlight .ow{color:#a2f;font-weight:bold}
|
||||
.highlight .w{color:#bbb}
|
||||
.highlight .mf{color:#666}
|
||||
.highlight .mh{color:#666}
|
||||
.highlight .mi{color:#666}
|
||||
.highlight .mo{color:#666}
|
||||
.highlight .sb{color:#ba2121}
|
||||
.highlight .sc{color:#ba2121}
|
||||
.highlight .sd{color:#ba2121;font-style:italic}
|
||||
.highlight .s2{color:#ba2121}
|
||||
.highlight .se{color:#b62;font-weight:bold}
|
||||
.highlight .sh{color:#ba2121}
|
||||
.highlight .si{color:#b68;font-weight:bold}
|
||||
.highlight .sx{color:#008000}
|
||||
.highlight .sr{color:#b68}
|
||||
.highlight .s1{color:#ba2121}
|
||||
.highlight .ss{color:#19177c}
|
||||
.highlight .bp{color:#008000}
|
||||
.highlight .vc{color:#19177c}
|
||||
.highlight .vg{color:#19177c}
|
||||
.highlight .vi{color:#19177c}
|
||||
.highlight .il{color:#666}
|
||||
.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}.highlight .lineno::selection{background:transparent;}
|
||||
.highlight .lineno::-moz-selection{background:transparent;}
|
1
searx/static/themes/oscar/css/pointhi.min.css
vendored
Normal file
1
searx/static/themes/oscar/css/pointhi.min.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
html{position:relative;min-height:100%}body{margin-bottom:80px}.footer{position:absolute;bottom:0;width:100%;height:60px}input[type=checkbox]:checked+.label_hide_if_checked,input[type=checkbox]:checked+.label_hide_if_not_checked+.label_hide_if_checked{display:none}input[type=checkbox]:not(:checked)+.label_hide_if_not_checked,input[type=checkbox]:not(:checked)+.label_hide_if_checked+.label_hide_if_not_checked{display:none}.result_header{margin-bottom:5px;margin-top:20px}.result_header .favicon{margin-bottom:-3px}.result_header a{vertical-align:bottom}.result_header a .highlight{font-weight:700}.result-content{margin-top:5px;word-wrap:break-word}.result-content .highlight{font-weight:700}.result-default{clear:both}.result-images{float:left!important}.img-thumbnail{margin:5px;max-height:128px;min-height:128px}.result-videos{clear:both}.result-torrents{clear:both}.result-map{clear:both}.result-code{clear:both}.suggestion_item{margin:2px 5px}.result_download{margin-right:5px}#pagination{margin-top:30px;padding-bottom:50px}.label-default{color:#AAA;background:#FFF}.infobox .infobox_part{margin-bottom:20px;word-wrap:break-word;table-layout:fixed}.infobox .infobox_part:last-child{margin-bottom:0}.search_categories{margin:10px 0;text-transform:capitalize}.cursor-text{cursor:text!important}.cursor-pointer{cursor:pointer!important}.highlight .hll{background-color:#ffc}.highlight{background:#f8f8f8}.highlight .c{color:#408080;font-style:italic}.highlight .err{border:1px solid red}.highlight .k{color:green;font-weight:700}.highlight .o{color:#666}.highlight .cm{color:#408080;font-style:italic}.highlight .cp{color:#bc7a00}.highlight .c1{color:#408080;font-style:italic}.highlight .cs{color:#408080;font-style:italic}.highlight .gd{color:#a00000}.highlight .ge{font-style:italic}.highlight .gr{color:red}.highlight .gh{color:navy;font-weight:700}.highlight .gi{color:#00a000}.highlight .go{color:#888}.highlight .gp{color:navy;font-weight:700}.highlight .gs{font-weight:700}.highlight .gu{color:purple;font-weight:700}.highlight .gt{color:#04d}.highlight .kc{color:green;font-weight:700}.highlight .kd{color:green;font-weight:700}.highlight .kn{color:green;font-weight:700}.highlight .kp{color:green}.highlight .kr{color:green;font-weight:700}.highlight .kt{color:#b00040}.highlight .m{color:#666}.highlight .s{color:#ba2121}.highlight .na{color:#7d9029}.highlight .nb{color:green}.highlight .nc{color:#00F;font-weight:700}.highlight .no{color:#800}.highlight .nd{color:#a2f}.highlight .ni{color:#999;font-weight:700}.highlight .ne{color:#D2413A;font-weight:700}.highlight .nf{color:#00f}.highlight .nl{color:#a0a000}.highlight .nn{color:#00F;font-weight:700}.highlight .nt{color:green;font-weight:700}.highlight .nv{color:#19177c}.highlight .ow{color:#A2F;font-weight:700}.highlight .w{color:#bbb}.highlight .mf{color:#666}.highlight .mh{color:#666}.highlight .mi{color:#666}.highlight .mo{color:#666}.highlight .sb{color:#ba2121}.highlight .sc{color:#ba2121}.highlight .sd{color:#BA2121;font-style:italic}.highlight .s2{color:#ba2121}.highlight .se{color:#B62;font-weight:700}.highlight .sh{color:#ba2121}.highlight .si{color:#B68;font-weight:700}.highlight .sx{color:green}.highlight .sr{color:#b68}.highlight .s1{color:#ba2121}.highlight .ss{color:#19177c}.highlight .bp{color:green}.highlight .vc{color:#19177c}.highlight .vg{color:#19177c}.highlight .vi{color:#19177c}.highlight .il{color:#666}.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}.highlight .lineno::selection{background:0 0}.highlight .lineno::-moz-selection{background:0 0}
|
@ -36,18 +36,20 @@ module.exports = function(grunt) {
|
||||
less: {
|
||||
development: {
|
||||
options: {
|
||||
paths: ["less/oscar"]
|
||||
paths: ["less/pointhi", "less/logicodev"]
|
||||
//banner: '/*! less/oscar/oscar.css | <%= grunt.template.today("dd-mm-yyyy") %> | https://github.com/asciimoo/searx */\n'
|
||||
},
|
||||
files: {"css/oscar.css": "less/oscar/oscar.less"}
|
||||
files: {"css/pointhi.css": "less/pointhi/oscar.less",
|
||||
"css/logicodev.css": "less/logicodev/oscar.less"}
|
||||
},
|
||||
production: {
|
||||
options: {
|
||||
paths: ["less/oscar"],
|
||||
paths: ["less/pointhi", "less/logicodev"],
|
||||
//banner: '/*! less/oscar/oscar.css | <%= grunt.template.today("dd-mm-yyyy") %> | https://github.com/asciimoo/searx */\n',
|
||||
cleancss: true
|
||||
},
|
||||
files: {"css/oscar.min.css": "less/oscar/oscar.less"}
|
||||
files: {"css/pointhi.min.css": "less/pointhi/oscar.less",
|
||||
"css/logicodev.min.css": "less/logicodev/oscar.less"}
|
||||
},
|
||||
bootstrap: {
|
||||
options: {
|
||||
@ -63,7 +65,7 @@ module.exports = function(grunt) {
|
||||
tasks: ['jshint', 'concat', 'uglify']
|
||||
},
|
||||
oscar_styles: {
|
||||
files: ['less/oscar/**/*.less'],
|
||||
files: ['less/pointhi/**/*.less'],
|
||||
tasks: ['less:development', 'less:production']
|
||||
},
|
||||
bootstrap_styles: {
|
||||
|
BIN
searx/static/themes/oscar/img/logo_searx_a.png
Normal file
BIN
searx/static/themes/oscar/img/logo_searx_a.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 33 KiB |
BIN
searx/static/themes/oscar/img/logo_searx_a_n.png
Normal file
BIN
searx/static/themes/oscar/img/logo_searx_a_n.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 32 KiB |
103
searx/static/themes/oscar/less/logicodev/code.less
Normal file
103
searx/static/themes/oscar/less/logicodev/code.less
Normal file
@ -0,0 +1,103 @@
|
||||
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 @orange } /* Error */
|
||||
.highlight .k { color: #BE74D5; font-weight: bold } /* Keyword */
|
||||
.highlight .o { color: #D19A66 } /* Operator */
|
||||
.highlight .cm { color: #556366; font-style: italic } /* Comment.Multiline */
|
||||
.highlight .cp { color: #BC7A00 } /* Comment.Preproc */
|
||||
.highlight .c1 { color: #556366; font-style: italic } /* Comment.Single */
|
||||
.highlight .cs { color: #556366; font-style: italic } /* Comment.Special */
|
||||
.highlight .gd { color: #A00000 } /* Generic.Deleted */
|
||||
.highlight .ge { font-style: italic } /* Generic.Emph */
|
||||
.highlight .gr { color: #FF0000 } /* Generic.Error */
|
||||
.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
|
||||
.highlight .gi { color: #00A000 } /* Generic.Inserted */
|
||||
.highlight .go { color: #888888 } /* Generic.Output */
|
||||
.highlight .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
|
||||
.highlight .gs { font-weight: bold } /* Generic.Strong */
|
||||
.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
|
||||
.highlight .gt { color: #0044DD } /* Generic.Traceback */
|
||||
.highlight .kc { color: #BE74D5; font-weight: bold } /* Keyword.Constant */
|
||||
.highlight .kd { color: #BE74D5; font-weight: bold } /* Keyword.Declaration */
|
||||
.highlight .kn { color: #BE74D5; font-weight: bold } /* Keyword.Namespace */
|
||||
.highlight .kp { color: #BE74D5 } /* Keyword.Pseudo */
|
||||
.highlight .kr { color: #BE74D5; font-weight: bold } /* Keyword.Reserved */
|
||||
.highlight .kt { color: #D46C72 } /* Keyword.Type */
|
||||
.highlight .m { color: #D19A66 } /* Literal.Number */
|
||||
.highlight .s { color: #86C372 } /* Literal.String */
|
||||
.highlight .na { color: #7D9029 } /* Name.Attribute */
|
||||
.highlight .nb { color: #BE74D5 } /* Name.Builtin */
|
||||
.highlight .nc { color: #61AFEF; font-weight: bold } /* Name.Class */
|
||||
.highlight .no { color: #D19A66 } /* Name.Constant */
|
||||
.highlight .nd { color: #AA22FF } /* Name.Decorator */
|
||||
.highlight .ni { color: #999999; font-weight: bold } /* Name.Entity */
|
||||
.highlight .ne { color: #D2413A; font-weight: bold } /* Name.Exception */
|
||||
.highlight .nf { color: #61AFEF } /* Name.Function */
|
||||
.highlight .nl { color: #A0A000 } /* Name.Label */
|
||||
.highlight .nn { color: #61AFEF; font-weight: bold } /* Name.Namespace */
|
||||
.highlight .nt { color: #BE74D5; font-weight: bold } /* Name.Tag */
|
||||
.highlight .nv { color: #DFC06F } /* Name.Variable */
|
||||
.highlight .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
|
||||
.highlight .w { color: #D7DAE0 } /* Text.Whitespace */
|
||||
.highlight .mf { color: #D19A66 } /* Literal.Number.Float */
|
||||
.highlight .mh { color: #D19A66 } /* Literal.Number.Hex */
|
||||
.highlight .mi { color: #D19A66 } /* Literal.Number.Integer */
|
||||
.highlight .mo { color: #D19A66 } /* Literal.Number.Oct */
|
||||
.highlight .sb { color: #86C372 } /* Literal.String.Backtick */
|
||||
.highlight .sc { color: #86C372 } /* Literal.String.Char */
|
||||
.highlight .sd { color: #86C372; font-style: italic } /* Literal.String.Doc */
|
||||
.highlight .s2 { color: #86C372 } /* Literal.String.Double */
|
||||
.highlight .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */
|
||||
.highlight .sh { color: #86C372 } /* Literal.String.Heredoc */
|
||||
.highlight .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */
|
||||
.highlight .sx { color: #BE74D5 } /* Literal.String.Other */
|
||||
.highlight .sr { color: #BB6688 } /* Literal.String.Regex */
|
||||
.highlight .s1 { color: #86C372 } /* Literal.String.Single */
|
||||
.highlight .ss { color: #DFC06F } /* Literal.String.Symbol */
|
||||
.highlight .bp { color: #BE74D5 } /* Name.Builtin.Pseudo */
|
||||
.highlight .vc { color: #DFC06F } /* Name.Variable.Class */
|
||||
.highlight .vg { color: #DFC06F } /* Name.Variable.Global */
|
||||
.highlight .vi { color: #DFC06F } /* Name.Variable.Instance */
|
||||
.highlight .il { color: #D19A66 } /* Literal.Number.Integer.Long */
|
||||
|
||||
.highlight .lineno {
|
||||
-webkit-touch-callout: none;
|
||||
-webkit-user-select: none;
|
||||
-khtml-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
cursor: default;
|
||||
color: #556366;
|
||||
|
||||
&::selection {
|
||||
background: transparent; /* WebKit/Blink Browsers */
|
||||
}
|
||||
&::-moz-selection {
|
||||
background: transparent; /* Gecko Browsers */
|
||||
}
|
||||
}
|
||||
|
||||
.highlight pre {
|
||||
background-color: #282C34;
|
||||
color: #D7DAE0;
|
||||
border: none;
|
||||
margin-bottom: 25px;
|
||||
font-size: 15px;
|
||||
padding: 20px 10px;
|
||||
}
|
||||
|
||||
.highlight {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
|
30
searx/static/themes/oscar/less/logicodev/footer.less
Normal file
30
searx/static/themes/oscar/less/logicodev/footer.less
Normal file
@ -0,0 +1,30 @@
|
||||
// Sticky footer styles
|
||||
*{
|
||||
border-radius: 0 !important;
|
||||
}
|
||||
html {
|
||||
position: relative;
|
||||
min-height: 100%;
|
||||
color: @black;
|
||||
}
|
||||
|
||||
body {
|
||||
/* Margin bottom by footer height */
|
||||
font-family: 'Roboto', Helvetica, Arial, sans-serif;
|
||||
margin-bottom: 80px;
|
||||
background-color: white;
|
||||
|
||||
a{
|
||||
color: @blue;
|
||||
}
|
||||
}
|
||||
|
||||
.footer {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
/* Set the fixed height of the footer here */
|
||||
height: 60px;
|
||||
text-align: center;
|
||||
color: #999;
|
||||
}
|
37
searx/static/themes/oscar/less/logicodev/infobox.less
Normal file
37
searx/static/themes/oscar/less/logicodev/infobox.less
Normal file
@ -0,0 +1,37 @@
|
||||
.infobox {
|
||||
|
||||
.panel-heading{
|
||||
background-color: @dim-gray;
|
||||
|
||||
.panel-title{
|
||||
font-weight: 700;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
p{
|
||||
font-family: "DejaVu Serif", Georgia, Cambria, "Times New Roman", Times, serif !important;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.btn{
|
||||
background-color: @green;
|
||||
border: none;
|
||||
|
||||
a{
|
||||
color: white;
|
||||
margin: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
.infobox_part {
|
||||
margin-bottom: 20px;
|
||||
word-wrap: break-word;
|
||||
table-layout: fixed;
|
||||
|
||||
}
|
||||
|
||||
.infobox_part:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
50
searx/static/themes/oscar/less/logicodev/navbar.less
Normal file
50
searx/static/themes/oscar/less/logicodev/navbar.less
Normal file
@ -0,0 +1,50 @@
|
||||
.navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus{
|
||||
background: @black;
|
||||
color: @light-green;
|
||||
}
|
||||
|
||||
.navbar > li > a {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.navbar-nav > li > a {
|
||||
background: @black;
|
||||
padding: 0 8px;
|
||||
margin: 0;
|
||||
line-height: 30px;
|
||||
}
|
||||
|
||||
.navbar, .navbar-default{
|
||||
background-color: @black;
|
||||
border: none;
|
||||
border-top: 4px solid @light-green;
|
||||
padding-top: 5px;
|
||||
color: @dim-gray !important;
|
||||
font-weight: 700;
|
||||
font-size: 1.1em;
|
||||
text-transform: lowercase;
|
||||
margin-bottom: 24px;
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
|
||||
.navbar-nav > li > a{
|
||||
color: @dim-gray;
|
||||
}
|
||||
|
||||
.navbar-brand{
|
||||
font-weight: 700;
|
||||
text-transform: capitalize;
|
||||
color: @light-green;
|
||||
line-height: 30px;
|
||||
padding: 0 30px;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Hover color
|
||||
// http://stackoverflow.com/users/114029/leniel-macaferi
|
||||
.navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus {
|
||||
color: @light-green;
|
||||
background: @black;
|
||||
}
|
17
searx/static/themes/oscar/less/logicodev/oscar.less
Normal file
17
searx/static/themes/oscar/less/logicodev/oscar.less
Normal file
@ -0,0 +1,17 @@
|
||||
@import "variables.less";
|
||||
|
||||
@import "navbar.less";
|
||||
|
||||
@import "footer.less";
|
||||
|
||||
@import "checkbox.less";
|
||||
|
||||
@import "results.less";
|
||||
|
||||
@import "infobox.less";
|
||||
|
||||
@import "search.less";
|
||||
|
||||
@import "cursor.less";
|
||||
|
||||
@import "code.less";
|
149
searx/static/themes/oscar/less/logicodev/results.less
Normal file
149
searx/static/themes/oscar/less/logicodev/results.less
Normal file
@ -0,0 +1,149 @@
|
||||
.result_header {
|
||||
margin-bottom:5px;
|
||||
font-size: 16px;
|
||||
|
||||
.favicon {
|
||||
margin-bottom:-3px;
|
||||
}
|
||||
|
||||
a {
|
||||
color: @black;
|
||||
text-decoration: none;
|
||||
|
||||
&:hover{
|
||||
color: @blue;
|
||||
}
|
||||
|
||||
&:visited{
|
||||
color: @violet;
|
||||
}
|
||||
|
||||
.highlight {
|
||||
background-color: @dim-gray;
|
||||
// Chrome hack: bold is different size than normal
|
||||
// https://stackoverflow.com/questions/20713988/weird-text-alignment-issue-in-css-when-bolded-lucida-sans
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.result-content {
|
||||
margin-top: 2px;
|
||||
margin-bottom: 4px;
|
||||
word-wrap: break-word;
|
||||
color: @dark-gray;
|
||||
font-size: 13px;
|
||||
|
||||
|
||||
.highlight {
|
||||
font-weight:bold;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.external-link, .external-link a{
|
||||
color: @green;
|
||||
|
||||
a{
|
||||
margin-right: 3px;
|
||||
}
|
||||
}
|
||||
|
||||
// default formating of results
|
||||
.result-default, .result-code, .result-torrent, .result-videos, .result-map {
|
||||
clear: both;
|
||||
padding: 2px 4px;
|
||||
&:hover{
|
||||
background-color: @dim-gray;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// image formating of results
|
||||
.result-images {
|
||||
float: left !important;
|
||||
width: 24%;
|
||||
margin: .5%;
|
||||
a{
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 170px;
|
||||
background-size: cover;
|
||||
}
|
||||
}
|
||||
|
||||
.img-thumbnail {
|
||||
margin: 5px;
|
||||
max-height: 128px;
|
||||
min-height: 128px;
|
||||
}
|
||||
|
||||
// video formating of results
|
||||
.result-videos {
|
||||
clear: both;
|
||||
|
||||
hr{
|
||||
margin: 5px 0 15px 0;
|
||||
}
|
||||
|
||||
.collapse{
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.in{
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
// torrent formating of results
|
||||
.result-torrent {
|
||||
clear: both;
|
||||
|
||||
b{
|
||||
margin-right: 5px;
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.seeders{
|
||||
color: @green;
|
||||
}
|
||||
|
||||
.leechers{
|
||||
color: @red;
|
||||
}
|
||||
}
|
||||
|
||||
// map formating of results
|
||||
.result-map {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
// code formating of results
|
||||
.result-code {
|
||||
clear: both;
|
||||
|
||||
.code-fork, .code-fork a{
|
||||
color: @dark-gray;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// suggestion
|
||||
.suggestion_item {
|
||||
margin: 2px 5px;
|
||||
}
|
||||
|
||||
// download result
|
||||
.result_download {
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
// page forward, backward
|
||||
#pagination {
|
||||
margin-top: 30px;
|
||||
padding-bottom: 60px;
|
||||
}
|
||||
|
||||
.label-default {
|
||||
color: @gray;
|
||||
background: transparent;
|
||||
}
|
59
searx/static/themes/oscar/less/logicodev/search.less
Normal file
59
searx/static/themes/oscar/less/logicodev/search.less
Normal file
@ -0,0 +1,59 @@
|
||||
.search_categories, #categories {
|
||||
margin: 15px 0 20px 0;
|
||||
text-transform: capitalize;
|
||||
|
||||
label{
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
font-size: 13px;
|
||||
padding-bottom: 2px;
|
||||
color: @gray;
|
||||
margin-bottom: 5px;
|
||||
|
||||
&:hover{
|
||||
color: @black;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
&:active{
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
.active, .btn-primary{
|
||||
color: @black;
|
||||
font-weight: 700;
|
||||
border-bottom: 5px solid @light-green;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .open > .dropdown-toggle.btn-primary {
|
||||
background-color: transparent !important;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
#categories{
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#main-logo{
|
||||
margin-top: 10vh;
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
|
||||
#q{
|
||||
box-shadow: none;
|
||||
border-right: none;
|
||||
border-color: @gray;
|
||||
}
|
||||
|
||||
#search_form .input-group-btn .btn{
|
||||
border-color: @gray;
|
||||
}
|
||||
|
||||
#search_form .input-group-btn .btn:hover{
|
||||
background-color: @green;
|
||||
color: white;
|
||||
}
|
10
searx/static/themes/oscar/less/logicodev/variables.less
Normal file
10
searx/static/themes/oscar/less/logicodev/variables.less
Normal file
@ -0,0 +1,10 @@
|
||||
@black: #29314D;
|
||||
@gray: #A4A4A4;
|
||||
@dim-gray: #F6F9FA;
|
||||
@dark-gray: #666;
|
||||
@blue: #0088CC;
|
||||
@red: #F35E77;
|
||||
@violet: #684898;
|
||||
@green: #2ecc71;
|
||||
@light-green: #01D7D4;
|
||||
@orange: #FFA92F;
|
9
searx/static/themes/oscar/less/pointhi/checkbox.less
Normal file
9
searx/static/themes/oscar/less/pointhi/checkbox.less
Normal file
@ -0,0 +1,9 @@
|
||||
// Hide element if checkbox is checked
|
||||
input[type=checkbox]:checked + .label_hide_if_checked, input[type=checkbox]:checked + .label_hide_if_not_checked + .label_hide_if_checked {
|
||||
display:none;
|
||||
}
|
||||
|
||||
// Hide element if checkbox is not checked
|
||||
input[type=checkbox]:not(:checked) + .label_hide_if_not_checked, input[type=checkbox]:not(:checked) + .label_hide_if_checked + .label_hide_if_not_checked {
|
||||
display:none;
|
||||
}
|
8
searx/static/themes/oscar/less/pointhi/cursor.less
Normal file
8
searx/static/themes/oscar/less/pointhi/cursor.less
Normal file
@ -0,0 +1,8 @@
|
||||
// display cursor
|
||||
.cursor-text {
|
||||
cursor: text !important;
|
||||
}
|
||||
|
||||
.cursor-pointer {
|
||||
cursor: pointer !important;
|
||||
}
|
@ -12,7 +12,11 @@
|
||||
<title>{% block title %}{% endblock %}{{ instance_name }}</title>
|
||||
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap.min.css') }}" type="text/css" />
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/oscar.min.css') }}" type="text/css" />
|
||||
{% if cookies['oscar-style'] %}
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/'+cookies['oscar-style']+'.min.css') }}" type="text/css" />
|
||||
{% else %}
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/logicodev.min.css') }}" type="text/css" />
|
||||
{% endif %}
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/leaflet.min.css') }}" type="text/css" />
|
||||
{% for css in styles %}
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename=css) }}" type="text/css" />
|
||||
@ -48,8 +52,8 @@
|
||||
</noscript>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
{% include 'oscar/navbar.html' %}
|
||||
<div class="container">
|
||||
|
||||
{% block site_alert_error %}
|
||||
{% endblock %}
|
||||
@ -75,7 +79,7 @@
|
||||
<div class="container">
|
||||
{% block footer %}
|
||||
{% endblock %}
|
||||
<p class="text-muted">{{ _('Powered by') }} <a href="https://asciimoo.github.io/searx/">searx</a> - {{ searx_version }} - {{ _('a privacy-respecting, hackable metasearch engine') }}</p>
|
||||
<p class="text-muted"><small>{{ _('Powered by') }} <a href="https://asciimoo.github.io/searx/">searx</a> - {{ searx_version }} - {{ _('a privacy-respecting, hackable metasearch engine') }}</small></p>
|
||||
</div>
|
||||
</div>
|
||||
<script src="{{ url_for('static', filename='js/jquery-1.11.1.min.js') }}"></script>
|
||||
|
@ -3,7 +3,14 @@
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="text-center col-sm-12 col-md-12">
|
||||
<h1 class="text-hide center-block"><img class="center-block img-responsive" src="{{ url_for('static', filename='img/searx_logo.png') }}" alt="searx logo"/>searx</h1>
|
||||
{% if cookies['oscar-style'] == 'pointhi' %}
|
||||
<h1 class="text-hide center-block"><img class="center-block img-responsive" src="{{ url_for('static', filename='img/searx_logo.png') }}" alt="searx logo"/>searx</h1>
|
||||
{% else %}
|
||||
<h1 class="text-hide center-block" id="main-logo">
|
||||
<img class="center-block img-responsive" src="{{ url_for('static', filename='img/logo_searx_a.png') }}" alt="searx logo" style="max-width: 350px"/>
|
||||
searx
|
||||
</h1>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
|
@ -17,7 +17,6 @@
|
||||
<!-- Draw result sub header -->
|
||||
{% macro result_sub_header(result) -%}
|
||||
{% if result.publishedDate %}<time class="text-muted" datetime="{{ result.pubdate }}" >{{ result.publishedDate }}</time>{% endif %}
|
||||
<small><a class="text-info" href="https://web.archive.org/web/{{ result.url }}" rel="noreferrer">{{ icon('link') }} {{ _('cached') }}</a></small>
|
||||
{% if result.magnetlink %}<small> • <a href="{{ result.magnetlink }}" class="magnetlink">{{ icon('magnet') }} {{ _('magnet link') }}</a></small>{% endif %}
|
||||
{% if result.torrentfile %}<small> • <a href="{{ result.torrentfile }}" class="torrentfile" rel="noreferrer">{{ icon('download-alt') }} {{ _('torrent file') }}</a></small>{% endif %}
|
||||
{%- endmacro %}
|
||||
@ -29,15 +28,20 @@
|
||||
{% for engine in result.engines %}
|
||||
<span class="label label-default">{{ engine }}</span>
|
||||
{% endfor %}
|
||||
<small><a class="text-info" href="https://web.archive.org/web/{{ result.url }}" rel="noreferrer">{{ icon('link') }} {{ _('cached') }}</a></small>
|
||||
</div>
|
||||
<p class="text-muted">{{ result.pretty_url }}</p>
|
||||
<span class="text-muted"><small>{{ result.pretty_url }}</small></span>
|
||||
{%- endmacro %}
|
||||
|
||||
<!-- Draw result footer -->
|
||||
{% macro result_footer_rtl(result) -%}
|
||||
<div class="clearfix"></div>
|
||||
<span class="label label-default pull-left">{{ result.engine }}</span>
|
||||
<p class="text-muted">{{ result.pretty_url }}‎</p>
|
||||
{% for engine in result.engines %}
|
||||
<span class="label label-default">{{ engine }}</span>
|
||||
{% endfor %}
|
||||
<small><a class="text-info" href="https://web.archive.org/web/{{ result.url }}" rel="noreferrer">{{ icon('link') }} {{ _('cached') }}</a></small>
|
||||
</div>
|
||||
<span class="text-muted"><small>{{ result.pretty_url }}</small></span>
|
||||
{%- endmacro %}
|
||||
|
||||
{% macro preferences_item_header(info, label, rtl) -%}
|
||||
|
@ -110,6 +110,13 @@
|
||||
{% endfor %}
|
||||
</select>
|
||||
{{ preferences_item_footer(theme_info, theme_label, rtl) }}
|
||||
|
||||
{{ preferences_item_header(_('Choose style for this theme'), _('Style'), rtl) }}
|
||||
<select class="form-control" name='oscar-style'>
|
||||
<option value="logicodev" >Logicodev</option>
|
||||
<option value="pointhi" {% if cookies['oscar-style'] == 'pointhi' %}selected="selected"{% endif %}>Pointhi</option>
|
||||
</select>
|
||||
{{ preferences_item_footer(_('Choose style for this theme'), _('Style'), rtl) }}
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user