forked from zhouatie/plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpickerView.css
166 lines (165 loc) · 3.37 KB
/
pickerView.css
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
@keyframes slideUp {
0% {
bottom:-40%;
}
100% {
bottom:0;
}
}
@-moz-keyframes slideUp {
0% {
bottom:-40%;
}
100% {
bottom:0;
}
}
@-webkit-keyframes slideUp {
0% {
bottom:-40%;
}
100% {
bottom:0;
}
}
@-o-keyframes slideUp {
0% {
bottom:-40%;
}
100% {
bottom:0;
}
}
.pickerView-wrap * {
margin:0;
padding:0;
list-style: none;
-webkit-box-sizing: border-box;
-ms-box-sizing:border-box;
-moz-box-sizing:border-box;
box-sizing: border-box;
font-size: 0;
}
.pickerView-wrap {
position: fixed;
left:0;
top:0;
height:100%;
width:100%;
}
.pickerView-mask {
height:100%;
width:100%;
background:rgba(0,0,0,.4);
}
.pickerView-box {
height:40%;
width:100%;
position: absolute;
left:0;
bottom:0;
background: #fff;
padding-top:45px;
animation: slideUp 0.3s;
}
.pickerView-box-header {
text-align: center;
height:45px;
border-bottom:1px solid #ddd;
width:100%;
padding:0 50px;
position: absolute;
left:0;
top:0;
z-index: 10;
background: #fff;
}
.pickerView-box-header>div {
line-height: 44px;
font-size: 16px;
}
.pickerView-box-header-btn {
height:100%;
width:50px;
position: absolute;
top:0;
color:#108ee9;
}
.pickerView-box-header-left {
left:0;
}
.pickerView-box-header-right {
right:0;
}
.pickerView-box-header-title {
text-align: center;
height:100%;
width:100%;
overflow:hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.pickerView-box-content-wrap {
height:100%;
width:100%;
overflow: hidden;
position: relative;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
}
.pickerView-box-content {
-webkit-box-flex: 1;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
position: relative;
}
.pickerView-box-content-mask {
position: absolute;
left: 0;
bottom:0;
height: 100%;
margin: 0 auto;
width: 100%;
z-index: 3;
background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.6)), -webkit-linear-gradient(bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.6));
background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.95)), to(rgba(255, 255, 255, 0.6))), -webkit-gradient(linear, left bottom, left top, from(rgba(255, 255, 255, 0.95)), to(rgba(255, 255, 255, 0.6)));
background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.6)), linear-gradient(to top, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.6));
background-position: top, bottom;
background-size: 100% 102px;
background-repeat: no-repeat;
}
.pickerView-box-content-indicator {
-webkit-box-sizing: border-box;
box-sizing: border-box;
width: 100%;
height: 34px;
position: absolute;
left: 0;
top: 102px;
z-index: 3;
border-top: 1PX solid #ddd;
border-bottom: 1PX solid #ddd;
}
.pickerView-items {
position: absolute;
left: 0;
top: 0;
width: 100%;
z-index: 1;
padding: 102px 0;
padding: 102px 0px;
}
.pickerView-item {
touch-action: manipulation;
text-align: center;
font-size: 16px;
height: 34px;
line-height: 34px;
color: #000;
overflow:hidden;
white-space: nowrap;
text-overflow: ellipsis;
}