@asi-ngtools/lib
Version:
This project is a little components library, simple to use, which will help you to simplify your project.
164 lines (158 loc) • 3.81 kB
text/less
.drop-down-select {
overflow: auto;
display: block;
max-height: @asi-select-dropdown-max-height;
.drop-down-panel {
display: inline-block;
min-width: 100%;
border-bottom: none;
background-color: @asi-select-dropdown-background-color;
padding-bottom: 1px;
.drop-down-item {
display: flex;
flex-direction: column;
justify-content: center;
cursor: pointer;
height: @asi-select-height;
min-height: @asi-select-height;
max-height: @asi-select-height;
min-width: 100%;
padding: 0;
border: @asi-select-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-select-hover-left-box-shadow;
background-color: #F3F3F3;
.option {
.item {
color: black;
}
}
}
.option {
asi-checkbox {
padding: 0 0 0 5px;
}
height: @asi-select-height;
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-select, asi-select {
.base-component;
.asi-checkbox {
margin: 0;
}
label.input-label {
color: @asi-select-label-color;
}
&.multiple {
.asi-select-container{
.asi-select-header {
.item-container{
> span {
padding-left : 25px;
}
}
}
}
}
.asi-select-container {
display: flex;
flex: 1 0 auto;
flex-direction: column;
.asi-select-header {
display: flex;
flex-direction: row;
align-items: center;
border: @asi-select-border;
border-radius: @asi-select-border-radius;
box-shadow: @asi-select-box-shadow;
position: relative;
asi-checkbox {
position: absolute;
top: 4px;
}
&:not([disabled]) {
cursor: pointer;
background-color: @asi-select-header-background-color;
}
&:disabled {
background-color: rgb(235, 235, 228);
}
min-height: @asi-select-height;
outline: none;
&:focus {
border: @asi-select-outline-border;
}
.asi-checkbox {
padding: 0 0 0 5px;
}
.item-container {
height: @asi-select-height;
padding: 0;
display: flex;
flex-direction: row;
align-items: center;
flex: 1 1 auto;
min-width: 0;
padding-left: 5px;
outline: none;
&:focus {
border: @asi-select-outline-border;
}
&:not([disabled]) {
color: @asi-select-text-color;
asi-empty {
color: @asi-disabled-text-color;
}
}
& > span {
display: flex;
flex-direction: row;
align-items: center;
flex: 1 1 auto;
.item {
color: inherit;
height: 100%;
flex: 1 1 auto;
overflow: hidden;
}
.drop-icon-container {
height: 100%;
display: flex;
flex-direction: row;
align-items: center;
.drop-icon {
display: block;
margin-right: 5px;
width: 10px;
height: 15px;
color: inherit;
}
}
}
}
}
}
}