index.less 1.59 KB
Newer Older
邓晓峰's avatar
邓晓峰 committed
1 2
@root-entry-name: 'default';
@import '~antd/es/style/themes/index.less';
涂茜's avatar
涂茜 committed
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
@quota-select-prefix-cls: ~'@{ant-prefix}-quota-select';

.@{quota-select-prefix-cls} {
}

.@{quota-select-prefix-cls}-modal {
  &-wrap {
    display: flex;
    height: 500px;
  }

  &-left {
    flex: 7;
    border-right: 1px solid rgba(0, 0, 0, 0.2);

    .empty {
      margin: 128px 0;
    }
  }

  &-right {
    flex: 3;
  }

  &-select-wrap {
    display: flex;
    align-items: center;
邓晓峰's avatar
邓晓峰 committed
30
    justify-content: space-between;
涂茜's avatar
涂茜 committed
31 32 33 34 35 36 37 38
    padding: 0 20px 0 0;
  }

  &-search {
    width: 160px;
    background-color: #eef1f9;
    border-radius: 15px;

邓晓峰's avatar
邓晓峰 committed
39
    .@{ant-prefix}-input-prefix {
涂茜's avatar
涂茜 committed
40 41 42 43 44 45 46 47 48 49 50 51
      color: #5a6c8a;
    }
  }

  &-search:hover {
    background-color: #eef1f9;
  }

  &-target {
    display: flex;
    align-items: center;
    margin: 0 10px 0 10px;
邓晓峰's avatar
邓晓峰 committed
52
    white-space: nowrap;
涂茜's avatar
涂茜 committed
53 54 55 56 57 58 59 60 61 62
  }

  &-select {
    display: flex;
    align-items: center;
    white-space: nowrap;

    span {
      margin-right: 6px;
      color: #52c41a;
邓晓峰's avatar
邓晓峰 committed
63
      font-size: 16px;
涂茜's avatar
涂茜 committed
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
    }
  }

  &-select.warning {
    color: #f0495d;

    span {
      color: #f0495d;
    }
  }

  &-option-wrap {
    height: calc(100% - 52px);
    margin-top: 20px;
    overflow-y: auto;
  }

  &-number {
    margin-bottom: 10px;
    padding: 4px 0 10px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  }

  &-tree {
    height: calc(100% - 47px);
    overflow-y: auto;

邓晓峰's avatar
邓晓峰 committed
91 92
    .@{ant-prefix}-tree-treenode,
    .@{ant-prefix}-tree-node-content-wrapper {
涂茜's avatar
涂茜 committed
93 94 95 96 97 98 99
      width: 100%;
    }
  }

  &-tree-title {
    display: flex;
    align-items: center;
邓晓峰's avatar
邓晓峰 committed
100 101
    justify-content: space-between;
    width: 100%;
涂茜's avatar
涂茜 committed
102 103
  }
}