Finished functionality of autocomplete.
Autocomplete could use some input on what to do when certain buttons
are pressed.
Change-Id: I1b4a9f2e8e7f9526e6d14cfb443e56676ae45576
diff --git a/client/query/query2.css b/client/query/query2.css
index 2119d4c..a9297a2 100644
--- a/client/query/query2.css
+++ b/client/query/query2.css
@@ -108,3 +108,19 @@
#filters:not(:empty)::before {
content: "Filters: ";
}
+
+#search {
+ width: 500px;
+}
+
+.autoComplete {
+ max-height: 0;
+ overflow-y: auto;
+ position: absolute;
+ left: 0;
+ transition: max-height 1s;
+}
+
+*:focus ~ .autoComplete { /* If the parent detects focus on any subelement or itself */
+ max-height: 500px;
+}