longCourse.sass
6.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
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
78
79
80
81
82
83
84
85
86
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
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
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
229
230
231
232
233
234
235
236
237
238
239
/* packageStudyCenter/pages/longCourse/longCourse.wxss */
.detail-box {
position: relative;
width: 100vw;
height: 100vh;
box-sizing: border-box;
padding: var(--fontSize24) var(--fontSize28);
.course-detail-box {
position: relative;
border-radius: var(--fontSize24);
overflow: hidden;
background: #ffffff;
box-shadow: 0 var(--fontSize4) var(--fontSize16) 0 #2a61eb1a;
.course-detail-img-box {
position: relative;
width: 100%;
.course-detail-img {
width: 100%;
height: var(--fontSize264);
}
.time-limit-tag {
position: absolute;
top: 0;
left: 0;
width: 122rpx;
height: 48rpx;
background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/usedCar/limit-page.png');
background-size: cover;
background-repeat: no-repeat;
background-position: center;
z-index: 1;
color: #fff;
}
}
.course-detail-content {
padding: var(--fontSize24) var(--fontSize28);
.course-title {
font-size: var(--fontSize34);
color: #292D33;
margin-bottom: var(--fontSize8);
font-weight: 500;
}
.course-info {
position: relative;
display: flex;
align-items: center;
font-size: var(--fontSize28);
&:not(:last-child) {
margin-bottom: var(--fontSize8);
}
.info-label {
width: var(--fontSize112);
color: #999EA8;
margin-right: var(--fontSize24);
}
.info-value {
color: #666666;
}
.green {
display: flex;
align-items: center;
color: #2CCA74;
.dot-value {
width: var(--fontSize12);
height: var(--fontSize12);
border-radius: 50%;
background: #2CCA74;
margin-right: var(--fontSize8);
}
}
.info-progress {
width: var(--fontSize410);
height: var(--fontSize12);
background: linear-gradient(128.8deg, rgba(117, 188, 255, .35) 0%, rgba(44, 102, 247, .35) 100%);
border-radius: var(--fontSize8);
.info-progress-text {
color: #3B73FF;
font-size: var(--fontSize28);
position: absolute;
top: 50%;
right: 0;
transform: translateY(-50%);
}
.info-progress-bar {
height: 100%;
background: linear-gradient(128.8deg, #75bcff 0%, #2c66f7 100%);
border-radius: var(--fontSize8);
}
}
}
}
.time-limit-countdown {
position: absolute;
left: var(--fontSize28);
top: var(--fontSize202);
line-height: var(--fontSize48);
display: flex;
align-items: center;
justify-content: center;
font-size: var(--fontSize28);
z-index: 1;
.countdown-num {
display: flex;
flex-basis: 0;
color: #B87A11;
box-sizing: border-box;
width: var(--fontSize48);
height: var(--fontSize48);
line-height: var(--fontSize48);
border-radius: var(--fontSize8);
background: #b87a1126;
margin: 0 var(--fontSize8);
line-height: normal;
padding: var(--fontSize4) var(--fontSize8);
}
.countdown-separator {
color: #B87A11;
}
.countdown-label,
.countdown-unit {
line-height: var(--fontSize48);
color: #B87A11;
margin: 0 var(--fontSize4);
}
}
}
.course-list-box-wrapper {
position: relative;
width: 100%;
height: calc(100vh - 580rpx);
background-color: #fff;
margin-top: var(--fontSize20);
}
.course-list-box-title {
font-size: var(--fontSize34);
color: #292D33;
font-weight: 500;
padding: var(--fontSize24) var(--fontSize28) var(--fontSize24) 0;
}
.course-list-box {
padding-bottom: var(--fontSize32);
.course-list-item-wrapper {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: var(--fontSize16);
.course-list-item {
position: relative;
height: var(--fontSize442);
border-radius: var(--fontSize24);
background: #ffffff;
font-size: 0;
box-shadow: 0 var(--fontSize4) var(--fontSize16) 0 #2a61eb1a;
overflow: hidden;
.course-img {
width: 100%;
height: var(--fontSize180);
border-radius: var(--fontSize24) var(--fontSize24) 0 0;
}
.item-content {
padding: var(--fontSize16) var(--fontSize12);
.item-title {
font-size: var(--fontSize28);
color: #292D33;
font-weight: 500;
margin-bottom: var(--fontSize8);
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.item-info {
display: flex;
margin-bottom: var(--fontSize4);
font-size: var(--fontSize24);
height: var(--fontSize36);
line-height: var(--fontSize36);
.item-info-label {
flex-shrink: 0;
width: var(--fontSize96);
color: #999EA8;
margin-right: var(--fontSize24);
}
.item-info-value {
color: #666666;
display: flex;
align-items: center;
justify-content: center;
.dot-value {
flex-shrink: 0;
width: var(--fontSize12);
height: var(--fontSize12);
border-radius: 50%;
margin-right: var(--fontSize8);
}
.green {
background: #2CCA74;
color: #2CCA74;
}
.red {
background: #EB4E4E;
color: #EB4E4E;
}
.orange {
background: #F59619;
color: #F59619;
}
}
.green {
color: #2CCA74;
}
.red {
color: #EB4E4E;
}
.orange {
color: #F59619;
}
}
.item-btn {
margin-top: var(--fontSize8);
width: var(--fontSize307);
height: var(--fontSize56);
border-radius: var(--fontSize24);
background: #F1F7FE;
font-size: var(--fontSize26);
color: #2C66F7;
text-align: center;
line-height: var(--fontSize56);
}
.completed-bg {
width: var(--fontSize112);
height: var(--fontSize112);
position: absolute;
bottom: var(--fontSize20);
right: var(--fontSize16);
}
}
}
}
}
}