added autocomplete search

This commit is contained in:
2021-08-11 14:28:51 +01:00
parent f293a53755
commit 27a5c0da29
7 changed files with 249 additions and 48 deletions
+68
View File
@@ -1039,3 +1039,71 @@ ul#sharePageLinks.active {
color: #333;
}
}
// dns autocomplete search
.react-autosuggest__container {
position: relative;
width: 50%;
}
.react-autosuggest__input {
width: 100%;
height: 36px;
padding: 10px;
border: 1px solid lightgray;
border-radius: 4px;
border-bottom-right-radius: 0;
border-top-right-radius: 0;
font-size: 0.875rem;
}
.react-autosuggest__input--focused {
outline: none;
}
.react-autosuggest__input--open {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
.react-autosuggest__suggestions-container {
display: none;
}
.react-autosuggest__suggestions-container--open {
display: block;
position: absolute;
top: 40px;
width: auto;
min-width: 160px;
margin-left: 1px;
background-color: #ffffff;
border-radius: 0 0 5px 5px;
z-index: 20;
-webkit-box-shadow: 0 6px 12px rgb(0 0 0 / 18%);
box-shadow: 0 6px 12px rgb(0 0 0 / 18%);
background-clip: padding-box;
border: 1px solid black;
border-top: none;
font-size: 0.875rem;
max-height: 400px;
overflow-y: scroll;
}
.react-autosuggest__suggestions-list {
margin: 0;
padding: 0;
list-style-type: none;
}
.react-autosuggest__suggestion {
cursor: pointer;
padding: 10px 20px;
color: #333;
border-bottom: 1px solid #c3c3c3;
}
.react-autosuggest__suggestion--highlighted {
background-color: #c3c3c3;
}