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

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

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

.salesExtra {
  display: inline-block;
  margin-right: 24px;
  a {
    margin-left: 24px;
陈帅's avatar
陈帅 committed
72
    color: @text-color;
73 74 75
    &:hover {
      color: @primary-color;
    }
afc163's avatar
afc163 committed
76 77 78
    &.currentDate {
      color: @primary-color;
    }
79 80 81 82
  }
}

.salesCard {
83
  .salesBar {
niko's avatar
niko committed
84
    padding: 0 0 32px 32px;
85 86
  }
  .salesRank {
niko's avatar
niko committed
87
    padding: 0 32px 32px 72px;
88
  }
89 90
  :global {
    .ant-tabs-bar {
niko's avatar
niko committed
91
      padding-left: 16px;
92 93 94 95 96 97 98 99 100 101
      .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
102 103 104
    .ant-card-head {
      position: relative;
    }
陈帅's avatar
陈帅 committed
105 106 107
    .ant-card-head-title {
      align-items: normal;
    }
niko's avatar
niko committed
108 109
  }
}
niko's avatar
niko committed
110

niko's avatar
niko committed
111
.salesCardExtra {
112
  height: inherit;
niko's avatar
niko committed
113
}
niko's avatar
niko committed
114

niko's avatar
niko committed
115 116
.salesTypeRadio {
  position: absolute;
117 118
  right: 54px;
  bottom: 12px;
niko's avatar
niko committed
119 120 121 122
}

.offlineCard {
  :global {
afc163's avatar
afc163 committed
123 124 125
    .ant-tabs-ink-bar {
      bottom: auto;
    }
niko's avatar
niko committed
126 127 128
    .ant-tabs-bar {
      border-bottom: none;
    }
niko's avatar
niko committed
129 130
    .ant-tabs-nav-container-scrolling {
      padding-right: 40px;
陈帅's avatar
陈帅 committed
131
      padding-left: 40px;
niko's avatar
niko committed
132
    }
陈帅's avatar
陈帅 committed
133
    .ant-tabs-tab-prev-icon::before {
niko's avatar
niko committed
134 135 136
      position: relative;
      left: 6px;
    }
陈帅's avatar
陈帅 committed
137
    .ant-tabs-tab-next-icon::before {
niko's avatar
niko committed
138 139 140
      position: relative;
      right: 6px;
    }
陈帅's avatar
陈帅 committed
141 142 143
    .ant-tabs-tab-active h4 {
      color: @primary-color;
    }
afc163's avatar
afc163 committed
144 145 146
  }
}

afc163's avatar
afc163 committed
147
.trendText {
偏右's avatar
偏右 committed
148 149 150 151
  margin-left: 8px;
  color: @heading-color;
}

152
@media screen and (max-width: @screen-lg) {
153 154 155
  .salesExtra {
    display: none;
  }
niko's avatar
niko committed
156

157 158 159 160 161 162 163 164 165
  .rankingList {
    li {
      span:first-child {
        margin-right: 8px;
      }
    }
  }
}

afc163's avatar
afc163 committed
166 167 168
@media screen and (max-width: @screen-md) {
  .rankingTitle {
    margin-top: 16px;
169
  }
niko's avatar
niko committed
170

afc163's avatar
afc163 committed
171 172
  .salesCard .salesBar {
    padding: 16px;
niko's avatar
niko committed
173
  }
afc163's avatar
afc163 committed
174 175 176
}

@media screen and (max-width: @screen-sm) {
177
  .salesExtraWrap {
afc163's avatar
afc163 committed
178
    display: none;
179
  }
niko's avatar
niko committed
180

181 182 183 184 185 186 187 188
  .salesCard {
    :global {
      .ant-tabs-content {
        padding-top: 30px;
      }
    }
  }
}