summaryrefslogtreecommitdiff
path: root/searx/static
diff options
context:
space:
mode:
Diffstat (limited to 'searx/static')
-rw-r--r--searx/static/default/css/style.css23
-rw-r--r--searx/static/default/img/favicon.pngbin3208 -> 3064 bytes
-rw-r--r--searx/static/default/img/preference-icon.pngbin837 -> 603 bytes
-rw-r--r--searx/static/default/img/search-icon.pngbin3287 -> 2329 bytes
-rw-r--r--searx/static/default/img/searx.pngbin7647 -> 4909 bytes
-rw-r--r--searx/static/default/js/searx.js4
-rw-r--r--searx/static/default/less/style.less166
7 files changed, 149 insertions, 44 deletions
diff --git a/searx/static/default/css/style.css b/searx/static/default/css/style.css
index 70265b072..277f55e8d 100644
--- a/searx/static/default/css/style.css
+++ b/searx/static/default/css/style.css
@@ -21,11 +21,11 @@ a:hover.hmarg{color:#3498db}
.top_margin{margin-top:60px}
.center{text-align:center}
h1{font-size:5em}
-div.title{background:url('../img/searx.png') no-repeat;width:100%;background-position:center}div.title h1{visibility:hidden}
+div.title{background:url('../img/searx.png') no-repeat;width:100%;min-height:80px;background-position:center}div.title h1{visibility:hidden}
input[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}
input[type="checkbox"]{visibility:hidden}
fieldset{margin:8px;border:1px solid #3498db}
-#categories{margin:0 10px}
+#categories{margin:0 10px;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}
.checkbox_container{display:inline-block;position:relative;margin:0 3px;padding:0}.checkbox_container input{display:none}
.checkbox_container label,.engine_checkbox label{cursor:pointer;padding:4px 10px;margin:0;display:block;text-transform:capitalize;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}
.checkbox_container input[type="checkbox"]:checked+label{background:#3498db;color:#fff}
@@ -43,7 +43,8 @@ a{text-decoration:none;color:#1a11be}a:visited{color:#8e44ad}
.result .content{font-size:.8em;margin:0;padding:0;max-width:54em;word-wrap:break-word;line-height:1.24}.result .content img{float:left;margin-right:5px;max-width:200px;max-height:100px}
.result .content br.last{clear:both}
.result .url{font-size:.8em;margin:0 0 3px 0;padding:0;max-width:54em;word-wrap:break-word;color:#c0392b}
-.result .published_date{font-size:.8em;color:#888;margin:5px 20px}
+.result .published_date{font-size:.8em;color:#888;Margin:5px 20px}
+.result .thumbnail{width:400px}
.engines{color:#888}
.small_font{font-size:.8em}
.small p{margin:2px 0}
@@ -52,7 +53,7 @@ a{text-decoration:none;color:#1a11be}a:visited{color:#8e44ad}
.left{float:left}
.highlight{color:#094089}
.content .highlight{color:#000}
-.image_result{float:left;margin:10px 10px;position:relative;height:160px}.image_result img{border:0;height:160px}
+.image_result{display:inline-block;margin:10px 10px;position:relative;max-height:160px}.image_result img{border:0;max-height:160px}
.image_result p{margin:0;padding:0}.image_result p span a{display:none;color:#fff}
.image_result p:hover span a{display:block;position:absolute;bottom:0;right:0;padding:4px;background-color:rgba(0,0,0,0.6);font-size:.7em}
.torrent_result{border-left:10px solid #d3d3d3;padding-left:3px}.torrent_result p{margin:3px;font-size:.8em}
@@ -64,18 +65,22 @@ tr:hover{background:#ddd}
#results{margin:auto;padding:0;width:50em;margin-bottom:20px}
#sidebar{position:fixed;bottom:10px;left:10px;margin:0 2px 5px 5px;padding:0 2px 2px 2px;width:14em}#sidebar input{padding:0;margin:3px;font-size:.8em;display:inline-block;background:transparent;color:#444;cursor:pointer}
#sidebar input[type="submit"]{text-decoration:underline}
-#suggestions,#answers{margin-top:20px}
+#suggestions form{display:inline}
+#suggestions,#answers{margin-top:20px;max-width:45em}
#suggestions input,#answers input,#infoboxes input{padding:0;margin:3px;font-size:.8em;display:inline-block;background:transparent;color:#444;cursor:pointer}
#suggestions input[type="submit"],#answers input[type="submit"],#infoboxes input[type="submit"]{text-decoration:underline}
-#suggestions form,#answers form,#infoboxes form{display:inline}
-#infoboxes{position:absolute;top:100px;right:20px;margin:0 2px 5px 5px;padding:0 2px 2px;max-width:21em}#infoboxes .infobox{margin:10px 0 10px;border:1px solid #ddd;padding:5px;font-size:.8em}#infoboxes .infobox img{max-width:20em;max-heigt:12em;display:block;margin:5px;padding:5px}
+#answers form,#infoboxes form{min-width:210px}
+#infoboxes{position:absolute;top:100px;right:20px;margin:0 2px 5px 5px;padding:0 2px 2px;max-width:21em}#infoboxes .infobox{margin:10px 0 10px;border:1px solid #ddd;padding:5px;font-size:.8em;}#infoboxes .infobox img{max-width:20em;max-heigt:12em;display:block;margin:5px;padding:5px}
#infoboxes .infobox h2{margin:0}
#infoboxes .infobox table{width:auto}#infoboxes .infobox table td{vertical-align:top}
#infoboxes .infobox input{font-size:1em}
#infoboxes .infobox br{clear:both}
#search_url{margin-top:8px}#search_url input{border:1px solid #888;padding:4px;color:#444;width:14em;display:block;margin:4px;font-size:.8em}
#preferences{top:10px;padding:0;border:0;background:url('../img/preference-icon.png') no-repeat;background-size:28px 28px;opacity:.8;width:28px;height:30px;display:block}#preferences *{display:none}
-#pagination{clear:both;width:40em}
+#pagination{clear:both}#pagination br{clear:both}
#apis{margin-top:8px;clear:both}
-@media screen and (max-width:50em){#results{margin:auto;padding:0;width:90%} .github{display:none} .checkbox_container{display:block;width:90%}.checkbox_container label{border-bottom:0} .right{display:none;postion:fixed !important;top:100px;right:0}}@media screen and (max-width:75em){#infoboxes{position:inherit;max-width:inherit}#infoboxes .infobox{clear:both}#infoboxes .infobox img{float:left;max-width:10em} #categories{font-size:90%;clear:both}#categories .checkbox_container{margin-top:2px;margin:auto} #sidebar{position:static;max-width:50em;margin:0 0 2px 0;padding:0;float:none;border:none;width:auto}#sidebar input{border:0} #apis{display:none} #search_url{display:none} .result{border-top:1px solid #e8e7e6;margin:7px 0 6px 0}}.favicon{float:left;margin-right:4px;margin-top:2px}
+#categories_container{position:relative}
+@media screen and (max-width:50em){#results{margin:auto;padding:0;width:90%} .github{display:none} .checkbox_container{display:block;width:90%}.checkbox_container label{border-bottom:0} .preferences_container{display:none;postion:fixed !important;top:100px;right:0}}@media screen and (max-width:75em){div.title h1{font-size:1em} html.touch #categories{width:95%;height:30px;text-align:left;overflow-x:scroll;overflow-y:hidden;-webkit-overflow-scrolling:touch}html.touch #categories #categories_container{width:1000px;width:-moz-max-content;width:-webkit-max-content;width:max-content}html.touch #categories #categories_container .checkbox_container{display:inline-block;width:auto} #categories{font-size:90%;clear:both}#categories .checkbox_container{margin-top:2px;margin:auto} #suggestions,#answers{margin-top:5px} #infoboxes{position:inherit;max-width:inherit}#infoboxes .infobox{clear:both}#infoboxes .infobox img{float:left;max-width:10em} #categories{font-size:90%;clear:both}#categories .checkbox_container{margin-top:2px;margin:auto} #sidebar{position:static;max-width:50em;margin:0 0 2px 0;padding:0;float:none;border:none;width:auto}#sidebar input{border:0} #apis{display:none} #search_url{display:none} .result{border-top:1px solid #e8e7e6;margin:8px 0 8px 0}.result .thumbnail{max-width:98%} .image_result{max-width:98%}.image_result img{max-width:98%}}.favicon{float:left;margin-right:4px;margin-top:2px}
.preferences_back{background:none repeat scroll 0 0 #3498db;border:0 none;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;cursor:pointer;display:inline-block;margin:2px 4px;padding:4px 6px}.preferences_back a{color:#fff}
+.hidden{opacity:0;overflow:hidden;font-size:.8em;position:absolute;bottom:-20px;width:100%;text-position:center;background:#fff;transition:opacity 1s ease}
+#categories_container:hover .hidden{transition:opacity 1s ease;opacity:.8}
diff --git a/searx/static/default/img/favicon.png b/searx/static/default/img/favicon.png
index cefbac496..28afb0111 100644
--- a/searx/static/default/img/favicon.png
+++ b/searx/static/default/img/favicon.png
Binary files differ
diff --git a/searx/static/default/img/preference-icon.png b/searx/static/default/img/preference-icon.png
index f74635788..300279d24 100644
--- a/searx/static/default/img/preference-icon.png
+++ b/searx/static/default/img/preference-icon.png
Binary files differ
diff --git a/searx/static/default/img/search-icon.png b/searx/static/default/img/search-icon.png
index 1222421b2..d70310b5d 100644
--- a/searx/static/default/img/search-icon.png
+++ b/searx/static/default/img/search-icon.png
Binary files differ
diff --git a/searx/static/default/img/searx.png b/searx/static/default/img/searx.png
index e162da502..e69e9eef9 100644
--- a/searx/static/default/img/searx.png
+++ b/searx/static/default/img/searx.png
Binary files differ
diff --git a/searx/static/default/js/searx.js b/searx/static/default/js/searx.js
index c87dc30d4..9be969bb3 100644
--- a/searx/static/default/js/searx.js
+++ b/searx/static/default/js/searx.js
@@ -41,5 +41,9 @@ if(searx.autocompleter) {
}
});
+ if (!!('ontouchstart' in window)) {
+ document.getElementsByTagName("html")[0].className += " touch";
+ }
+
})(window, document);
diff --git a/searx/static/default/less/style.less b/searx/static/default/less/style.less
index c43c0fe72..9851b1305 100644
--- a/searx/static/default/less/style.less
+++ b/searx/static/default/less/style.less
@@ -97,6 +97,7 @@ h1 {
div.title {
background: url('../img/searx.png') no-repeat;
width: 100%;
+ min-height: 80px;
background-position: center;
h1 {
@@ -126,6 +127,7 @@ fieldset {
#categories {
margin: 0 10px;
+ .user-select;
}
.checkbox_container {
@@ -260,8 +262,12 @@ a {
.published_date {
font-size: 0.8em;
color: @color-result-publishdate-font;
- margin: 5px 20px;
+ Margin: 5px 20px;
}
+
+ .thumbnail {
+ width: 400px;
+ }
}
.engines {
@@ -297,14 +303,14 @@ a {
}
.image_result {
- float: left;
+ display: inline-block;
margin: 10px 10px;
position: relative;
- height: 160px;
+ max-height: 160px;
img {
border: 0;
- height: 160px;
+ max-height: 160px;
}
p {
@@ -369,17 +375,17 @@ tr {
#results {
margin: auto;
padding: 0;
- width: @results-width;
+ width: @results-width;
margin-bottom: 20px;
}
#sidebar {
position: fixed;
- bottom: 10px;
- left: 10px;
+ bottom: 10px;
+ left: 10px;
margin: 0 2px 5px 5px;
padding: 0 2px 2px 2px;
- width: 14em;
+ width: 14em;
input {
padding: 0;
@@ -390,14 +396,23 @@ tr {
color: @color-result-search-url-font;
cursor: pointer;
}
- input[type="submit"] {
+ input[type="submit"] {
text-decoration: underline;
- }
+ }
+}
+
+#suggestions {
+
+ form {
+ display: inline;
+ }
+
}
#suggestions, #answers {
margin-top: 20px;
+ max-width: 45em;
}
@@ -417,8 +432,11 @@ tr {
text-decoration: underline;
}
+}
+
+#answers, #infoboxes {
form {
- display: inline;
+ min-width: 210px;
}
}
@@ -436,6 +454,7 @@ tr {
border: 1px solid #ddd;
padding: 5px;
font-size: 0.8em;
+ /* box-shadow: 0px 0px 5px #CCC; */
img {
max-width: 20em;
@@ -501,7 +520,10 @@ tr {
#pagination {
clear: both;
- width: 40em;
+
+ br {
+ clear: both;
+ }
}
#apis {
@@ -509,20 +531,25 @@ tr {
clear: both;
}
+#categories_container {
+ position: relative;
+}
+
@media screen and (max-width: @results-width) {
- #results {
- margin: auto;
- padding: 0;
- width: 90%;
- }
+ #results {
+ margin: auto;
+ padding: 0;
+ width: 90%;
+ }
+
.github {
display: none;
}
.checkbox_container {
display: block;
- width: 90%;
+ width: 90%;
//float: left;
label {
@@ -530,7 +557,7 @@ tr {
}
}
- .right {
+ .preferences_container {
display: none;
postion: fixed !important;
top: 100px;
@@ -541,20 +568,61 @@ tr {
@media screen and (max-width: 75em) {
- #infoboxes {
- position: inherit;
- max-width: inherit;
+ div.title {
+
+ h1 {
+ font-size: 1em;
+ }
+ }
+
+ html.touch #categories {
+ width: 95%;
+ height: 30px;
+ text-align: left;
+ overflow-x: scroll;
+ overflow-y: hidden;
+ -webkit-overflow-scrolling: touch;
+
+ #categories_container {
+ width: 1000px;
+ width: -moz-max-content;
+ width: -webkit-max-content;
+ width: max-content;
+
+ .checkbox_container {
+ display: inline-block;
+ width: auto;
+ }
+ }
+ }
+
+ #categories {
+ font-size: 90%;
+ clear: both;
+
+ .checkbox_container {
+ margin-top: 2px;
+ margin: auto;
+ }
+ }
+
+ #suggestions, #answers {
+ margin-top: 5px;
+ }
+
+ #infoboxes {
+ position: inherit;
+ max-width: inherit;
- .infobox {
- clear:both;
+ .infobox {
+ clear:both;
- img {
- float: left;
- max-width: 10em;
- }
- }
-
- }
+ img {
+ float: left;
+ max-width: 10em;
+ }
+ }
+ }
#categories {
font-size: 90%;
@@ -583,13 +651,24 @@ tr {
display: none;
}
- #search_url {
- display: none;
- }
+ #search_url {
+ display: none;
+ }
.result {
border-top: 1px solid @color-result-top-border;
- margin: 7px 0 6px 0;
+ margin: 8px 0 8px 0;
+
+ .thumbnail {
+ max-width: 98%;
+ }
+ }
+
+ .image_result {
+ max-width: 98%;
+ img {
+ max-width: 98%;
+ }
}
}
@@ -612,3 +691,20 @@ tr {
color: @color-settings-return-font;
}
}
+
+.hidden {
+ opacity: 0;
+ overflow: hidden;
+ font-size: 0.8em;
+ position: absolute;
+ bottom: -20px;
+ width: 100%;
+ text-position: center;
+ background: white;
+ transition: opacity 1s ease;
+}
+
+#categories_container:hover .hidden {
+ transition: opacity 1s ease;
+ opacity: 0.8;
+}