popoPicker.css 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411
  1. .p-scroll{
  2. position: fixed;
  3. bottom: 0;
  4. left: 0;
  5. width: 100%;
  6. height: 100%;
  7. font-family: -apple-system,Helvetica Neue,Helvetica,Arial,sans-serif;
  8. -webkit-tap-highlight-color: rgba(0,0,0,0);
  9. font-size: 14px;
  10. z-index: 9;
  11. }
  12. .p-select-mask{
  13. position: absolute;
  14. top: 0;
  15. left: 0;
  16. width: 100%;
  17. height: 100%;
  18. cursor: pointer;
  19. background: rgba(0,0,0,.7);
  20. -webkit-animation: p-scroll-fade-in .3s ease both;
  21. }
  22. .p-scroll.hide .p-select-mask{
  23. -webkit-animation: p-scroll-fade-out .3s ease both;
  24. }
  25. .p-select-wrap{
  26. position: absolute;
  27. top: 0;
  28. left: 0;
  29. width: 100%;
  30. height: 100%;
  31. display: -webkit-flex;
  32. -webkit-align-items: center;
  33. -webkit-justify-content: center;
  34. }
  35. .p-select-main{
  36. display: -webkit-flex;
  37. -webkit-flex-direction: column;
  38. position: absolute;
  39. bottom: 0;
  40. left: 0;
  41. right: 0;
  42. z-index: 2;
  43. background: #fff;
  44. box-shadow: 0 -5px 10px rgba(0,0,0,.1);
  45. -webkit-animation: p-scroll-in .3s ease both;
  46. }
  47. .p-scroll.hide .p-select-main{
  48. -webkit-animation: p-scroll-out .3s ease both;
  49. }
  50. @-webkit-keyframes p-scroll-in {
  51. 0%{ -webkit-transform: translate3d(0,100%,0);}
  52. 100%{ -webkit-transform: translate3d(0,0,0);}
  53. }
  54. @-webkit-keyframes p-scroll-out {
  55. 0%{ -webkit-transform: translate3d(0,0,0);}
  56. 100%{ -webkit-transform: translate3d(0,100%,0);}
  57. }
  58. @-webkit-keyframes p-scroll-fade-in {
  59. 0%{ opacity: 0;}
  60. 100%{ opacity: 1;}
  61. }
  62. @-webkit-keyframes p-scroll-fade-out {
  63. 0%{ opacity: 1;}
  64. 100%{ opacity: 0;}
  65. }
  66. .p-select-head{
  67. position: relative;
  68. height: 45px;
  69. line-height: 45px;
  70. display: -webkit-flex;
  71. -webkit-align-items: center;
  72. -webkit-justify-content: space-between;
  73. background: #f2f2f2;
  74. z-index: 5;
  75. }
  76. .p-select-head:before{
  77. content: "";
  78. position: absolute;
  79. bottom: 0;
  80. left: 0;
  81. width: 100%;
  82. height: 1px;
  83. -webkit-transform: scaleY(.5);
  84. background-color: #d5d5d6;
  85. }
  86. .p-select-title{
  87. -webkit-flex: 1;
  88. font-size: 18px;
  89. color: #333;
  90. text-align: center;
  91. }
  92. .p-select-head a{
  93. display: block;
  94. padding: 0 15px;
  95. height: 45px;
  96. line-height: 45px;
  97. font-size: 15px;
  98. text-decoration: none;
  99. color: #007aff;
  100. }
  101. .p-select-foot{
  102. position: relative;
  103. display: -webkit-flex;
  104. -webkit-align-items: center;
  105. background-color: #fff;
  106. }
  107. .p-select-foot:before{
  108. content: "";
  109. position: absolute;
  110. top: 0;
  111. left: 0;
  112. width: 100%;
  113. height: 1px;
  114. background-color: #d5d5d6;
  115. -webkit-transform: scaleY(0.5);
  116. }
  117. .p-select-foot a{
  118. position: relative;
  119. display: block;
  120. height: 45px;
  121. line-height: 45px;
  122. font-size: 18px;
  123. text-decoration: none;
  124. color: #007aff;
  125. -webkit-flex: 1;
  126. text-align: center;
  127. }
  128. .p-select-foot a:before{
  129. content: "";
  130. position: absolute;
  131. top: 0;
  132. right: 0;
  133. height: 100%;
  134. width: 1px;
  135. background-color: #d5d5d6;
  136. -webkit-transform: scaleX(0.5);
  137. }
  138. .p-select-foot a:last-child:before{
  139. display: none;
  140. }
  141. .p-select-body{
  142. position: relative;
  143. margin: 20px auto;
  144. width: 100%;
  145. display: -webkit-flex;
  146. -webkit-align-items: center;
  147. -webkit-justify-content: center;
  148. overflow: hidden;
  149. box-sizing: border-box;
  150. }
  151. .p-select-body ul{
  152. list-style-type: none;
  153. }
  154. .p-select-item {
  155. position: relative;
  156. display: -webkit-flex;
  157. -webkit-align-items: center;
  158. height: 170px;
  159. text-align: center;
  160. /* overflow: hidden; */
  161. }
  162. .p-select-col{
  163. height: 100%;
  164. position: relative;
  165. }
  166. .p-select-ul {
  167. margin: 0;
  168. padding: 0;
  169. position: relative;
  170. }
  171. .p-select-list,
  172. .p-select-wheel,
  173. .p-select-line{
  174. position: absolute;
  175. top: 50%;
  176. left: 0;
  177. right: 0;
  178. height: 34px;
  179. margin-top: -17px;
  180. box-sizing: border-box;
  181. -webkit-transition: all .3s;
  182. }
  183. .p-select-wheel {
  184. padding: 0;
  185. -webkit-transform-style: preserve-3d;
  186. height: 34px;
  187. z-index: 1;
  188. }
  189. .p-select-list{
  190. position: relative;
  191. top: 68px;
  192. margin-top: 0;
  193. z-index: 45;
  194. }
  195. .p-select-line {
  196. height: 34px;
  197. z-index: 100;
  198. pointer-events: none;
  199. box-sizing: border-box;
  200. }
  201. .p-select-line:before,
  202. .p-select-line:after{
  203. content: "";
  204. position: absolute;
  205. top: 0;
  206. left: 0;
  207. right: 0;
  208. height: 1px;
  209. -webkit-transform: scaleY(.5);
  210. background: #f3f3f3;
  211. }
  212. .p-select-line:after{
  213. top: auto;
  214. bottom: 0;
  215. }
  216. .p-select-label{
  217. margin: 0 -5px;
  218. min-width: 10px;
  219. display: -webkit-flex;
  220. -webkit-align-items: center;
  221. -webkit-justify-content: center;
  222. box-sizing: border-box;
  223. white-space: nowrap;
  224. z-index: 100;
  225. color: #666;
  226. }
  227. .p-select-label span{
  228. display: block;
  229. position: relative;
  230. top: -3px;
  231. font-size: 22px;
  232. font-weight: normal;
  233. text-align: center;
  234. z-index: 50;
  235. }
  236. .p-select-ul>li,
  237. .p-select-wheel>li{
  238. white-space: nowrap;
  239. overflow: hidden;
  240. text-overflow: ellipsis;
  241. width: 100%;
  242. padding: 0 10px;
  243. line-height: 34px;
  244. font-size: 15px;
  245. box-sizing: border-box;
  246. cursor: pointer;
  247. -webkit-user-select: none;
  248. text-align: center;
  249. }
  250. .p-select-ul>li{
  251. color: #666;
  252. font-size: 18px;
  253. }
  254. .p-select-wheel>li {
  255. -webkit-backface-visibility: hidden;
  256. position: absolute;
  257. top: 0;
  258. color: #999;
  259. }
  260. .p-select-wheel>li:active{
  261. /* opacity: .7;*/
  262. }
  263. .p-select-wheel>li.visible{
  264. display: list-item;
  265. }
  266. .p-select-time-split-1{
  267. position: relative;
  268. top: 0;
  269. right: 0;
  270. bottom: 15px;
  271. margin: 0 15px;
  272. width: 1px;
  273. height: 160px;
  274. -webkit-transform: scaleX(.7) translateZ(200px);
  275. background: -webkit-linear-gradient(90deg,#fff,#ccc 15%,#ccc 85%,#fff);
  276. }
  277. /*is3d*/
  278. .p-select-wrap.p-3d .p-select-body{
  279. -webkit-perspective: 1200;
  280. }
  281. .p-select-wrap.p-3d .p-select-list{
  282. height: 34px;
  283. overflow:hidden;
  284. background-color: #fff;
  285. }
  286. .p-select-wrap.p-3d .p-select-ul>li,
  287. .p-select-wrap.p-3d .p-select-label{
  288. color: #2a2b2c;
  289. }
  290. .p-select-wrap.p-3d .p-select-body:before{
  291. content: "";
  292. position: absolute;
  293. top: -15px;
  294. bottom: -15px;
  295. left: 0;
  296. right: 0;
  297. background: -webkit-linear-gradient(#fff,rgba(255,255,255,0) 52%,rgba(2555,255,255,0) 48%,#fff);
  298. pointer-events: none;
  299. -webkit-transform: translate3d(0,0,120px);
  300. z-index: 5;
  301. }
  302. .p-select-wrap.p-3d .p-select-line:before{
  303. top: 1px;
  304. }
  305. .p-select-wrap.p-3d .p-select-line:after{
  306. bottom: 1px;
  307. }
  308. .p-select-wrap.dark .p-select-main,
  309. .p-select-wrap.dark .p-select-body{
  310. background-color: #080808;
  311. }
  312. .p-select-wrap.dark .p-select-body:before{
  313. background: -webkit-linear-gradient(#080808,rgba(8,8,8,0) 52%,rgba(8,8,8,0) 48%,#080808);
  314. }
  315. .p-select-wrap.dark .p-select-head{
  316. background-color: #1c1c1c;
  317. border-bottom: none;
  318. }
  319. .p-select-wrap.dark .p-select-head:before{
  320. background-color: transparent;
  321. }
  322. .p-select-wrap.dark .p-select-head a{
  323. color: #ff8400;
  324. }
  325. .p-select-wrap.dark .p-select-list,
  326. .p-select-wrap.dark .p-select-ul>li,
  327. .p-select-wrap.dark .p-select-wheel>li{
  328. background-color: #080808;
  329. }
  330. .p-select-wrap.dark .p-select-line:before,
  331. .p-select-wrap.dark .p-select-line:after{
  332. background-color: #444;
  333. }
  334. .p-select-wrap.dark .p-select-time-split-1{
  335. background: -webkit-linear-gradient(90deg,transparent,#333 15%,#333 85%,transparent);
  336. }
  337. .p-select-wrap.dark .p-select-title,
  338. .p-select-wrap.dark .p-select-label,
  339. .p-select-wrap.dark .p-select-ul>li{
  340. color: #fff;
  341. }
  342. .p-select-wrap.dark .p-select-foot{
  343. border-top: none;
  344. background-color: #444;
  345. }
  346. .p-select-wrap.dark .p-select-foot a{
  347. color: #ff8400;
  348. }
  349. .p-select-wrap.dark .p-select-foot:before,
  350. .p-select-wrap.dark .p-select-foot a:before{
  351. background-color: #444;
  352. }
  353. /*center*/
  354. .p-center{
  355. position: relative;
  356. top: auto;
  357. left: auto;
  358. -webkit-transform: none;
  359. width: auto;
  360. }
  361. .p-center .p-select-head{
  362. background-color: #f2f2f2;
  363. }
  364. .p-center .p-select-body{
  365. min-width: 300px;
  366. padding: 0 25px;
  367. box-sizing: border-box;
  368. background-color: #fff;
  369. }
  370. .p-center .p-select-body:before{
  371. background: -webkit-linear-gradient(#f7f7f7,rgba(245,245,245,0) 52%,rgba(245,245,245,0) 48%,#f7f7f7);
  372. }
  373. .p-center .p-select-main{
  374. position: relative;
  375. margin: auto;
  376. bottom: auto;
  377. max-width: 400px;
  378. border-radius: 10px;
  379. overflow: hidden;
  380. -webkit-animation: p-scroll-fade-in .3s ease both;
  381. }
  382. .p-scroll.hide .p-center .p-select-main{
  383. -webkit-animation: p-scroll-fade-out .3s ease both;
  384. }
  385. .p-center .p-select-line{
  386. border-color: #ccc;
  387. }
  388. .p-center .p-select-list{
  389. background-color: #fff;
  390. }
  391. /*center dark*/
  392. .p-center.dark .p-select-wrap.dark{
  393. border: none;
  394. }
  395. .p-center.dark .p-select-head{
  396. background-color: #000;
  397. }
  398. .p-center.dark .p-select-head:before{
  399. background-color: #444;
  400. }
  401. .p-center.dark .p-select-foot{
  402. background-color: #000;
  403. }