bim-select
Version:
A dropdown/select solution for Angular.js that handles millions of items without lag.
55 lines (52 loc) • 1.4 kB
text/less
bim-select {
display: block;
.bim-select-input {
opacity: 0 ;
border-top-left-radius: 4px ; // Needs !important to override Bootstrap styles.
border-bottom-left-radius: 4px ; // Needs !important to override Bootstrap styles.
z-index: 4 ;
&.is-displayed {
opacity: 1 ;
}
}
.bim-select-dropdown {
max-height: 300px;
overflow: auto;
.active {
// color taken from @dropdown-link-active-*
// See: https://git.io/vS8pF
background: #337ab7;
color: white;
}
}
.bim-select-item {
// Padding etc is tken from:
// https://git.io/vS8hv
display: block;
padding: 3px 12px;
line-height: 1.42857143;
cursor: pointer;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.bim-select-selected-item {
width: auto ;
padding: 0;
display: flex ;
align-items: center;
overflow: hidden;
position: absolute ;
top: 0;
left: 0;
right: 33px;
z-index: 3 ;
&.is-clearable {
right: 69px;
}
}
.is-disabled {
pointer-events: none;
opacity: 0.6;
}
}