.autocomplete { padding: 0; position: relative; font-size: inherit; } .input { background: white; border: 1px solid #d8d8d8; border-radius: 0; font-size: inherit; padding: 0; height: 28px; position: relative; } .input:after { border: 0; top: 50%; width: 0; position: absolute; right: 1em; text-align: right; font-size: 1.5em; margin-top: -0.375em; font-family: FontAwesome; content: "\f107"; color: #c0c0c0; height: 0.75em; cursor: pointer; } .suggestions { margin-top: 0; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.24); overflow-x: hidden; overflow-y: auto; padding: 0; transition-duration: 0.35s; transition-property: max-height; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); width: 100%; } .suggestion { font-family: helvetica, arial, verdana, sans-serif; font-size: 13px; padding: 7px; user-select: none; cursor: pointer; } .suggestion.active { background: #d6e8f6; } .clear { top: 4px; left: 6px; } .values { padding: 0; } .inputInputElement { font-size: inherit; line-height: 200%; border: 0; padding: 0 2em 0 .5em; margin: 0; height: 100%; display: block; outline: none; width: 100%; } .inputInputElement::-ms-clear { display: none; } .inputBar { display: none; } .inputInputElement:focus + .inputBar { content: " "; display: block; border: 1px solid #4196d4; border-radius: 0; position: absolute; left: 0; right: 0; top: 0; bottom: 0; } .inputBar:after, .inputBar:before { display: none; } .withclear input { text-indent: 0; padding-right: 50px; } .clear { color: #aaa; width: 20px; height: 20px; border-radius: 10px; border: 1px solid #aaa; left: auto; top: 4px; right: 28px; line-height: 18px; font-size: 18px; text-align: center; padding: 0; }