myCourse.sass
2.31 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
/* packageStudyCenter/pages/myCourse/myCourse.wxss */
page {
background: #F7F8FA;
}
.container {
height: 100vh;
.top-box {
display: flex;
align-items: center;
justify-content: space-between;
padding: var(--fontSize24) var(--fontSize28);
.tab-scroll {
width: 100%;
white-space: nowrap;
}
.tab-box {
display: inline-flex;
gap: var(--fontSize16);
.tab-item {
text-align: center;
flex: 0 0 auto;
white-space: nowrap;
padding: 0 var(--fontSize24);
height: var(--fontSize72);
line-height: var(--fontSize72);
border-radius: var(--fontSize16);
opacity: 1;
background: #ffffff;
backdrop-filter: blur(var(--fontSize12));
color: #666666;
font-size: var(--fontSize28);
&.active {
color: #FFFFFF;
background: #2c66f7;
font-weight: 500;
box-shadow: var(--fontSize4) var(--fontSize8) var(--fontSize16) 0 #81a3d659;
}
}
}
.count-box {
color: #999EA8;
font-size: var(--fontSize26);
}
}
.tips-box {
border-radius: var(--fontSize8);
background: #fef5ea;
position: relative;
margin-bottom: var(--fontSize28);
.icon {
position: absolute;
top: var(--fontSize18);
left: var(--fontSize16);
width: var(--fontSize28);
height: var(--fontSize28);
}
.tips {
padding: var(--fontSize16) var(--fontSize16) var(--fontSize16) var(--fontSize52);
color: #FF9D0A;
font-size: var(--fontSize24);
font-weight: 500;
}
}
.list-scroll {
.list-container {
max-height: none; /* 确保不被限制 */
height: auto;
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: var(--fontSize16);
padding: 0 var(--fontSize28) var(--fontSize32);
box-sizing: border-box;
}
}
.nothing {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
flex-direction: column;
margin-top: 270rpx;
font-size: var(--fontSize24);
color: #999999;
.icon {
width: var(--fontSize128);
height: var(--fontSize80);
margin-bottom: var(--fontSize8);
}
}
.end-text {
width: 100%;
text-align: center;
padding-bottom: var(--fontSize36);
color: #999999;
font-size: var(--fontSize24);
}
}