index.scss 4.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;
xuzhenghua committed
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
}

.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;
  height: 55px;
  padding: 0 12px;
  background-color: #1A9BFC;
}

.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
78
  color: rgba(255, 255, 255, .8);
xuzhenghua committed
79 80 81
}

.python-study__progress {
FE committed
82 83 84 85 86
  color: rgba(255,255,255,.8);
}

.python-study__progress {
  height: 66px;
xuzhenghua committed
87 88 89 90 91 92
  padding: 0 12px;
}

.python-study__progress-title {
  font-size: 14px;
  font-weight: 600;
xuzhenghua committed
93
  color: rgba(51, 51, 51, .6);
xuzhenghua committed
94 95 96 97 98 99
  line-height: 39px;
}

.python-study__progress-bar {
  position: relative;
  height: 3px;
xuzhenghua committed
100
  margin: 18px 0 15px;
xuzhenghua committed
101
  border-radius: 2px;
xuzhenghua committed
102
  background-color: rgba(207, 219, 229, .6);
xuzhenghua committed
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 128 129 130 131 132

  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
133
    border-color: #1A9BFC transparent transparent;
xuzhenghua committed
134 135 136 137
  }
}

.python-study__stage {
xuzhenghua committed
138
  padding: 0 10px 60px;
xuzhenghua committed
139 140
  border-radius: 4px;
  overflow: hidden;
xuzhenghua committed
141
  background-color: #F4F5F6;
xuzhenghua committed
142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160
}

.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
161
  color: rgba(26, 155, 252, 1);
xuzhenghua committed
162 163
  text-align: center;
  line-height: 21px;
xuzhenghua committed
164
  background-color: rgba(26, 155, 252, .1);;
xuzhenghua committed
165 166 167 168 169 170 171 172
}

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

.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
208
  position: relative;
xuzhenghua committed
209 210 211
}

.python-study__subject-title {
xuzhenghua committed
212 213
  max-width: 220px;
  width: 228px;
FE committed
214 215 216
}

.python-study__subject-title {
xuzhenghua committed
217 218 219 220 221 222 223 224 225 226 227 228 229 230
  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
231
  color: #525C65;
xuzhenghua committed
232
  line-height: 18px;
xuzhenghua committed
233
  background-color: rgba(82, 92, 101, .1);
xuzhenghua committed
234 235
  position: absolute;
  bottom: 0;
xuzhenghua committed
236 237 238 239 240 241 242
}

.python-study__button {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 50px;
xuzhenghua committed
243
  line-height: 50px;
xuzhenghua committed
244 245 246 247 248 249 250
  border-style: none;
  box-sizing: border-box;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  background-color: #1A9BFC;
xuzhenghua committed
251
  z-index: 1;
xuzhenghua committed
252 253 254 255
}

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