picker.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. .lb-picker {
  2. position: relative;
  3. }
  4. .lb-picker-mask {
  5. background-color: rgba(0, 0, 0, 0.0);
  6. position: fixed;
  7. top: 0;
  8. right: 0;
  9. left: 0;
  10. bottom: 0;
  11. }
  12. .lb-picker-mask-animation {
  13. transition-property: background-color;
  14. transition-duration: 0.3s;
  15. }
  16. .lb-picker-container {
  17. position: relative;
  18. }
  19. .lb-picker-container-fixed {
  20. position: fixed;
  21. left: 0;
  22. right: 0;
  23. bottom: 0;
  24. transform: translateY(100%);
  25. /* #ifndef APP-PLUS */
  26. overflow: hidden;
  27. /* #endif */
  28. }
  29. .lb-picker-container-animation {
  30. transition-property: transform;
  31. transition-duration: 0.3s;
  32. }
  33. .lb-picker-container-show {
  34. transform: translateY(0);
  35. }
  36. .lb-picker-header {
  37. position: relative;
  38. background-color: #fff;
  39. /* #ifdef APP-NVUE */
  40. border-bottom-width: 1px;
  41. border-bottom-style: solid;
  42. border-bottom-color: #e5e5e5;
  43. border-top-width: 1px;
  44. border-top-style: solid;
  45. border-top-color: #e5e5e5;
  46. /* #endif */
  47. /* #ifndef APP-NVUE */
  48. box-sizing: border-box;
  49. /* #endif */
  50. }
  51. .lb-picker-header-actions {
  52. height: 45px;
  53. /* #ifndef APP-NVUE */
  54. box-sizing: border-box;
  55. display: flex;
  56. /* #endif */
  57. flex-direction: row;
  58. justify-content: space-between;
  59. flex-wrap: nowrap;
  60. }
  61. /* #ifndef APP-PLUS */
  62. .lb-picker-header::before {
  63. content: "";
  64. position: absolute;
  65. left: 0;
  66. top: 0;
  67. right: 0;
  68. height: 1px;
  69. clear: both;
  70. border-bottom: 1px solid #e5e5e5;
  71. color: #e5e5e5;
  72. transform-origin: 0 100%;
  73. transform: scaleY(0.5);
  74. }
  75. .lb-picker-header::after {
  76. content: "";
  77. position: absolute;
  78. left: 0;
  79. bottom: 0;
  80. right: 0;
  81. height: 1px;
  82. clear: both;
  83. border-bottom: 1px solid #e5e5e5;
  84. color: #e5e5e5;
  85. transform-origin: 0 100%;
  86. transform: scaleY(0.5);
  87. }
  88. /* #endif */
  89. .lb-picker-action {
  90. padding-left: 14px;
  91. padding-right: 14px;
  92. /* #ifndef APP-NVUE */
  93. display: flex;
  94. /* #endif */
  95. flex-direction: row;
  96. align-items: center;
  97. justify-content: center;
  98. }
  99. .lb-picker-action-item {
  100. text-align: center;
  101. height: 45px;
  102. /* #ifndef APP-NVUE */
  103. display: flex;
  104. /* #endif */
  105. align-items: center;
  106. }
  107. .lb-picker-action-cancel-text {
  108. font-size: 16px;
  109. color: #999;
  110. }
  111. .lb-picker-action-confirm-text {
  112. font-size: 16px;
  113. color: #007aff;
  114. }
  115. .lb-picker-content {
  116. position: relative;
  117. background-color: #fff;
  118. }
  119. .lb-picker-content-safe-buttom {
  120. padding-bottom: 0;
  121. padding-bottom: constant(safe-area-inset-bottom);
  122. padding-bottom: env(safe-area-inset-bottom);
  123. }
  124. .lb-picker-content-main {
  125. position: relative;
  126. /* #ifndef APP-NVUE */
  127. display: flex;
  128. /* #endif */
  129. justify-content: center;
  130. flex-direction: column;
  131. }
  132. .lb-picker-loading,
  133. .lb-picker-empty {
  134. /* #ifndef APP-NVUE */
  135. display: flex;
  136. /* #endif */
  137. justify-content: center;
  138. align-items: center;
  139. }
  140. .lb-picker-empty-text {
  141. color: #999;
  142. font-size: 16px;
  143. }
  144. .lb-picker-loading-img {
  145. width: 25px;
  146. height: 25px;
  147. /* #ifndef APP-NVUE */
  148. animation: rotating 2s linear infinite;
  149. /* #endif */
  150. }
  151. /* #ifndef APP-NVUE */
  152. @keyframes rotating {
  153. 0% {
  154. transform: rotate(0deg)
  155. }
  156. to {
  157. transform: rotate(1turn)
  158. }
  159. }
  160. /* #endif */