summaryrefslogtreecommitdiff
path: root/searx/static/themes/simple/less/autocomplete.less
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2017-08-08 16:03:33 +0200
committerGitHub <noreply@github.com>2017-08-08 16:03:33 +0200
commit5082b4f1658d7db39f4815cbe9dd43089943b426 (patch)
tree7404240674ad0c5c3b23ce77dc2fb43c20174318 /searx/static/themes/simple/less/autocomplete.less
parent98e6b4d830ef8101bfdf06e304b98f0125b8ce35 (diff)
parentac59f5e1686ccc5d96055d23fd8bed6e8473f745 (diff)
Merge pull request #858 from dalf/simple
Simple theme
Diffstat (limited to 'searx/static/themes/simple/less/autocomplete.less')
-rw-r--r--searx/static/themes/simple/less/autocomplete.less67
1 files changed, 67 insertions, 0 deletions
diff --git a/searx/static/themes/simple/less/autocomplete.less b/searx/static/themes/simple/less/autocomplete.less
new file mode 100644
index 000000000..0a90d0df8
--- /dev/null
+++ b/searx/static/themes/simple/less/autocomplete.less
@@ -0,0 +1,67 @@
+@background_color: white;
+
+.autocomplete {
+ position: absolute;
+ max-height: 0;
+ overflow-y: hidden;
+ text-align: left;
+
+ &:active, &:focus, &:hover {
+ background-color: @background_color;
+ }
+
+ &:empty {
+ display: none;
+ }
+
+ > ul {
+ list-style-type: none;
+ margin: 0;
+ padding: 0;
+
+ > li {
+ cursor: pointer;
+ padding: 5px 0 5px 10px;
+
+ &.active, &:active, &:focus {
+ background-color: @color-base;
+
+ a:active, a:focus, a:hover {
+ text-decoration: none;
+ }
+ }
+
+ &.locked {
+ cursor: inherit;
+ }
+ }
+ }
+
+ &.open {
+ display: block;
+ background-color: @background_color;
+ border: 1px solid @color-base;
+ max-height: 500px;
+ overflow-y: auto;
+ z-index:100;
+
+ &:empty {
+ display: none;
+ }
+ }
+}
+
+
+@media screen and (max-width: @results-width) {
+
+ .autocomplete {
+ bottom: 0;
+ }
+
+ .autocomplete > ul > li {
+ padding: 7px 0 7px 10px;
+ border-bottom: 1px solid @color-result-top-border;
+ text-align: left;
+ }
+
+}