form-picker-popup.wxss
2.88 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
/* 内联 Popup 壳层 — 对齐创建工单,避免 shared 隔离导致页面 .text-center 污染标题 */
/* root-portal 内不可依赖 page 的 --fontSize*,尺寸一律用 rpx */
.picker-popup-shell {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 99999;
transform: translateZ(2px);
}
.picker-popup-shell__bg {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.7);
}
.picker-popup-shell__content {
position: absolute;
left: 0;
bottom: 0;
width: 100%;
display: flex;
flex-direction: column;
overflow: hidden;
background: #fff;
border-radius: 20rpx 20rpx 0 0;
animation: picker-popup-show 0.5s forwards;
box-sizing: border-box;
padding: 0 32rpx;
/* root-portal 内 SearchInput 依赖的 --fontSize*(对齐 app.sass page 变量) */
--fontSize104: 104rpx;
--fontSize72: 72rpx;
--fontSize38: 38rpx;
--fontSize32: 32rpx;
--fontSize28: 28rpx;
--fontSize10: 10rpx;
}
.picker-popup-shell__title {
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
height: 98rpx;
font-size: 32rpx;
color: #333;
border-bottom: 2rpx solid #ebedf0;
}
.picker-popup-shell__search {
flex-shrink: 0;
margin: 0 -32rpx;
padding: 0;
}
.picker-popup-shell__search search-input {
border: none;
}
.picker-popup-shell__slot {
flex: 1;
min-height: 0;
overflow: hidden;
}
.picker-popup-shell__footer {
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: space-between;
padding: 20rpx 0;
box-shadow: none;
}
.picker-popup-shell__footer.is-full {
padding-bottom: 68rpx;
}
.picker-popup-shell__btn {
display: flex;
align-items: center;
justify-content: center;
width: 330rpx;
height: 80rpx;
box-sizing: border-box;
border-radius: 12rpx;
font-size: 32rpx;
box-shadow: none;
}
.picker-popup-shell__btn--cancel {
color: #292d33;
background: #f7f8fa;
}
.picker-popup-shell__btn--confirm {
background: #347bff;
color: #fff;
}
@keyframes picker-popup-show {
0% {
bottom: -100%;
}
100% {
bottom: 0;
}
}
.picker-popup__scroll {
height: 100%;
}
.picker-popup__loading,
.picker-popup__empty {
display: flex;
align-items: center;
justify-content: center;
height: 200rpx;
font-size: 28rpx;
color: #888;
}
.picker-popup__item {
position: relative;
display: flex;
align-items: center;
box-sizing: border-box;
min-height: 88rpx;
padding: 0 32rpx 0 92rpx;
font-size: 28rpx;
color: #333;
border-bottom: 2rpx solid #ebedf0;
}
.picker-popup__item:last-child {
border-bottom: none;
}
.picker-popup__item.is-active {
color: #347bff;
font-weight: 700;
}
.picker-popup__icon {
display: none;
position: absolute;
left: 20rpx;
top: 50%;
width: 32rpx;
height: 32rpx;
transform: translateY(-50%);
}
.picker-popup__item.is-active .picker-popup__icon {
display: block;
}
.picker-popup__icon-img {
width: 32rpx;
height: 32rpx;
}
.picker-popup__label {
flex: 1;
line-height: 40rpx;
}