style.less 2.9 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 {
陈帅's avatar
陈帅 committed
6
    margin-left: 16px;
nikogu's avatar
nikogu committed
7
    color: @text-color-secondary;
8
    cursor: pointer;
陈帅's avatar
陈帅 committed
9
    transition: color 0.32s;
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
  li {
    .clearfix();
陈帅's avatar
陈帅 committed
22

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

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

.salesCard {
74
  .salesBar {
niko's avatar
niko committed
75
    padding: 0 0 32px 32px;
76 77
  }
  .salesRank {
niko's avatar
niko committed
78
    padding: 0 32px 32px 72px;
79
  }
80 81
  :global {
    .ant-tabs-bar {
niko's avatar
niko committed
82
      padding-left: 16px;
83 84 85 86 87 88 89 90 91 92
      .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
93 94 95
    .ant-card-head {
      position: relative;
    }
陈帅's avatar
陈帅 committed
96 97 98
    .ant-card-head-title {
      align-items: normal;
    }
niko's avatar
niko committed
99 100
  }
}
niko's avatar
niko committed
101

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

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

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

afc163's avatar
afc163 committed
138
.trendText {
偏右's avatar
偏右 committed
139 140 141 142
  margin-left: 8px;
  color: @heading-color;
}

143
@media screen and (max-width: @screen-lg) {
144 145 146
  .salesExtra {
    display: none;
  }
niko's avatar
niko committed
147

148 149 150 151 152 153 154 155 156
  .rankingList {
    li {
      span:first-child {
        margin-right: 8px;
      }
    }
  }
}

afc163's avatar
afc163 committed
157 158 159
@media screen and (max-width: @screen-md) {
  .rankingTitle {
    margin-top: 16px;
160
  }
niko's avatar
niko committed
161

afc163's avatar
afc163 committed
162 163
  .salesCard .salesBar {
    padding: 16px;
niko's avatar
niko committed
164
  }
afc163's avatar
afc163 committed
165 166 167
}

@media screen and (max-width: @screen-sm) {
168
  .salesExtraWrap {
afc163's avatar
afc163 committed
169
    display: none;
170
  }
niko's avatar
niko committed
171

172 173 174 175 176 177 178 179
  .salesCard {
    :global {
      .ant-tabs-content {
        padding-top: 30px;
      }
    }
  }
}