typeahead: Use tippy to position typeaheads without a specified parent.

Except for search typeaheads which have a specific parent container,
we position typeaheads using tippy.
This commit is contained in:
Aman Agrawal
2024-04-29 13:10:05 +00:00
committed by Tim Abbott
parent 689489573a
commit 4e87f35c7d
7 changed files with 100 additions and 75 deletions

View File

@@ -1,25 +1,10 @@
/* CSS for Bootstrap typeahead */
.dropdown-menu {
position: absolute;
top: 100%;
left: 0;
z-index: 1000;
display: none;
float: left;
min-width: 160px;
padding: 5px 0;
margin: 2px 0 0;
min-width: 160px;
list-style: none;
background-color: #ffffff;
border: 1px solid #ccc;
border: 1px solid rgba(0, 0, 0, 0.2);
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
-webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
-moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
-webkit-background-clip: padding-box;
-moz-background-clip: padding;
background-clip: padding-box;
@@ -83,8 +68,4 @@
}
.typeahead {
z-index: 1051;
margin-top: 2px;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}