uxrocket.autocomplete
Version:
UX Rocket Autocomplete: A jQueryUI autocomplete wrapper
169 lines (164 loc) • 3.15 kB
CSS
/* @author Bilal Cinarli */
/** -------------------------------------------
Auto Complete Styles
------------------------------------------- **/
.uxitd-autocomplete-wrap {
position: relative;
display: inline-block;
}
.uxitd-autocomplete-wrap .icon-search {
position: absolute;
top: 0;
right: 0;
width: 25px;
height: 100%;
font-size: 1.2em;
color: #37ade0;
}
.uxitd-autocomplete-wrap .icon-search:before {
position: absolute;
top: 50%;
right: 5px;
margin-top: -9px;
}
.uxitd-autocomplete-wrap .icon-loading {
top: 5px;
right: 5px;
width: 20px;
height: 20px;
border-radius: 50%;
border: dashed 2px #37ade0;
-webkit-animation: loading 2s infinite linear;
-moz-animation: loading 2s infinite linear;
-o-animation: loading 2s infinite linear;
animation: loading 2s infinite linear;
}
.uxitd-autocomplete-wrap .icon-loading:before {
content: '';
}
.uxitd-autocomplete-wrap [class*="-column"],
.uxitd-autocomplete-wrap .uxitd-autocomplete-ready {
width: 100%;
}
@-webkit-keyframes loading {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@-moz-keyframes loading {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@-o-keyframes loading {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@keyframes loading {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.uxitd-autocomplete-icon-clickable {
cursor: pointer;
}
.ui-menu {
padding: 0;
border: 1px solid #555;
background: #fff;
box-sizing: content-box;
}
.ui-menu:after, .ui-menu:before {
left: 25px;
}
.ui-menu .ui-menu-item {
display: block;
float: none;
margin-top: 0;
border-top: 1px solid #eee;
}
.ui-menu .ui-menu-item:first-child {
border-top: none;
}
.ui-menu .ui-menu-item a {
margin: 0;
padding: 10px 5px;
border-radius: 1px;
color: #999;
cursor: pointer;
overflow: hidden;
}
.ui-menu .ui-menu-item a:hover {
background: #37ade0;
color: #fff;
}
.ui-menu .ui-menu-item a:hover .matched {
color: #fff;
}
.ui-menu .ui-menu-item a.ui-state-focus, .ui-menu .ui-menu-item a.ui-state-active {
margin: 0;
}
.ui-menu .ui-menu-item a .matched {
color: #37ade0;
font-weight: bold;
}
.ui-menu .ui-state-focus a {
background: #37ade0;
color: #fff;
}
.ui-menu .ui-state-focus a .matched {
color: #fff;
}
.ui-menu .item-image {
display: inline-block;
width: 24px;
height: 24px;
margin-right: 8px;
overflow: hidden;
vertical-align: middle;
}
.ui-menu .item-image img {
max-width: 24px;
max-height: 24px;
}
.ui-menu.uxitd-category {
min-width: 200px;
padding-left: 150px;
max-height: 250px;
overflow: auto;
}
.ui-menu.uxitd-category .ui-menu-item {
border-left: 1px solid #ccc;
}
.ui-menu.uxitd-category .ui-menu-item a {
border-left: 1px solid #e5e5e5;
}
.ui-menu .uxitd-autocomplete-category {
position: absolute;
left: 0;
padding: 10px;
font-weight: bold;
width: 150px;
margin-top: -1px;
}
.ui-autocomplete {
max-height: 250px;
overflow: auto;
}
.ui-menu-item em {
margin-left: 32px;
font-size: 11px;
}