123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178 |
- /**Variable**/
- @import './helpers/mixin.scss';
- @import './base/loading.scss';
- .vxe-select {
- position: relative;
- display: inline-block;
- width: 180px;
- color: $vxe-font-color;
- text-align: left;
- &:not(.is--disabled) {
- & > .vxe-input {
- .vxe-input--inner {
- cursor: pointer;
- }
- }
- }
- & > .vxe-input {
- width: 100%;
- .vxe-input--suffix-icon {
- @include animatTransition(transform, .2s);
- }
- }
- &.is--active {
- & > .vxe-input {
- .vxe-input--inner {
- border: 1px solid $vxe-primary-color;
- }
- }
- }
- }
- .vxe-select-slots {
- display: none;
- }
- .vxe-select--panel {
- display: none;
- position: absolute;
- left: 0;
- padding: 4px 0;
- color: $vxe-font-color;
- text-align: left;
- background-color: $vxe-select-panel-background-color;
- &:not(.is--transfer) {
- min-width: 100%;
- }
- &.is--transfer {
- position: fixed;
- }
- &.animat--leave {
- display: block;
- opacity: 0;
- transform: scaleY(0.5);
- transition: transform .3s cubic-bezier(.23,1,.32,1), opacity .3s cubic-bezier(.23,1,.32,1);
- transform-origin: center top;
- backface-visibility: hidden;
- transform-style: preserve-3d;
- &[placement="top"] {
- transform-origin: center bottom;
- }
- }
- &.animat--enter {
- opacity: 1;
- transform: scaleY(1);
- }
- }
- .vxe-select-option--wrapper {
- overflow-x: hidden;
- overflow-y: auto;
- padding: 4px 0;
- max-height: 200px;
- border-radius: $vxe-border-radius;
- border: 1px solid $vxe-table-popup-border-color;
- box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.1);
- }
- .vxe-optgroup {
- .vxe-optgroup--title {
- padding: 0 6px;
- color: $vxe-optgroup-title-color;
- font-size: 12px;
- }
- }
- .vxe-optgroup--wrapper {
- .vxe-select-option {
- padding: 0 20px;
- }
- }
- .vxe-select-option {
- padding: 0 10px;
- max-width: 400px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- &.is--selected {
- font-weight: 700;
- color: $vxe-primary-color;
- }
- &:not(.is--disabled) {
- cursor: pointer;
- &.is--hover {
- background-color: $vxe-select-option-hover-background-color;
- }
- }
- &.is--disabled {
- color: $vxe-disabled-color;
- cursor: no-drop;
- }
- }
- .vxe-select--empty-placeholder {
- padding: 0 10px;
- text-align: center;
- }
- .vxe-select,
- .vxe-select--panel {
- font-size: $vxe-font-size;
- &.size--medium {
- font-size: $vxe-font-size-medium;
- }
- &.size--small {
- font-size: $vxe-font-size-small;
- }
- &.size--mini {
- font-size: $vxe-font-size-mini;
- }
- }
- .vxe-select--panel {
- .vxe-optgroup--title,
- .vxe-select-option {
- height: $vxe-select-option-height-default;
- }
- .vxe-optgroup--title,
- .vxe-select-option,
- .vxe-select--empty-placeholder {
- line-height: $vxe-select-option-height-default;
- }
- &.size--medium {
- .vxe-optgroup--title,
- .vxe-select-option {
- height: $vxe-select-option-height-medium;
- }
- .vxe-optgroup--title,
- .vxe-select-option,
- .vxe-select--empty-placeholder {
- line-height: $vxe-select-option-height-medium;
- }
- }
- &.size--small {
- .vxe-optgroup--title,
- .vxe-select-option {
- height: $vxe-select-option-height-small;
- }
- .vxe-optgroup--title,
- .vxe-select-option,
- .vxe-select--empty-placeholder {
- line-height: $vxe-select-option-height-small;
- }
- }
- &.size--mini {
- .vxe-optgroup--title,
- .vxe-select-option {
- height: $vxe-select-option-height-mini;
- }
- .vxe-optgroup--title,
- .vxe-select-option,
- .vxe-select--empty-placeholder {
- line-height: $vxe-select-option-height-mini;
- }
- }
- }
|