manuel
Version:
A super customizable VDOM autocomplete with *production ready* defaults.
61 lines (59 loc) • 1.28 kB
CSS
.manuel-complete ul {
list-style: none;
padding-left: 0em;
font-size: 1em;
margin: 0em;
width: 100%;
transition: 500ms;
position: absolute;
background-color: white;
transition: 0.3s cubic-bezier(.4,.2,.5,1.4);
transform-origin: 1.43em -.43em;
opacity: 0;
transform: scale(0);
display: block;
transition-timing-function: ease;
}
.manuel-complete.loaded.open ul {
border: solid 1px rgba(40, 142, 197, 0.17);
opacity: 1;
transform: scale(1);
overflow: hidden;
border-radius: 0.5em;
margin-top: 0.1em;
}
.manuel-complete li {
padding: 0.2em;
}
.manuel-complete li:hover {
background: hsl(200, 40%, 80%);
color: black;
}
.manuel-complete input {
height: 100%;
width: 100%;
padding: 0.5em;
border: 0;
border: 1px solid hsl(200, 80%, 60%);
background: hsla(0,0%,100%,.2);
border-radius: .3em;
box-shadow: .05em .1em .3em rgba(0,0,0,.3) inset;
transition: 0.3s;
font-size: 1em;
}
.manuel-complete input:focus {
outline: none;
border: 0;
border: 1px solid hsl(200, 80%, 60%);
}
.manuel-complete {
width: 100%;
position: relative;
outline: none;
}
.manuel-complete * {
box-sizing: border-box;
}
.manuel-complete .highlight {
background-color: gold;
}