@asi-ngtools/lib
Version:
This project is a little components library, simple to use, which will help you to simplify your project.
138 lines (119 loc) • 3.11 kB
text/less
.drop-down-autocomplete {
overflow: auto;
display: block;
max-height: @asi-autocomplete-dropdown-max-height;
.drop-down-panel {
display: inline-block;
min-width: 100%;
border-bottom: none;
background-color: @asi-autocomplete-dropdown-color;
.drop-down-item {
display: flex;
flex-direction: column;
justify-content: center;
cursor: pointer;
height: @asi-autocomplete-height;
min-height: @asi-autocomplete-height;
max-height: @asi-autocomplete-height;
min-width: 100%;
padding: 0;
border: @asi-autocomplete-border;
border-bottom: none;
background-color: white;
&:first-child {
border-radius: @asi-select-border-radius @asi-select-border-radius 0 0;
}
&:last-child {
border-bottom: @asi-select-border;
border-radius: 0 0 @asi-select-border-radius @asi-select-border-radius;
}
&:hover {
box-shadow: @asi-autocomplete-hover-left-box-shadow;
background-color: #F3F3F3;
.option {
.item {
color: black;
}
}
}
.option {
asi-checkbox {
padding: 0 5px 0 0;
}
padding-left: 5px;
display: flex;
flex-direction: row;
align-items: center;
&:focus {
border: @asi-select-outline-border;
}
.item {
display: flex;
flex: 1 1 auto;
color: #545454;
padding: 0 5px;
}
}
}
}
}
.asi-autocomplete,
asi-autocomplete {
.base-component;
label.input-label {
color: @asi-autocomplete-label-color;
}
.autocomplete {
display: flex;
flex-direction: column;
input {
outline: none;
&:focus {
border: @asi-autocomplete-outline-border;
}
height: @asi-autocomplete-height;
max-height: @asi-autocomplete-max-height;
padding: 0;
border: @asi-autocomplete-border;
border-radius: @asi-autocomplete-border-radius;
box-shadow: @asi-autocomplete-box-shadow;
padding-left: 5px;
flex: 1 0 auto;
}
.autocomplete-header {
height: @asi-autocomplete-height;
border: @asi-autocomplete-border;
border-radius: @asi-autocomplete-border-radius;
box-shadow: @asi-autocomplete-box-shadow;
padding-left: 5px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
outline: none;
box-sizing: content-box;
&:focus {
border: @asi-autocomplete-outline-border;
}
.remove-icon-container {
&:not([disabled]) {
cursor: pointer;
}
&:focus {
border: @asi-autocomplete-outline-border;
}
height: 100%;
display: flex;
flex-direction: row;
align-items: center;
.remove-icon {
display: block;
margin-right: 5px;
width: 10px;
height: 19px;
color: @asi-autocomplete-remove-icon-color;
}
}
}
}
}