summaryrefslogtreecommitdiff
path: root/searx/static/themes/simple/src/less/autocomplete.less
diff options
context:
space:
mode:
Diffstat (limited to 'searx/static/themes/simple/src/less/autocomplete.less')
-rw-r--r--searx/static/themes/simple/src/less/autocomplete.less85
1 files changed, 44 insertions, 41 deletions
diff --git a/searx/static/themes/simple/src/less/autocomplete.less b/searx/static/themes/simple/src/less/autocomplete.less
index 93f7df1ef..bfa8e2bc6 100644
--- a/searx/static/themes/simple/src/less/autocomplete.less
+++ b/searx/static/themes/simple/src/less/autocomplete.less
@@ -3,59 +3,63 @@
@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;
- }
+ position: absolute;
+ max-height: 0;
+ overflow-y: hidden;
+ text-align: left;
+
+ &:active,
+ &:focus,
+ &:hover {
+ background-color: @background_color;
+ }
- > ul {
- list-style-type: none;
- margin: 0;
- padding: 0;
+ &:empty {
+ display: none;
+ }
- > li {
- cursor: pointer;
- padding: 5px 0 5px 10px;
+ > ul {
+ list-style-type: none;
+ margin: 0;
+ padding: 0;
- &.active, &:active, &:focus {
- background-color: @color-base;
+ > li {
+ cursor: pointer;
+ padding: 5px 0 5px 10px;
- a:active, a:focus, a:hover {
- text-decoration: none;
- }
- }
+ &.active,
+ &:active,
+ &:focus {
+ background-color: @color-base;
- &.locked {
- cursor: inherit;
- }
+ 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;
+ &.open {
+ display: block;
+ background-color: @background_color;
+ border: 1px solid @color-base;
+ max-height: 500px;
+ overflow-y: auto;
+ z-index: 100;
- &:empty {
- display: none;
- }
+ &:empty {
+ display: none;
}
+ }
}
-
@media screen and (max-width: @results-width) {
-
.autocomplete {
bottom: 0;
}
@@ -65,5 +69,4 @@
border-bottom: 1px solid @color-result-top-border;
text-align: left;
}
-
}