created a typeahead. neat.

This commit is contained in:
Bryce Covert
2018-05-23 00:30:04 -07:00
parent 37371024d1
commit 1a72859bd8
5 changed files with 138 additions and 20 deletions

View File

@@ -247,6 +247,53 @@
background-color:#F5F5F5;
}
.table { table-layout: fixed }
.typeahead {
position:relative;
}
.typeahead-menu {
position: absolute;
display: inline-block;
width: 100%;
top: 100%;
left: 0;
z-index: 1000;
float: left;
min-width: 160px;
padding: 5px 0;
margin: 2px 0 0;
list-style: none;
font-size: 14px;
text-align: left;
background-color: #ffffff;
border: 1px solid #cccccc;
border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 4px;
-webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
background-clip: padding-box;
}
.typeahead-suggestion {
display: block;
padding: 3px 20px;
clear: both;
font-weight: normal;
line-height: 1.42857143;
color: #333333;
white-space: nowrap;
}
.typeahead-suggestion:hover,
.typeahead-suggestion:focus,
.typeahead-menu:not(:hover) .typeahead-highlighted
{
color: #ffffff;
text-decoration: none;
outline: 0;
background-color: #00d1b2;
cursor: pointer;
}
</style>