listScreen.sass
2.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
/* pages/tab/learningCenter/components/listScreen/listScreen.wxss */
.confirm-box {
position: fixed;
top: 0;
z-index: 10;
height: 100vh;
width: 100%;
box-sizing: border-box;
background-color: #fff;
animation: show-confirm-box .5s forwards;
.main {
box-sizing: border-box;
}
}
@keyframes show-confirm-box {
0%{
right: -100%;
}
100%{
right: 0;
}
}
.box {
margin: 0 32rpx;
.title {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 32rpx;
font-weight: 500;
color: #292D33;
padding: 34rpx 0 30rpx;
position: sticky;
left: 0;
top: 0;
background: #fff;
z-index: 2;
.title-left{
display: flex;
align-items: flex-end;
}
.title-tips{
font-size: 22rpx;
font-weight: 400;
color: #757980;
margin-left: 8rpx;
}
.collapse-btn{
width: 48rpx;
height: 48rpx;
}
.collapse-btn.rotate-180{
transform: rotate(180deg);
}
}
.list-box {
display: flex;
border-bottom: 2rpx solid rgba(195, 195, 195, .3);
flex-wrap: wrap;
padding-bottom: 20rpx;
.item {
width: calc(234 / 750 * 100%);
min-height: 68rpx;
border-radius: 4rpx;
box-sizing: border-box;
border: 2rpx solid transparent;
padding: 16rpx 33rpx;
flex-wrap: wrap;
font-size: 24rpx;
text-align: center;
background-color: #F7F8FA;
color: #292D33;
transition: all .2s;
margin: 0 calc(20 / 750 * 100%) calc(20 / 750 * 100%) 0;
.text-item{
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
&.active {
background: rgba(53, 130, 238, 0.08);
border: 2rpx solid #2C66F7;
color: #2C66F7;
}
}
.item.custom-time:last-child{
margin-right: 0;
margin-left: 20rpx;
}
.item:nth-of-type(3n+3) {
margin-right: 0;
}
}
}
.btn-box {
position: sticky;
padding: 10rpx 32rpx;
display: flex;
align-items: center;
justify-content: space-between;
font-size: 32rpx;
bottom: 0;
left: 0;
width: 100%;
box-sizing: border-box;
z-index: 9;
background-color: #fff;
.btn {
border-radius: 12rpx;
box-sizing: border-box;
height: 80rpx;
}
.clear {
width: 186rpx;
background: #F4F5F7;
color: #292D33;
}
.done {
background: #2C66F7;
color: #fff;
width: 480rpx;
}
}
.isFullSucreen-btn {
padding-bottom: constant(safe-area-inset-bottom) !important;
padding-bottom: env(safe-area-inset-bottom) !important;
}
.text-center {
display: flex;
align-items: center;
justify-content: center;
}
.text-hide {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}