UNPKG

uncomplete

Version:

A jQuery autocomplete plugin

134 lines (121 loc) 2.4 kB
li.swiggle { display: inline-block; position: absolute; padding: 2px 25px 2px 7px; background: #eee; border-radius: 3px; color: #777; line-height: 20px; } .multiple { position: absolute; width: 100%; margin: 0; padding: 0; list-style: none; text-align: left; cursor: text; } li.multiple { display: inline-block; position: relative; margin: 5px; } .datalist-results { position: absolute; top: 0; left: 0; border: 1px solid #444; border-top: none; background: #fff; z-index: 100000; max-height: 300px; overflow-y: auto; box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15); color: #333; list-style: none; margin: 0; padding: 0; } /** * Multiple items */ .datalist-multiple:before { content: ''; display: block; clear: both; } .datalist-multiple { width: 100%; margin: 0; padding: 0; list-style: none; text-align: left; cursor: text; } .datalist-multiple.disabled { background-color: #eee; cursor: default; } .datalist-multiple:after { content: ''; display: block; clear: both; } .datalist-multiple li { display: inline-block; position: relative; margin: 5px; } .datalist-multiple li.swiggle { display: inline-block; padding: 2px 25px 2px 7px; background: #eee; border-radius: 3px; color: #777; line-height: 20px; } .datalist-multiple li.toggle { cursor: pointer; transition: opacity ease-in-out 300ms; } .datalist-multiple li.toggle.disabled { text-decoration: line-through; opacity: 0.80; } .datalist-multiple li.swiggle button.swiggle-remove-btn { font-weight: 700; border: none; background-color: inherit; padding: 2px 5px; font-size: 20px; line-height: 20px; cursor: pointer; position: absolute; top: 0; right: 0; opacity: 0.70; } .datalist-multiple li.swiggle span.swiggle-remove-btn:hover { opacity: 1; } /* Annimations */ @keyframes shadow-pulse { 0% { box-shadow: 0 0 0 0px rgba(22, 201, 159, 0.5); } 100% { box-shadow: 0 0 0 35px rgba(22, 201, 159, 0.5); } } .swiggle-added { animation: shadow-pulse 0.5s 1; } .success:focus, .succes { color: #16c99f; } .fail:focus, .fail { color: #fa2828; }