From 21d179c762d87e0790206fe59b08ffd49bb4a53b Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 13 Feb 2019 21:21:20 +0100 Subject: autocompleting --- scraper/client/common/autocomplete.css | 39 ++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 scraper/client/common/autocomplete.css (limited to 'scraper/client/common/autocomplete.css') diff --git a/scraper/client/common/autocomplete.css b/scraper/client/common/autocomplete.css new file mode 100644 index 00000000..ac90ea72 --- /dev/null +++ b/scraper/client/common/autocomplete.css @@ -0,0 +1,39 @@ +.autocomplete { + position: relative; + margin-bottom: 4px; +} +.autocomplete input[type=text], +.autocomplete .matches { + width: 400px; +} +.autocomplete div { + background: white; + cursor: pointer; +} +.autocomplete .matches { + position: absolute; + top: 100%; + left: 0; + border: 1px solid #888; + max-height: 220px; + overflow-y: auto; + z-index: 1; +} +.autocomplete .matches div { + padding: 3px; +} +.autocomplete .matches div:nth-child(even) { + background: #eee; +} +.autocomplete .matches div:nth-child(odd) { + background: #fff; +} +.autocomplete .matches div:nth-child(even).selected, +.autocomplete .matches div:nth-child(odd).selected { + color: #fff; + background: #000; + cursor: pointer; +} +.autocomplete .selected { + background: rgba(128,128,128,0.2); +} \ No newline at end of file -- cgit v1.2.3-70-g09d2