summaryrefslogtreecommitdiff
path: root/searx/static/less
diff options
context:
space:
mode:
authorThomas Pointhuber <thomas.pointhuber@gmx.at>2014-03-19 20:19:44 +0100
committerThomas Pointhuber <thomas.pointhuber@gmx.at>2014-03-19 20:19:44 +0100
commitecd293c8a90f0adef5f3e07f8c99c94a3beae63a (patch)
tree812c881a3fb80593d7546ae2ea32142277c9ad1c /searx/static/less
parentce08abe2232473cf9c4e90e60b6510831a289ada (diff)
downloadsearxng-ecd293c8a90f0adef5f3e07f8c99c94a3beae63a.tar.gz
searxng-ecd293c8a90f0adef5f3e07f8c99c94a3beae63a.zip
add front-part of autocompleter function
Diffstat (limited to 'searx/static/less')
-rw-r--r--searx/static/less/autocompleter.less57
-rw-r--r--searx/static/less/style.less25
2 files changed, 82 insertions, 0 deletions
diff --git a/searx/static/less/autocompleter.less b/searx/static/less/autocompleter.less
new file mode 100644
index 000000000..a512d60bc
--- /dev/null
+++ b/searx/static/less/autocompleter.less
@@ -0,0 +1,57 @@
+ul {
+ &.autocompleter-choices {
+ position: absolute;
+ margin: 0;
+ padding: 0;
+ list-style: none;
+ border: 1px solid #7c7c7c;
+ border-left-color: #c3c3c3;
+ border-right-color: #c3c3c3;
+ border-bottom-color: #ddd;
+ background-color: #fff;
+ text-align: left;
+ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
+ z-index: 50;
+ background-color: #fff;
+
+ li {
+ position: relative;
+ margin: -2px 0 0 0;
+ padding: 0.2em 1.5em 0.2em 1em;
+ display: block;
+ float: none !important;
+ cursor: pointer;
+ font-weight: normal;
+ white-space: nowrap;
+ font-size: 1em;
+ line-height: 1.5em;
+
+ &.autocompleter-selected {
+ background-color: #444;
+ color: #fff;
+
+ span.autocompleter-queried {
+ color: #9FCFFF;
+ }
+ }
+ }
+
+ span.autocompleter-queried {
+ display: inline;
+ float: none;
+ font-weight: bold;
+ margin: 0;
+ padding: 0;
+ }
+ }
+}
+
+.autocompleter-loading {
+ background-image: url(images/spinner.gif);
+ background-repeat: no-repeat;
+ background-position: right 50%;
+}
+
+textarea.autocompleter-loading {
+ background-position: right bottom;
+}
diff --git a/searx/static/less/style.less b/searx/static/less/style.less
index 4b4e2554c..0b663fa03 100644
--- a/searx/static/less/style.less
+++ b/searx/static/less/style.less
@@ -8,6 +8,10 @@
@import "mixins.less";
+// Autocompleter
+
+@import "autocompleter.less";
+
// Main LESS-Code
html {
@@ -574,3 +578,24 @@ tr {
color: @color-settings-return-font;
}
}
+
+/*#search_autocompleter {
+ border: 1px solid #3498DB;
+ position: absolute;
+ top: 43px;
+ width:100%;
+ background:#FFF;
+ z-index:2;
+
+ p {
+ border-bottom: 1px solid #ccc;
+ }
+}*/
+
+/*#search_input {
+position: relative;
+}
+
+#search_form {
+
+}*/