index.scss 5.81 KB
Newer Older
xuzhenghua committed
1 2 3
html, body, #root {
  height: 100%;
}
xuzhenghua committed
4 5 6 7 8 9 10
.am-accordion.python-study__stage .am-accordion-item .am-accordion-header {
  height: 44px;
  padding-left: 13px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  background-color: #CFDBE5;
xuzhenghua committed
11
  border-radius: 4px;
xuzhenghua committed
12
}
xuzhenghua committed
13 14 15 16 17 18 19 20 21

.am-accordion.python-study__stage .am-accordion-item-active .am-accordion-header{
  border-radius: 4px 4px 0 0;
}

html:not([data-scale]) .am-accordion::before {
  background-color: #F4F5F6;
}

xuzhenghua committed
22 23
.am-accordion.python-study__stage .am-accordion-item {
  margin-top: 15px;
xuzhenghua committed
24 25

  .am-accordion-content {
xuzhenghua committed
26
    padding-bottom: 10px;
xuzhenghua committed
27
    border-radius: 0 0 4px 4px;
xuzhenghua committed
28 29
  }
}
xuzhenghua committed
30 31 32

.am-accordion.python-study__stage {
  .am-accordion-item:first-child {
xuzhenghua committed
33 34 35
    margin-top: 0;
  }
}
xuzhenghua committed
36 37 38 39 40 41 42 43 44 45 46 47

html:not([data-scale]) .am-accordion.python-study__stage .am-accordion-item .am-accordion-content .am-accordion-content-box::after {
  display: none;
}

.am-accordion.python-study__stage .am-accordion-item .am-accordion-header i {
  background-image: url('https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/pythonCourse/h5/subject-icon-arrow.png');
}

.python-study {
  height: 100%;
  background-color: #F4F5F6;
xuzhenghua committed
48
  padding-bottom: 15px;
zhanghaozhe committed
49 50 51 52
  .dist-wrapper{
    background: #fff;
    margin: 20px 10px 30px;
  }
zhanghaozhe committed
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67

  .toapp {
    position: fixed;
    right: 0;
    top: 117px;
    width: 82px;
    height: 32px;
    text-align: center;
    line-height: 32px;
    background: linear-gradient(-90deg, $bg_active 0%, $bg_0078FF 100%);
    border-radius: 16px 0 0 16px;
    font-size: 12px;
    color: $white;
    z-index: 9;
  }
xuzhenghua committed
68 69 70 71 72 73 74 75 76 77 78 79 80
}

.python-study__header {
  margin: 10px 10px 18px;
  border-radius: 5px;
  background-color: #fff;
  overflow: hidden;
}

.python-study__course {
  display: flex;
  align-items: center;
  justify-content: space-between;
FE committed
81
  position: relative;
xuzhenghua committed
82 83 84
  height: 55px;
  padding: 0 12px;
  background-color: #1A9BFC;
FE committed
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108

  &::after {
    content: '';
    position: absolute;
    left: -60px;
    top: 0;
    width: 146px;
    height: 100%;
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-image: url('https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/pythonCourse/pc/python-title-bg-1.png');
  }

  &::before {
    content: '';
    position: absolute;
    right: -60px;
    bottom: -20px;
    width: 106px;
    height: 100%;
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-image: url('https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/pythonCourse/pc/python-title-bg-0.png');
  }
xuzhenghua committed
109 110 111 112 113 114 115 116 117 118 119 120 121
}

.python-study__course-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.python-study__course-contact {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 12px;
xuzhenghua committed
122
  color: rgba(255, 255, 255, .8);
xuzhenghua committed
123 124 125
}

.python-study__progress {
FE committed
126 127 128 129 130
  color: rgba(255,255,255,.8);
}

.python-study__progress {
  height: 66px;
xuzhenghua committed
131 132 133 134 135 136
  padding: 0 12px;
}

.python-study__progress-title {
  font-size: 14px;
  font-weight: 600;
xuzhenghua committed
137
  color: rgba(51, 51, 51, .6);
xuzhenghua committed
138 139 140 141 142 143
  line-height: 39px;
}

