.sey-list { display: none; position: absolute; padding: 0; margin: 0; list-style-type: none; box-shadow: 1px 2px 6px; background-color: #fff; color: #333; transition: left 0.1s ease-in-out; max-height: 70vh; overflow: auto; width: 265px; } .sey-show { display: block; } .sey-hide { display: none; } .sey-item { cursor: pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 7px; } .sey-item:hover { background-color: #444; color: #fff; } .sey-selected { background-color: #333; color: #fff; }