diff options
author | Alexander_Kabui | 2023-03-08 05:58:38 +0300 |
---|---|---|
committer | Alexander_Kabui | 2023-03-08 05:58:38 +0300 |
commit | cd4d100a2090e97077b0a4414365873e0de5dc25 (patch) | |
tree | 817f7590354aec0a3b1577712f6723f68189ad6e /wqflask | |
parent | 3582c60551c5e6bf24a62d5c22fefd62a1aa560b (diff) | |
download | genenetwork2-cd4d100a2090e97077b0a4414365873e0de5dc25.tar.gz |
add autocomplete css code
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/static/new/css/autocomplete.css | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/wqflask/wqflask/static/new/css/autocomplete.css b/wqflask/wqflask/static/new/css/autocomplete.css new file mode 100644 index 00000000..aba68e37 --- /dev/null +++ b/wqflask/wqflask/static/new/css/autocomplete.css @@ -0,0 +1,80 @@ +.autocomplete { + /*the container must be positioned relative:*/ + position: relative; + display: inline-block; +} + +input.autocomplete { + border: 1px solid transparent; + background-color: #f1f1f1; + padding: 10px; + font-size: 16px; +} + +input[type=text].autocomplete { + background-color: #f1f1f1; + width: 100%; +} + +input[type=submit].autocomplete { + background-color: DodgerBlue; + color: #fff; +} + + +.autocomplete-items { + position: absolute; + border: 1px solid #d4d4d4; + border-bottom: none; + border-top: none; + z-index: 99; + /*position the autocomplete items to be the same width as the container:*/ + top: 100%; + left: 0; + right: 0; +} + +.autocomplete-items div { + padding: 10px; + cursor: pointer; + background-color: #fff; + border-bottom: 1px solid #d4d4d4; +} + +.autocomplete-items div:hover { + /*when hovering an item:*/ + background-color: #e9e9e9; +} + +.autocomplete-active { + /*when navigating through the items using the arrow keys:*/ + background-color: DodgerBlue !important; + color: #ffffff; +} + +.recent-search-title { + display: -webkit-box; + display: -moz-box; + display: -ms-flexbox; + display: -webkit-flex; + display: flex; +} + +.recent-search-title * { + -webkit-box-flex: 1 1 auto; + -moz-box-flex: 1 1 auto; + -webkit-flex: 1 1 auto; + -ms-flex: 1 1 auto; + flex: 1 1 auto; +} + + +.recent-search-title input[type="button"] { + border: none; + background: none; + cursor: pointer; + margin: 0; + padding: 0; + color: blue; + +}
\ No newline at end of file |