index.less 1.08 KB
Newer Older
李纪文's avatar
李纪文 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
@root-entry-name: 'default';
@import '~antd/es/style/themes/index.less';
@select-custom-prefix-cls: ~'@{ant-prefix}-select-custom';
@tree-select-custom-prefix-cls: ~'@{ant-prefix}-tree-select-custom';

.@{select-custom-prefix-cls} {
  position: relative;
  display: flex;
  align-items: center;

  &-icon {
    position: absolute;
    z-index: 1;
    padding-left: 10px;
  }
}

.@{select-custom-prefix-cls}-prefix {
  .@{select-custom-prefix-cls}-base {
    > .@{ant-prefix}-select-selector {
      padding-left: 30px;

      > .@{ant-prefix}-select-selection-search {
        left: 30px;
      }
    }
  }
}

.@{ant-prefix}-select-item-option-active:not(.@{ant-prefix}-select-item-option-disabled) {
  background-color: #f8f8f8;
}

.@{ant-prefix}-select-item-option-selected:not(.@{ant-prefix}-select-item-option-disabled) {
  background-color: #e7f3fd;
}

.@{ant-prefix}-select-tree {
  .@{ant-prefix}-select-tree-node-content-wrapper.@{ant-prefix}-select-tree-node-selected {
    background-color: #e7f3fd;
  }

  .@{ant-prefix}-select-tree-node-content-wrapper:hover {
    background-color: #f8f8f8;
  }
}