QS-picker.css 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. picker-view{
  2. height: 100%;
  3. width: 100%;
  4. background-color: white;
  5. }
  6. /* middle */
  7. .middle {
  8. position: fixed;
  9. left: 50%;
  10. top: 50%;
  11. opacity: 0;
  12. pointer-events: none;
  13. perspective: 2500upx;
  14. transition: all .3s ease-in-out;
  15. }
  16. .middle.show {
  17. transition-delay: .3s;
  18. transform: translate(-50%, -50%);
  19. pointer-events: auto;
  20. opacity: 1;
  21. }
  22. .middle.hide {
  23. transform: translate(-50%, -50%);
  24. opacity: 0;
  25. pointer-events: none;
  26. }
  27. .middle_view {
  28. background-color: #FFF;
  29. border-radius: 15upx;
  30. overflow: hidden;
  31. width: 80vw;
  32. }
  33. /* bottom */
  34. .bottom {
  35. position: fixed;
  36. left: 0;
  37. bottom: 0;
  38. pointer-events: none;
  39. perspective: 2500upx;
  40. transition: all .3s ease-in-out;
  41. transform: translateY(100%);
  42. }
  43. .bottom.show {
  44. transform: translateY(0);
  45. pointer-events: auto;
  46. }
  47. .bottom.hide {
  48. transform: translateY(100%);
  49. pointer-events: none;
  50. }
  51. .bottom_view {
  52. width: 100vw;
  53. background-color: white;
  54. }
  55. /* top */
  56. .top {
  57. position: fixed;
  58. left: 0;
  59. top: 0;
  60. pointer-events: none;
  61. perspective: 2500upx;
  62. transition: all .3s ease-in-out;
  63. transform: translateY(-100%);
  64. }
  65. .top.show {
  66. transform: translateY(0);
  67. pointer-events: auto;
  68. }
  69. .top.hide {
  70. transform: translateY(-100%);
  71. pointer-events: none;
  72. }
  73. .top_view {
  74. width: 100vw;
  75. background-color: white;
  76. }
  77. /* mask */
  78. .mask {
  79. position: fixed;
  80. top: 0;
  81. left: 0;
  82. height: 100vh;
  83. width: 100vw;
  84. opacity: 0;
  85. background-color: rgba(0, 0, 0, .6);
  86. transition: all .3s ease-in-out;
  87. pointer-events: none;
  88. }
  89. .mask.show {
  90. opacity: 1;
  91. pointer-events: auto;
  92. }
  93. .mask.hide {
  94. opacity: 0;
  95. transition: all .3s ease-in-out .3s;
  96. pointer-events: none;
  97. }
  98. .flex_column_c_c {
  99. display: flex;
  100. flex-direction: column;
  101. justify-content: center;
  102. align-items: center;
  103. }
  104. .text_align_center {
  105. text-align: center;
  106. }
  107. /* flex */
  108. .flex_1 {
  109. flex: 1;
  110. }
  111. .flex_column {
  112. display: flex;
  113. flex-direction: column;
  114. }
  115. .flex_row_e_none {
  116. display: flex;
  117. flex-direction: row;
  118. justify-content: flex-end;
  119. }
  120. .flex_column_c_c {
  121. display: flex;
  122. flex-direction: column;
  123. justify-content: center;
  124. align-items: center;
  125. }
  126. .flex_row {
  127. display: flex;
  128. flex-direction: row;
  129. }
  130. .flex_row_none_c {
  131. display: flex;
  132. flex-direction: row;
  133. align-items: center;
  134. }
  135. .flex_row_e_c {
  136. display: flex;
  137. flex-direction: row;
  138. justify-content: flex-end;
  139. align-items: center;
  140. }
  141. .flex_row_c_c {
  142. display: flex;
  143. flex-direction: row;
  144. justify-content: center;
  145. align-items: center;
  146. }
  147. .flex_row_between_c {
  148. display: flex;
  149. flex-direction: row;
  150. justify-content: space-between;
  151. align-items: center;
  152. }
  153. /* width height */
  154. .width50 {
  155. width: 50%;
  156. }
  157. .width100 {
  158. width: 100%;
  159. }
  160. .width250rpx {
  161. width: 250rpx;
  162. }
  163. .height100 {
  164. height: 100%;
  165. }
  166. /* padding */
  167. .padding20rpx {
  168. padding: 20rpx;
  169. }
  170. view,
  171. block,
  172. botton,
  173. text,
  174. picker,
  175. picker-view picker-view-column {
  176. box-sizing: border-box;
  177. }
  178. .backgroundColor_white {
  179. background-color: white;
  180. }