some autocomplete clan & family testing

This commit is contained in:
Vlyan
2022-02-08 18:29:10 +01:00
parent 9d5374e35c
commit 1afd85d3e9
15 changed files with 381 additions and 140 deletions

View File

@@ -182,4 +182,16 @@
input[type="number"] {
width: auto;
}
form .form-group {
border-bottom: solid #8080803d 1px;
&.smaller {
> label {
flex: 10;
}
.form-fields {
flex: 1;
}
}
}
}

View File

@@ -917,3 +917,36 @@ button {
display: none;
}
}
.autocomplete {
/*the container must be positioned relative:*/
position: relative;
display: inline-block;
.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;
}
}