index.scss 6.27 KB
Newer Older
zhanghaozhe committed
1 2 3
html, body, #root {
  height: 100%;
}
xuzhenghua committed
4

zhanghaozhe committed
5 6 7 8 9 10 11 12 13 14
.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;
  border-radius: 4px;
}

xuzhenghua committed
15
.am-accordion.python-study__stage .am-accordion-item-active .am-accordion-header {
zhanghaozhe committed
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
  border-radius: 4px 4px 0 0;
}

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

.am-accordion.python-study__stage .am-accordion-item {
  margin-top: 15px;

  .am-accordion-content {
    padding-bottom: 10px;
    border-radius: 0 0 4px 4px;
  }
}

.am-accordion.python-study__stage {
  .am-accordion-item:first-child {
    margin-top: 0;
  }
}

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;
  padding-bottom: 15px;
zhanghaozhe committed
50

xuzhenghua committed
51
  .dist-wrapper {
zhanghaozhe committed
52 53 54
    background: #fff;
    margin: 20px 10px 30px;
  }
zhanghaozhe committed
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69

  .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;
  }
zhanghaozhe committed
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
}

.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;
  position: relative;
  height: 55px;
  padding: 0 12px;
zhanghaozhe committed
86
  background-color: #4B41FF;
zhanghaozhe committed
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127

  &::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');
  }
}

.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;
  color: rgba(255, 255, 255, .8);
}

.python-study__progress {
xuzhenghua committed
128
  color: rgba(255, 255, 255, .8);
zhanghaozhe committed
129 130 131 132 133 134 135 136 137 138
}

.python-study__progress {
  height: 66px;
  padding: 0 12px;
}

.python-study__progress-title {
  font-size: 14px;
  font-weight: 600;
zhanghaozhe committed
139
  color: #333333;
zhanghaozhe committed
140
  line-height: 39px;
xuzhenghua committed
141 142

  & > span {
zhanghaozhe committed
143
    color: #999;
xuzhenghua committed
144 145

    span {
zhanghaozhe committed
146 147 148
      color: #09f;
    }
  }
zhanghaozhe committed
149 150 151 152 153 154
}

.python-study__progress-bar {
  position: relative;
  height: 3px;
  margin: 18px 0 15px;
zhanghaozhe committed
155
  width: 98%;
zhanghaozhe committed
156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228
  border-radius: 2px;
  background-color: rgba(207, 219, 229, .6);

  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;
    border-color: #1A9BFC transparent transparent;
  }
}

.python-study__stage {
  padding: 0 10px 60px;
  border-radius: 4px;
  overflow: hidden;
  background-color: #F4F5F6;
}

.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;
  color: rgba(26, 155, 252, 1);
  text-align: center;
  line-height: 21px;
  background-color: rgba(26, 155, 252, .1);;
}

.python-study__subject {
  height: 67px;
  margin: 0 8px 8px;
  padding: 6px;
  border-radius: 4px;
  box-sizing: border-box;
  background-color: rgba(247, 248, 249, 1);
xuzhenghua committed
229

zhanghaozhe committed
230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311
  &[data-status="lock"] {
    background-color: rgba(247, 248, 249, .6);
  }
}

.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;
  position: relative;
}

.python-study__subject-title {
  max-width: 220px;
  width: 228px;
}

.python-study__subject-title {
  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;
  color: #525C65;
  line-height: 18px;
  background-color: rgba(82, 92, 101, .1);
  position: absolute;
  bottom: 0;
}

.python-study__button {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 50px;
  line-height: 50px;
  border-style: none;
  box-sizing: border-box;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  background-color: #1A9BFC;
  z-index: 1;
}

.python-study__over {
  background-color: #ccc;
xuzhenghua committed
312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333
}

.study-end {
  width: 100%;
  background-color: #F4F5F6;
  padding-top: 15px;
  margin-bottom: -10px;
  text-align: right;
  margin-top: 20px;

  .tobuy {
    text-align: center;
    display: inline-block;
    width: 84px;
    height: 30px;
    line-height: 30px;
    background-color: #FC262D;
    border-radius: 15px;
    font-size:16px;
    color: #fff;
    margin-left: 10px;
  }
zhanghaozhe committed
334
}