forked from zaclys/searxng
[mod] web page modification
This commit is contained in:
parent
5c9f6d5174
commit
7915b5c5a0
|
@ -3,7 +3,21 @@ html {
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
-webkit-text-size-adjust: 100%;
|
-webkit-text-size-adjust: 100%;
|
||||||
-ms-text-size-adjust: 100%;
|
-ms-text-size-adjust: 100%;
|
||||||
|
-moz-text-size-adjust: 100%;
|
||||||
color: #444444;
|
color: #444444;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
body, #container {
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#container {
|
||||||
|
width: 100%;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.row { max-width: 800px; margin: auto; text-align: justify; }
|
.row { max-width: 800px; margin: auto; text-align: justify; }
|
||||||
|
@ -22,57 +36,49 @@ h1 { font-size: 5em; }
|
||||||
div.title { background: url('/static/img/searx.png') no-repeat; width: 100%; background-position: center; }
|
div.title { background: url('/static/img/searx.png') no-repeat; width: 100%; background-position: center; }
|
||||||
div.title h1 { visibility: hidden; }
|
div.title h1 { visibility: hidden; }
|
||||||
|
|
||||||
|
|
||||||
input[type="submit"] { border: 1px solid #666666; color: #444444; padding: 4px; background-color: #FFFFFF; margin-left: 8px; }
|
input[type="submit"] { border: 1px solid #666666; color: #444444; padding: 4px; background-color: #FFFFFF; margin-left: 8px; }
|
||||||
|
|
||||||
input[type="checkbox"] { visibility: hidden; }
|
input[type="checkbox"] { visibility: hidden; }
|
||||||
|
|
||||||
.checkbox_container { display: inline-block; position: relative; padding-left: 3px; margin: 0 10px; }
|
#categories { margin: 0 10px; }
|
||||||
|
|
||||||
|
.checkbox_container { display: inline-block; position: relative; margin: 0 3px; padding: 0px; }
|
||||||
|
.checkbox_container input {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
.checkbox_container label {
|
.checkbox_container label {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
padding: 4px 10px;
|
||||||
.checkbox_container label.cb {
|
margin: 0;
|
||||||
position: absolute;
|
display: block;
|
||||||
width: 16px;
|
text-transform: capitalize;
|
||||||
height: 16px;
|
|
||||||
top: 2px;
|
|
||||||
left: 2px;
|
|
||||||
background: #eee;
|
|
||||||
border:1px solid #ddd;
|
|
||||||
}
|
|
||||||
.checkbox_container label.cb:after {
|
|
||||||
opacity: 0.2;
|
|
||||||
content: '';
|
|
||||||
position: absolute;
|
|
||||||
width: 8px;
|
|
||||||
height: 4px;
|
|
||||||
background: transparent;
|
|
||||||
top: 3px;
|
|
||||||
left: 3px;
|
|
||||||
border: 3px solid #333;
|
|
||||||
border-top: none;
|
|
||||||
border-right: none;
|
|
||||||
|
|
||||||
-webkit-transform: rotate(-45deg);
|
-webkit-touch-callout: none;
|
||||||
-moz-transform: rotate(-45deg);
|
-webkit-user-select: none;
|
||||||
-o-transform: rotate(-45deg);
|
-khtml-user-select: none;
|
||||||
-ms-transform: rotate(-45deg);
|
-moz-user-select: none;
|
||||||
transform: rotate(-45deg);
|
-ms-user-select: none;
|
||||||
|
user-select: none;
|
||||||
}
|
}
|
||||||
.checkbox_container label.cb:hover:after {
|
|
||||||
opacity: 0.5;
|
.checkbox_container input[type="checkbox"]:checked + label {
|
||||||
|
background: #b8c1d9;
|
||||||
}
|
}
|
||||||
.checkbox_container input[type=checkbox]:checked + label.cb:after {
|
|
||||||
opacity: 1;
|
.search .checkbox_container label {
|
||||||
|
border-bottom: 4px solid #e8e7e6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search .checkbox_container input[type="checkbox"]:checked + label {
|
||||||
|
border-bottom: 4px solid #8098d9;
|
||||||
}
|
}
|
||||||
|
|
||||||
a { text-decoration: none; }
|
a { text-decoration: none; }
|
||||||
|
|
||||||
|
|
||||||
.result { margin-bottom: 16px; clear: both; }
|
.result { margin-bottom: 16px; clear: both; }
|
||||||
.result_title { margin-bottom: 0; }
|
.result_title { margin-bottom: 0; }
|
||||||
.result p { margin-top: 0; padding-top: 0; font-size: 0.8em; max-width: 54em; }
|
.result p { margin-top: 0; padding-top: 0; font-size: 0.8em; max-width: 54em; word-wrap:break-word; }
|
||||||
.result h3 { font-size: 0.9em;}
|
.result h3 { font-size: 0.9em; word-wrap:break-word; }
|
||||||
.result { max-width: 70em; }
|
.result { max-width: 70em; }
|
||||||
|
|
||||||
.url { font-weight: bold; word-wrap:break-word; }
|
.url { font-weight: bold; word-wrap:break-word; }
|
||||||
|
@ -85,6 +91,8 @@ a { text-decoration: none; }
|
||||||
|
|
||||||
.small p { margin: 2px 0; }
|
.small p { margin: 2px 0; }
|
||||||
|
|
||||||
|
.search { background: #e8e7e6; padding: 0; margin: 0 }
|
||||||
|
|
||||||
.right { float: right; }
|
.right { float: right; }
|
||||||
|
|
||||||
.invisible { display: none; }
|
.invisible { display: none; }
|
||||||
|
@ -103,8 +111,7 @@ a { text-decoration: none; }
|
||||||
td { padding: 0 4px; }
|
td { padding: 0 4px; }
|
||||||
tr:hover td { background: #DDDDDD; }
|
tr:hover td { background: #DDDDDD; }
|
||||||
|
|
||||||
|
#search_wrapper { position: relative; max-width: 600px; padding: 10px; }
|
||||||
#search_wrapper { position: relative; max-width: 600px; margin: 10px; }
|
|
||||||
.center #search_wrapper { margin-left: auto; margin-right: auto; }
|
.center #search_wrapper { margin-left: auto; margin-right: auto; }
|
||||||
.q {
|
.q {
|
||||||
background: none repeat scroll 0 0 #FFFFFF;
|
background: none repeat scroll 0 0 #FFFFFF;
|
||||||
|
@ -124,8 +131,8 @@ tr:hover td { background: #DDDDDD; }
|
||||||
}
|
}
|
||||||
#search_submit {
|
#search_submit {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 5px;
|
top: 15px;
|
||||||
right: 0px;
|
right: 4px;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border: 0;
|
border: 0;
|
||||||
background: url('/static/img/search-icon.png') no-repeat;
|
background: url('/static/img/search-icon.png') no-repeat;
|
||||||
|
@ -135,14 +142,40 @@ tr:hover td { background: #DDDDDD; }
|
||||||
height: 30px;
|
height: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#results { margin-left: 10px; margin-top: 10px; }
|
#results { margin-left: 10px; margin-top: 10px; margin-right: 10px; }
|
||||||
|
|
||||||
#suggestions { max-width: 50em;}
|
#suggestions { max-width: 50em;}
|
||||||
#suggestions form { display: inline; }
|
#suggestions form { display: inline; }
|
||||||
#suggestions input { padding: 2px 6px; margin: 2px 4px; font-size: 0.8em; display: inline-block; background: #E4E4E4; border-radius: 4px; border: 0; cursor: pointer; }
|
#suggestions input { padding: 2px 6px; margin: 2px 4px; font-size: 0.8em; display: inline-block; background: #E4E4E4; border-radius: 4px; border: 0; cursor: pointer; }
|
||||||
|
|
||||||
@media screen and (max-width: 740px) {
|
#preferences {
|
||||||
.right { margin: 5px; }
|
top: 10px;
|
||||||
|
padding: 0;
|
||||||
#search_wrapper { max-width: 90%; clear:both }
|
border: 0;
|
||||||
|
background: url('/static/img/preference-icon.png') no-repeat;
|
||||||
|
background-size: 28px 28px;
|
||||||
|
opacity: 0.8;
|
||||||
|
width: 28px;
|
||||||
|
height: 30px;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
#preferences * {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#apis {
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 680px) {
|
||||||
|
#search_wrapper { width: 90%; clear:both; }
|
||||||
|
|
||||||
|
.right { display: none; postion: fixed !important; top: 100px; right: 0px; }
|
||||||
|
|
||||||
|
#categories { font-size: 80% }
|
||||||
|
|
||||||
|
#categories .checkbox_container { margin-top: 2px; margin: 0 2px; }
|
||||||
|
|
||||||
|
.result img { max-width: 90%; width: auto; height: auto }
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
|
<div id="categories">
|
||||||
{% for category in categories %}
|
{% for category in categories %}
|
||||||
<div class="checkbox_container">
|
<div class="checkbox_container">
|
||||||
<input type="checkbox" id="checkbox_{{ category|replace(' ', '_') }}" name="category_{{ category }}" {% if category in selected_categories %}checked="checked"{% endif %} /><label for="checkbox_{{ category|replace(' ', '_') }}" class="cb"></label><label for="checkbox_{{ category|replace(' ', '_') }}">{{ category }}</label>
|
<input type="checkbox" id="checkbox_{{ category|replace(' ', '_') }}" name="category_{{ category }}" {% if category in selected_categories %}checked="checked"{% endif %} /></label><label for="checkbox_{{ category|replace(' ', '_') }}">{{ category }}</label>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block title %}{{ q }} - {% endblock %}
|
{% block title %}{{ q }} - {% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="right"><a href="/preferences">preferences</a></div>
|
<div class="right"><a href="/preferences" id="preferences"><span>preferences</span></a></div>
|
||||||
<div class="small">
|
<div class="small search">
|
||||||
{% include 'search.html' %}
|
{% include 'search.html' %}
|
||||||
</div>
|
</div>
|
||||||
<div id="results">
|
<div id="results">
|
||||||
|
@ -19,6 +19,7 @@
|
||||||
{% include 'result_templates/default.html' %}
|
{% include 'result_templates/default.html' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
<div id="apis">
|
||||||
<form method="post" action="/">
|
<form method="post" action="/">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<input type="hidden" name="q" value="{{ q }}" />
|
<input type="hidden" name="q" value="{{ q }}" />
|
||||||
|
@ -34,4 +35,5 @@
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -3,7 +3,5 @@
|
||||||
<input type="text" id="q" class="q" name="q" tabindex="1" autocomplete="off" {% if q %}value="{{ q }}"{% endif %}/>
|
<input type="text" id="q" class="q" name="q" tabindex="1" autocomplete="off" {% if q %}value="{{ q }}"{% endif %}/>
|
||||||
<input type="submit" value="" id="search_submit" />
|
<input type="submit" value="" id="search_submit" />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
|
||||||
{% include 'categories.html' %}
|
{% include 'categories.html' %}
|
||||||
</div>
|
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in New Issue