@import 'proto-ui.vusion/src/u-select.vue/module.css';

.root {
    height: $height-base;
    line-height: 32px;
    padding-left: 14px;
    padding-right: 20px;
    background: white;
    border: 1px solid $border-color-base;
    border-radius: $border-radius-base;
}

.root:focus {
    border-color: $border-color-base;
}

.root::after {
    position: absolute;
    icon-font: url('i-line-awesome.vue/assets/angle-down.svg');
    color: #a5a5a6;
    font-size: 12px;
    right: 10px;
    top: 0;
    line-height: inherit;
}

.root[disabled] {
    cursor: not-allowed;
    background: $brand-disabled-light;
    color: $brand-disabled;
}

.text {
    float: left;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: inherit;
}

.popper {
    margin-top: 1px;
    max-height: 194px;
    line-height: 28px;
    overflow: auto;
    background: white;
    border: 1px solid $border-color-base;
    border-radius: $border-radius-base;
    z-index: 1065;
}

.root[size$="mini"] { width: 80px; }
.root[size^="mini"] { height: 28px; line-height: 26px; }
.root[size^="mini"] .popper { max-height: 156px; }

.root[size$="small"] { width: 120px; }
.root[size^="small"] { height: 30px; line-height: 28px; }
.root[size^="small"] .popper { max-height: 168px; }

.root[size$="normal"] { width: 160px; }
.root[size^="normal"] { height: $height-base; line-height: 32px; }
.root[size^="normal"] .popper { max-height: 192px; }

.root[size$="medium"] { width: 280px; }
.root[size^="medium"] { height: 36px; line-height: 34px; }
.root[size^="medium"] .popper { max-height: 204px; }

.root[size$="large"] { width: 440px; }
.root[size^="large"] { height: 38px; line-height: 36px; }
.root[size^="large"] .popper { max-height: 216px; }

.root[size$="huge"] { width: 580px; }
.root[size^="huge"] { height: 40px; line-height: 38px; }
.root[size^="huge"] .popper { max-height: 228px; }

.root[size$="full"] { width: 100%; }
.root[size^="full"] { height: 100%; }
