picker.scss 2.8 KB

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