Analysis.less 3.2 KB
Newer Older
jim's avatar
jim committed
1
@import '~antd/lib/style/themes/default.less';
2
@import '~@/utils/utils.less';
3 4 5

.iconGroup {
  i {
nikogu's avatar
nikogu committed
6 7
    transition: color 0.32s;
    color: @text-color-secondary;
8 9
    cursor: pointer;
    margin-left: 16px;
nikogu's avatar
nikogu committed
10 11 12
    &:hover {
      color: @text-color;
    }
13 14
  }
}
niko's avatar
niko committed
15

16
.rankingList {
afc163's avatar
afc163 committed
17 18 19
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
20 21 22
  li {
    .clearfix();
    margin-top: 16px;
afc163's avatar
afc163 committed
23 24
    display: flex;
    align-items: center;
25 26 27 28 29
    span {
      color: @text-color;
      font-size: 14px;
      line-height: 22px;
    }
afc163's avatar
afc163 committed
30
    .rankingItemNumber {
31 32 33 34 35
      background-color: @background-color-base;
      border-radius: 20px;
      display: inline-block;
      font-size: 12px;
      font-weight: 600;
afc163's avatar
afc163 committed
36
      margin-right: 16px;
37 38 39 40
      height: 20px;
      line-height: 20px;
      width: 20px;
      text-align: center;
afc163's avatar
afc163 committed
41 42 43 44 45
      margin-top: 1.5px;
      &.active {
        background-color: #314659;
        color: #fff;
      }
46
    }
afc163's avatar
afc163 committed
47 48 49 50 51 52
    .rankingItemTitle {
      flex: 1;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
      margin-right: 8px;
53 54 55 56 57 58 59 60 61 62 63 64 65
    }
  }
}

.salesExtra {
  display: inline-block;
  margin-right: 24px;
  a {
    color: @text-color;
    margin-left: 24px;
    &:hover {
      color: @primary-color;
    }
afc163's avatar
afc163 committed
66 67 68
    &.currentDate {
      color: @primary-color;
    }
69 70 71 72
  }
}

.salesCard {
73
  .salesBar {
niko's avatar
niko committed
74
    padding: 0 0 32px 32px;
75 76
  }
  .salesRank {
niko's avatar
niko committed
77
    padding: 0 32px 32px 72px;
78
  }
79 80
  :global {
    .ant-tabs-bar {
niko's avatar
niko committed
81
      padding-left: 16px;
82 83 84 85 86 87 88 89 90 91
      .ant-tabs-nav .ant-tabs-tab {
        padding-top: 16px;
        padding-bottom: 14px;
        line-height: 24px;
      }
    }
    .ant-tabs-extra-content {
      padding-right: 24px;
      line-height: 55px;
    }
niko's avatar
niko committed
92 93 94
    .ant-card-head {
      position: relative;
    }
陈帅's avatar
陈帅 committed
95 96 97
    .ant-card-head-title {
      align-items: normal;
    }
niko's avatar
niko committed
98 99
  }
}
niko's avatar
niko committed
100

niko's avatar
niko committed
101
.salesCardExtra {
102
  height: inherit;
niko's avatar
niko committed
103
}
niko's avatar
niko committed
104

niko's avatar
niko committed
105 106
.salesTypeRadio {
  position: absolute;
107 108
  right: 54px;
  bottom: 12px;
niko's avatar
niko committed
109 110 111 112
}

.offlineCard {
  :global {
afc163's avatar
afc163 committed
113 114 115
    .ant-tabs-ink-bar {
      bottom: auto;
    }
niko's avatar
niko committed
116 117 118
    .ant-tabs-bar {
      border-bottom: none;
    }
niko's avatar
niko committed
119 120 121 122 123 124 125 126 127 128 129 130
    .ant-tabs-nav-container-scrolling {
      padding-left: 40px;
      padding-right: 40px;
    }
    .ant-tabs-tab-prev-icon:before {
      position: relative;
      left: 6px;
    }
    .ant-tabs-tab-next-icon:before {
      position: relative;
      right: 6px;
    }
陈帅's avatar
陈帅 committed
131 132 133
    .ant-tabs-tab-active h4 {
      color: @primary-color;
    }
afc163's avatar
afc163 committed
134 135 136
  }
}

137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155
.twoColLayout {
  .salesCard {
    height: calc(100% - 24px);
  }
  div[class^='ant-col']:last-child {
    right: 0\9;
    height: 100%\9;
    position: absolute\9;
  }
  :global {
    .ant-row {
      display: flex;
      display: block\9;
      flex-flow: row wrap;
      position: relative\9;
    }
  }
}

afc163's avatar
afc163 committed
156
.trendText {
偏右's avatar
偏右 committed
157 158 159 160
  margin-left: 8px;
  color: @heading-color;
}

161
@media screen and (max-width: @screen-lg) {
162 163 164
  .salesExtra {
    display: none;
  }
niko's avatar
niko committed
165

166 167 168 169 170 171 172 173 174
  .rankingList {
    li {
      span:first-child {
        margin-right: 8px;
      }
    }
  }
}

afc163's avatar
afc163 committed
175 176 177
@media screen and (max-width: @screen-md) {
  .rankingTitle {
    margin-top: 16px;
178
  }
niko's avatar
niko committed
179

afc163's avatar
afc163 committed
180 181
  .salesCard .salesBar {
    padding: 16px;
niko's avatar
niko committed
182
  }
afc163's avatar
afc163 committed
183 184 185
}

@media screen and (max-width: @screen-sm) {
186
  .salesExtraWrap {
afc163's avatar
afc163 committed
187
    display: none;
188
  }
niko's avatar
niko committed
189

190 191 192 193 194 195 196 197
  .salesCard {
    :global {
      .ant-tabs-content {
        padding-top: 30px;
      }
    }
  }
}