index.scss 5.44 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;
xuzhenghua committed
49 50 51 52 53 54 55 56 57 58 59 60 61
}

.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
62
  position: relative;
xuzhenghua committed
63 64 65
  height: 55px;
  padding: 0 12px;
  background-color: #1A9BFC;
FE committed
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89

  &::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
90 91 92 93 94 95 96 97 98 99 100 101 102
}

.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
103
  color: rgba(255, 255, 255, .8);
xuzhenghua committed
104 105 106
}

.python-study__progress {
FE committed
107 108 109 110 111
  color: rgba(255,255,255,.8);
}

.python-study__progress {
  height: 66px;
xuzhenghua committed
112 113 114 115 116 117
  padding: 0 12px;
}

.python-study__progress-title {
  font-size: 14px;
  font-weight: 600;
xuzhenghua committed
118
  color: rgba(51, 51, 51, .6);
xuzhenghua committed
119 120 121 122 123 124
  line-height: 39px;
}

.python-study__progress-bar {
  position: relative;
  height: 3px;
xuzhenghua committed
125
  margin: 18px 0 15px;
xuzhenghua committed
126
  border-radius: 2px;
xuzhenghua committed
127
  background-color: rgba(207, 219, 229, .6);
xuzhenghua committed
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157

  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
158
    border-color: #1A9BFC transparent transparent;
xuzhenghua committed
159 160 161 162
  }
}

.python-study__stage {
xuzhenghua committed
163
  padding: 0 10px 60px;
xuzhenghua committed
164 165
  border-radius: 4px;
  overflow: hidden;
xuzhenghua committed
166
  background-color: #F4F5F6;
xuzhenghua committed
167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185
}

.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
186
  color: rgba(26, 155, 252, 1);
xuzhenghua committed
187 188
  text-align: center;
  line-height: 21px;
xuzhenghua committed
189
  background-color: rgba(26, 155, 252, .1);;
xuzhenghua committed
190 191 192 193 194 195 196 197
}

.python-study__subject {
  height: 67px;
  margin: 0 8px 8px;
  padding: 6px;
  border-radius: 4px;
  box-sizing: border-box;
xuzhenghua committed
198
  background-color: rgba(247, 248, 249, 1);
xuzhenghua committed
199
  &[data-status="lock"] {
xuzhenghua committed
200
    background-color: rgba(247, 248, 249, .6);
xuzhenghua committed
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 229 230 231 232
  }
}

.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
233
  position: relative;
xuzhenghua committed
234 235 236
}

.python-study__subject-title {
xuzhenghua committed
237 238
  max-width: 220px;
  width: 228px;
FE committed
239 240 241
}

.python-study__subject-title {
xuzhenghua committed
242 243 244 245 246 247 248 249 250 251 252 253 254 255
  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
256
  color: #525C65;
xuzhenghua committed
257
  line-height: 18px;
xuzhenghua committed
258
  background-color: rgba(82, 92, 101, .1);
xuzhenghua committed
259 260
  position: absolute;
  bottom: 0;
xuzhenghua committed
261 262 263 264 265 266 267
}

.python-study__button {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 50px;
xuzhenghua committed
268
  line-height: 50px;
xuzhenghua committed
269 270 271 272 273 274 275
  border-style: none;
  box-sizing: border-box;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  background-color: #1A9BFC;
xuzhenghua committed
276
  z-index: 1;
xuzhenghua committed
277 278 279 280
}

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