index.less 2.11 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
@history-info-prefix-cls: ~'@{ant-prefix}-history-info';

.@{history-info-prefix-cls} {
  height: 100%;

邓晓峰's avatar
邓晓峰 committed
8 9
  .@{ant-prefix}-tabs,
  .@{ant-prefix}-tabs-content {
涂茜's avatar
涂茜 committed
10 11 12 13 14 15 16 17
    height: 100%;
  }

  &-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 10px 0 0 0;
涂茜's avatar
涂茜 committed
18
  }
涂茜's avatar
涂茜 committed
19

涂茜's avatar
涂茜 committed
20 21 22 23 24
  &-spin {
    display: flex;
    flex: 1;
    height: calc(100% - 108px);
  }
涂茜's avatar
涂茜 committed
25

邓晓峰's avatar
邓晓峰 committed
26
  &-spin > .@{ant-prefix}-spin-container {
涂茜's avatar
涂茜 committed
27 28 29 30
    display: flex;
    flex: 1;
    overflow: hidden;
  }
涂茜's avatar
涂茜 committed
31

邓晓峰's avatar
邓晓峰 committed
32
  &-spin > div > .@{ant-prefix}-spin {
涂茜's avatar
涂茜 committed
33
    max-height: none;
涂茜's avatar
涂茜 committed
34 35 36 37 38 39 40
  }

  &-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
涂茜's avatar
涂茜 committed
41 42 43
  }

  &-wrap {
涂茜's avatar
涂茜 committed
44
    display: flex;
涂茜's avatar
涂茜 committed
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
    flex: 1;
    overflow: hidden;
  }

  &-main {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
  }

  &-chart {
    width: 100%;
    height: 100%;
  }

  &-time {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    white-space: nowrap;

    .@{history-info-prefix-cls}-label {
      letter-spacing: 27px;
    }

    .@{history-info-prefix-cls}-label:after {
      right: -20px;
    }

邓晓峰's avatar
邓晓峰 committed
75 76
    .@{ant-prefix}-radio-group,
    .@{ant-prefix}-select {
涂茜's avatar
涂茜 committed
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138
      margin-right: 16px;
    }

    .anticon-plus-circle {
      margin-left: 10px;
      color: @primary-color;
      font-size: 16px;
      cursor: pointer;
    }
  }

  &-cover {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    white-space: nowrap;
  }

  &-label {
    position: relative;
    width: 80px;
  }

  &-label:after {
    position: absolute;
    top: 0;
    right: 7px;
    content: ':';
  }

  &-contrast-list {
    display: flex;
    align-items: center;
  }

  &-connect {
    margin: 0 10px;
  }

  &-date-wrap {
    position: relative;
    cursor: pointer;
  }

  &-date-delete {
    position: absolute;
    top: -12px;
    right: -8px;

    .anticon.anticon-close-circle {
      color: #d9d9d9;
      background: white;
    }

    &:hover {
      .anticon.anticon-close-circle {
        color: rgba(0, 0, 0, 0.45);
        background: white;
      }
    }
  }
}