picker.scss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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. height: 45px;
  39. background-color: #fff;
  40. /* #ifdef APP-NVUE */
  41. border-bottom-width: 1px;
  42. border-bottom-style: solid;
  43. border-bottom-color: #e5e5e5;
  44. border-top-width: 1px;
  45. border-top-style: solid;
  46. border-top-color: #e5e5e5;
  47. /* #endif */
  48. /* #ifndef APP-NVUE */
  49. box-sizing: border-box;
  50. display: flex;
  51. /* #endif */
  52. flex-direction: row;
  53. justify-content: space-between;
  54. flex-wrap: nowrap;
  55. }
  56. /* #ifndef APP-PLUS */
  57. .lb-picker-header::before {
  58. content: "";
  59. position: absolute;
  60. left: 0;
  61. top: 0;
  62. right: 0;
  63. height: 1px;
  64. clear: both;
  65. border-bottom: 1px solid #e5e5e5;
  66. color: #e5e5e5;
  67. transform-origin: 0 100%;
  68. transform: scaleY(0.5);
  69. }
  70. .lb-picker-header::after {
  71. content: "";
  72. position: absolute;
  73. left: 0;
  74. bottom: 0;
  75. right: 0;
  76. height: 1px;
  77. clear: both;
  78. border-bottom: 1px solid #e5e5e5;
  79. color: #e5e5e5;
  80. transform-origin: 0 100%;
  81. transform: scaleY(0.5);
  82. }
  83. /* #endif */
  84. .lb-picker-action {
  85. padding-left: 14px;
  86. padding-right: 14px;
  87. /* #ifndef APP-NVUE */
  88. display: flex;
  89. /* #endif */
  90. flex-direction: row;
  91. align-items: center;
  92. justify-content: center;
  93. }
  94. .lb-picker-action-item {
  95. text-align: center;
  96. height: 45px;
  97. /* #ifndef APP-NVUE */
  98. display: flex;
  99. /* #endif */
  100. align-items: center;
  101. }
  102. .lb-picker-action-cancel-text {
  103. font-size: 16px;
  104. color: #999;
  105. }
  106. .lb-picker-action-confirm-text {
  107. font-size: 16px;
  108. color: #007aff;
  109. }
  110. .lb-picker-content {
  111. position: relative;
  112. background-color: #fff;
  113. /* #ifndef APP-NVUE */
  114. display: flex;
  115. /* #endif */
  116. justify-content: center;
  117. flex-direction: column;
  118. }
  119. .lb-picker-loading,
  120. .lb-picker-empty {
  121. /* #ifndef APP-NVUE */
  122. display: flex;
  123. /* #endif */
  124. justify-content: center;
  125. align-items: center;
  126. }
  127. .lb-picker-empty-text {
  128. color: #999;
  129. font-size: 16px;
  130. }
  131. .lb-picker-loading-img {
  132. width: 25px;
  133. height: 25px;
  134. /* #ifndef APP-NVUE */
  135. animation: rotating 2s linear infinite;
  136. /* #endif */
  137. }
  138. /* #ifndef APP-NVUE */
  139. @keyframes rotating {
  140. 0% {
  141. transform: rotate(0deg)
  142. }
  143. to {
  144. transform: rotate(1turn)
  145. }
  146. }
  147. /* #endif */