on master help sign in
[fix] #38
06b9238Adam Tauber
searx/static/css/style.css+3−3
@@ -12,7 +12,7 @@ a:hover.hmarg{color:#3498db}
12.top_margin{margin-top:60px}
12.top_margin{margin-top:60px}
13.center{text-align:center}
13.center{text-align:center}
14h1{font-size:5em}
14h1{font-size:5em}
15−div.title{background:url('/static/img/searx.png') no-repeat;width:100%;background-position:center}div.title h1{visibility:hidden}
15+div.title{background:url('static/img/searx.png') no-repeat;width:100%;background-position:center}div.title h1{visibility:hidden}
16input[type="submit"]{padding:2px 6px;margin:2px 4px;display:inline-block;background:#3498db;color:#fff;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;border:0;cursor:pointer}
16input[type="submit"]{padding:2px 6px;margin:2px 4px;display:inline-block;background:#3498db;color:#fff;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;border:0;cursor:pointer}
17input[type="checkbox"]{visibility:hidden}
17input[type="checkbox"]{visibility:hidden}
18fieldset{margin:8px;border:1px solid #3498db}
18fieldset{margin:8px;border:1px solid #3498db}
@@ -55,14 +55,14 @@ tr:hover{background:#ddd}
55#search_wrapper{position:relative;max-width:600px;padding:10px}
55#search_wrapper{position:relative;max-width:600px;padding:10px}
56.center #search_wrapper{margin-left:auto;margin-right:auto}
56.center #search_wrapper{margin-left:auto;margin-right:auto}
57.q{background:none repeat scroll 0 0 #fff;border:1px solid #3498db;color:#222;font-size:16px;height:28px;margin:0;outline:medium none;padding:2px;padding-left:8px;padding-right:0 !important;width:100%;z-index:2}
57.q{background:none repeat scroll 0 0 #fff;border:1px solid #3498db;color:#222;font-size:16px;height:28px;margin:0;outline:medium none;padding:2px;padding-left:8px;padding-right:0 !important;width:100%;z-index:2}
58−#search_submit{position:absolute;top:13px;right:1px;padding:0;border:0;background:url('/static/img/search-icon.png') no-repeat;background-size:24px 24px;opacity:.8;width:24px;height:30px;font-size:0}
58+#search_submit{position:absolute;top:13px;right:1px;padding:0;border:0;background:url('static/img/search-icon.png') no-repeat;background-size:24px 24px;opacity:.8;width:24px;height:30px;font-size:0}
59#results{margin:10px;padding:0;margin-bottom:20px}
59#results{margin:10px;padding:0;margin-bottom:20px}
60#sidebar{position:absolute;left:54em;width:15em;margin:0 2px 5px 5px;padding:0 2px 2px 2px}
60#sidebar{position:absolute;left:54em;width:15em;margin:0 2px 5px 5px;padding:0 2px 2px 2px}
61#suggestions span{display:block;margin:0 2px 2px 2px;padding:0}
61#suggestions span{display:block;margin:0 2px 2px 2px;padding:0}
62#suggestions form{display:block}
62#suggestions form{display:block}
63#suggestions input{padding:2px 6px;margin:2px 4px;font-size:.8em;display:inline-block;background:#3498db;color:#fff;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;border:0;cursor:pointer}
63#suggestions input{padding:2px 6px;margin:2px 4px;font-size:.8em;display:inline-block;background:#3498db;color:#fff;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;border:0;cursor:pointer}
64#search_url{margin-top:8px}#search_url input{border:1px solid #888;padding:4px;color:#444;width:20em;display:block;margin:4px}
64#search_url{margin-top:8px}#search_url input{border:1px solid #888;padding:4px;color:#444;width:20em;display:block;margin:4px}
65−#preferences{top:10px;padding:0;border:0;background:url('/static/img/preference-icon.png') no-repeat;background-size:28px 28px;opacity:.8;width:28px;height:30px;display:block}#preferences *{display:none}
65+#preferences{top:10px;padding:0;border:0;background:url('static/img/preference-icon.png') no-repeat;background-size:28px 28px;opacity:.8;width:28px;height:30px;display:block}#preferences *{display:none}
66#pagination{clear:both}
66#pagination{clear:both}
67#apis{margin-top:8px;clear:both}
67#apis{margin-top:8px;clear:both}
68@media screen and (max-width:60em){#sidebar{position:static;max-width:50em;margin:0 0 2px 0;padding:0;float:none;border:none;width:auto} #suggestions span{display:inline;font-size:.8em} #suggestions form{display:inline} #suggestions input{padding:2px 6px;margin:2px 4px;font-size:.8em;display:inline-block;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;border:0;cursor:pointer}}@media screen and (max-width:680px){#search_wrapper{width:90%;clear:both;overflow:hidden} .right{display:none;postion:fixed !important;top:100px;right:0} #apis{display:none} #categories{font-size:80%;clear:both}#categories .checkbox_container{margin-top:2px;margin:0 2px} .checkbox_container{display:block;width:100%}.checkbox_container label{border-bottom:0} .result{border-top:1px solid #e8e7e6;margin:7px 0 6px 0}.result img{max-width:90%;width:auto;height:auto}}.favicon{float:left;margin-right:4px;margin-top:2px}
68@media screen and (max-width:60em){#sidebar{position:static;max-width:50em;margin:0 0 2px 0;padding:0;float:none;border:none;width:auto} #suggestions span{display:inline;font-size:.8em} #suggestions form{display:inline} #suggestions input{padding:2px 6px;margin:2px 4px;font-size:.8em;display:inline-block;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;border:0;cursor:pointer}}@media screen and (max-width:680px){#search_wrapper{width:90%;clear:both;overflow:hidden} .right{display:none;postion:fixed !important;top:100px;right:0} #apis{display:none} #categories{font-size:80%;clear:both}#categories .checkbox_container{margin-top:2px;margin:0 2px} .checkbox_container{display:block;width:100%}.checkbox_container label{border-bottom:0} .result{border-top:1px solid #e8e7e6;margin:7px 0 6px 0}.result img{max-width:90%;width:auto;height:auto}}.favicon{float:left;margin-right:4px;margin-top:2px}
searx/static/less/style.less+3−3
@@ -87,7 +87,7 @@ h1 {
87}
87}
88
88
89div.title {
89div.title {
90− background: url('/static/img/searx.png') no-repeat;
90+ background: url('static/img/searx.png') no-repeat;
91 width: 100%;
91 width: 100%;
92 background-position: center;
92 background-position: center;
93
93
@@ -388,7 +388,7 @@ tr {
388 right: 1px;
388 right: 1px;
389 padding: 0;
389 padding: 0;
390 border: 0;
390 border: 0;
391− background: url('/static/img/search-icon.png') no-repeat;
391+ background: url('static/img/search-icon.png') no-repeat;
392 background-size: 24px 24px;
392 background-size: 24px 24px;
393 opacity: 0.8;
393 opacity: 0.8;
394 width: 24px;
394 width: 24px;
@@ -451,7 +451,7 @@ tr {
451 top: 10px;
451 top: 10px;
452 padding: 0;
452 padding: 0;
453 border: 0;
453 border: 0;
454− background: url('/static/img/preference-icon.png') no-repeat;
454+ background: url('static/img/preference-icon.png') no-repeat;
455 background-size: 28px 28px;
455 background-size: 28px 28px;
456 opacity: 0.8;
456 opacity: 0.8;
457 width: 28px;
457 width: 28px;
searx/templates/about.html+1−1
@@ -45,7 +45,7 @@ Searx can be added to your browser's search bar; moreover, it can be set as the
45<h2 id="faq">FAQ</h2>
45<h2 id="faq">FAQ</h2>
46
46
47<h3>How to add to firefox?</h3>
47<h3>How to add to firefox?</h3>
48−<p><a href="#" onclick="window.external.AddSearchProvider(window.location.protocol + '//' + window.location.host + '/opensearch.xml')">Install</a> searx as a search engine on any version of Firefox! (javascript required)</p>
48+<p><a href="#" onclick="window.external.AddSearchProvider(window.location.protocol + '//' + window.location.host + '{{ url_for('opensearch') }}');">Install</a> searx as a search engine on any version of Firefox! (javascript required)</p>
49
49
50<h2 id="dev_faq">Developer FAQ</h2>
50<h2 id="dev_faq">Developer FAQ</h2>
51
51
searx/webapp.py+1−1
@@ -250,7 +250,7 @@ def preferences():
250 if engine_name in engines:
250 if engine_name in engines:
251 blocked_engines.append(engine_name)
251 blocked_engines.append(engine_name)
252
252
253− resp = make_response(redirect('/'))
253+ resp = make_response(redirect(url_for('index')))
254
254
255 user_blocked_engines = request.cookies.get('blocked_engines', '').split(',') # noqa
255 user_blocked_engines = request.cookies.get('blocked_engines', '').split(',') # noqa
256
256