.python-study__progress-bar {
  position: relative;
  height: 3px;
xuzhenghua committed
144
  margin: 18px 0 15px;
xuzhenghua committed
145
  border-radius: 2px;
xuzhenghua committed
146
  background-color: rgba(207, 219, 229, .6);
xuzhenghua committed
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176

  i {
    position: absolute;
    width: 10%;
    height: 100%;
    border-radius: 2px;
    background-color: #1A9BFC;
  }
}

.python-study__progress-tip {
  position: absolute;
  top: -26px;
  width: 36px;
  margin-left: -18px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  line-height: 18px;
  background-color: #1A9BFC;

  &::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    margin-left: -4px;
    border: 4px solid;
xuzhenghua committed
177
    border-color: #1A9BFC transparent transparent;
xuzhenghua committed
178 179 180 181
  }
}

.python-study__stage {
xuzhenghua committed
182
  padding: 0 10px 60px;
xuzhenghua committed
183 184
  border-radius: 4px;
  overflow: hidden;
xuzhenghua committed
185
  background-color: #F4F5F6;
xuzhenghua committed
186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204
}

.python-study__pass {
  margin: 0 13px;
  padding-top: 7px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  line-height: 40px;
}

.python-study__pass-tag {
  display: inline-block;
  width: 62px;
  margin-left: 6px;
  border-radius: 11px;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
xuzhenghua committed
205
  color: rgba(26, 155, 252, 1);
xuzhenghua committed
206 207
  text-align: center;
  line-height: 21px;
xuzhenghua committed
208
  background-color: rgba(26, 155, 252, .1);;
xuzhenghua committed
209 210 211 212 213 214 215 216
}

.python-study__subject {
  height: 67px;
  margin: 0 8px 8px;
  padding: 6px;
  border-radius: 4px;
  box-sizing: border-box;
xuzhenghua committed
217
  background-color: rgba(247, 248, 249, 1);
xuzhenghua committed
218
  &[data-status="lock"] {
xuzhenghua committed
219
    background-color: rgba(247, 248, 249, .6);
xuzhenghua committed
220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251
  }
}

.python-study__subject-icon {
  float: left;
  width: 55px;
  height: 55px;
  border-radius: 4px;
  background-color: #fff;
  overflow: hidden;
}

.python-study__subject-status {
  position: absolute;
  right: 17px;
  width: 21px;
  height: 21px;
  background-size: cover;

  &[data-status="complete"] {
    background-image: url('https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/pythonCourse/h5/subject-icon-0.png');
  }

  &[data-status="lock"] {
    background-image: url('https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/pythonCourse/h5/subject-icon-1.png');
  }
}

.python-study__subject-content {
  height: 100%;
  margin-left: 55px;
  padding: 0 33px 0 12px;
xuzhenghua committed
252
  position: relative;
xuzhenghua committed
253 254 255
}

.python-study__subject-title {
xuzhenghua committed
256 257
  max-width: 220px;
  width: 228px;
FE committed
258 259 260
}

.python-study__subject-title {
xuzhenghua committed
261 262 263 264 265 266 267 268 269 270 271 272 273 274
  font-size: 14px;
  color: #333;
  line-height: 18px;

  &[data-status="lock"] {
    color: #525C65;
  }
}

.python-study__subject-tag {
  display: inline-block;
  padding: 0 4px;
  border-radius: 2px;
  font-size: 12px;
xuzhenghua committed
275
  color: #525C65;
xuzhenghua committed
276
  line-height: 18px;
xuzhenghua committed
277
  background-color: rgba(82, 92, 101, .1);
xuzhenghua committed
278 279
  position: absolute;
  bottom: 0;
xuzhenghua committed
280 281 282 283 284 285 286
}

.python-study__button {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 50px;
xuzhenghua committed
287
  line-height: 50px;
xuzhenghua committed
288 289 290 291 292 293 294
  border-style: none;
  box-sizing: border-box;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  background-color: #1A9BFC;
xuzhenghua committed
295
  z-index: 1;
xuzhenghua committed
296 297 298 299
}

.python-study__over {
  background-color: #ccc;
xuzhenghua committed
300
}