RecommendCourse.sass
1.62 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
/* packageStudyCenter/pages/myTask/components/RecommendCourse/RecommendCourse.wxss */
.recommend-course {
height: calc(100% - 100rpx);
background: #FFFFFF;
}
.recommend-course-list {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: var(--fontSize32);
padding: var(--fontSize24) var(--fontSize28);
.recommend-course-item {
width: 100%;
height: var(--fontSize338);
box-shadow: 0 var(--fontSize8) var(--fontSize24) 0 #2a61eb1a;
border-radius: var(--fontSize24);
.recommend-course-item-img {
width: 100%;
height: var(--fontSize180);
border-radius: var(--fontSize24) var(--fontSize24) 0 0;
}
.recommend-course-content {
padding: var(--fontSize24) var(--fontSize16);
.recommend-course-item-title {
font-size: var(--fontSize28);
color: #292D33;
font-weight: 500;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
word-break: break-all;
margin-bottom: 16rpx;
height: calc(2 * 1.2em);
line-height: 1.2;
}
.recommend-course-item-text {
font-size: 24rpx;
color: #999EA8;
}
}
}
}
.nothing {
width: 100%;
flex-direction: column;
margin-top: 380rpx;
font-size: var(--fontSize24);
color: #999999;
}
.nothing .icon {
width: var(--fontSize128);
height: var(--fontSize80);
margin-bottom: var(--fontSize8);
}
.end-text {
color: #999;
text-align: center;
padding: 30rpx 0;
font-size: 24rpx;
}
.flex {
display: flex;
align-items: center;
justify-content: center;
}