index.less 3.21 KB
Newer Older
1
@root-entry-name: 'default';
2
@import (reference) '~antd/es/style/themes/index.less';
3 4 5 6
@history-view: ~'@{ant-prefix}-history-view';

.@{history-view} {
  height: 100%;
7
  padding: @padding-md;
8 9 10 11 12 13 14 15 16 17 18 19 20

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

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

21 22 23 24 25
  .@{ant-prefix}-tabs-extra-content {
    width: 82px;
    white-space: nowrap;
  }

26 27 28 29 30 31 32 33 34 35 36 37
  &-extra-right {
    width: 82px;
  }

  .@{history-view}-spin,
  .@{history-view}-spin > .@{ant-prefix}-spin-container,
  .@{ant-prefix}-tabs,
  .@{ant-prefix}-tabs-content,
  .@{ant-prefix}-tabs-tabpane {
    height: 100%;
  }

38 39 40 41 42 43
  .@{history-view}-single-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

44 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 75 76 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
  .@{ant-prefix}-tabs-tabpane-active {
    display: flex;
    flex-direction: column;
  }
}

.@{history-view}-date {
  display: flex;
  align-items: center;
  white-space: nowrap;

  .@{ant-prefix}-radio-group,
  .@{ant-prefix}-select {
    margin-right: 16px;
  }

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

.@{history-view}-contrast {
  &-wrap {
    position: relative;
    cursor: pointer;
  }

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

  &-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;
      }
    }
  }

  &-connect {
    margin: 0 10px;
  }
}

.@{history-view}-options {
  display: flex;
  flex-wrap: wrap;
105 106
  align-items: center;
  padding-bottom: 10px;
107 108 109 110 111 112 113 114
  column-gap: 20px;
  row-gap: 10px;
}

.@{history-view}-cover {
  display: flex;
  align-items: center;
  white-space: nowrap;
115 116 117 118

  &-item {
    margin-right: 8px;
  }
119 120 121
}

.@{history-view}-content {
122
  display: flex;
123
  flex: 1;
124 125
  align-items: center;
  justify-content: center;
126 127 128 129 130 131
  overflow: hidden;
}

.@{history-view}-grid {
  display: flex;
  flex-wrap: wrap;
132
  width: 100%;
133
  height: 100%;
134
  padding: 4px;
135 136
  overflow-y: auto;
  background-color: #f0f2f5;
137 138 139

  &-item {
    width: 50%;
140
    height: 50%;
141
    padding: 4px;
142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157

    &-title {
      position: absolute;
      top: 16px;
      left: 20px;
      z-index: 2;
      max-width: 200px;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;

      &::before {
        display: inline-block;
        width: 5px;
        height: 16px;
        vertical-align: -0.2em;
158
        background-color: @primary-color;
159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175
        content: '';
      }

      &_text {
        padding-left: 10px;
        color: '#333333';
        font-weight: bold;
        font-size: 15px;
        font-family: 'Microsoft YaHei';
      }

      &_unit {
        padding-left: 5px;
        color: #999999;
        font-size: 12px;
      }
    }
176 177 178
  }

  &-item-wrap {
179 180 181 182
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
183
    height: 100%;
184
    overflow: hidden;
185
    background-color: #fff;
186 187
    border-radius: 4px;
  }
188
}
189 190 191 192 193 194 195 196 197 198

.@{history-view}-question {
  color: @primary-color;
  cursor: pointer;
  opacity: 0.8;

  &:hover {
    opacity: 1;
  }
}