picker.scss 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. .lb-picker {
  2. position: relative;
  3. .lb-picker-mask {
  4. position: fixed;
  5. z-index: 999;
  6. top: 0;
  7. right: 0;
  8. left: 0;
  9. bottom: 0;
  10. }
  11. .lb-picker-container {
  12. width: 100%;
  13. position: fixed;
  14. left: 0;
  15. bottom: 0;
  16. transform: translateY(100%);
  17. backface-visibility: hidden;
  18. background-color: #efeff4;
  19. box-shadow: 0px 0px 1px 0px #e5e5e5;
  20. visibility: hidden;
  21. overflow: hidden;
  22. z-index: 999;
  23. transition: all 0.3s;
  24. &.lb-picker-toggle {
  25. visibility: visible;
  26. transform: translate(0);
  27. }
  28. .lb-picker-header {
  29. position: relative;
  30. font-size: 36rpx;
  31. box-sizing: border-box;
  32. background-color: $uni-bg-color;
  33. display: flex;
  34. justify-content: space-between;
  35. &::after {
  36. content: "";
  37. position: absolute;
  38. left: 0;
  39. bottom: 0;
  40. right: 0;
  41. height: 1px;
  42. clear: both;
  43. border-bottom: 1px solid #e5e5e5;
  44. color: #e5e5e5;
  45. transform-origin: 0 100%;
  46. -webkit-transform: scaleY(0.5);
  47. transform: scaleY(0.5);
  48. }
  49. .lb-picker-action {
  50. font-size: 32rpx;
  51. padding: 0 28rpx;
  52. display: flex;
  53. align-items: center;
  54. .lb-picker-action-cancel {
  55. color: #999;
  56. }
  57. .lb-picker-action-confirm {
  58. color: #FA6400;
  59. }
  60. }
  61. }
  62. .lb-picker-content {
  63. position: relative;
  64. width: 100%;
  65. background-color: #fff;
  66. font-size: 32rpx;
  67. .uni-picker-view-indicator {
  68. &::after {
  69. bottom: 1px;
  70. }
  71. }
  72. .lb-picker-loading,
  73. .lb-picker-empty {
  74. height: 100%;
  75. display: flex;
  76. justify-content: center;
  77. align-items: center;
  78. }
  79. .lb-picker-loading {
  80. .lb-picker-loading-img {
  81. width: 64rpx;
  82. height: 64rpx;
  83. background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAPFklEQVR4Xu2dTXbUOBeGpToHF7OGFTSsAFhBJytoWAFkUnKNoFdAWEGHUVmZJKygwwpIVkB6BYQVdDIj4Ry5zw3210W++pFtSb6S3pqWpHv9Xj2WZMtXUuAHBaDAWgUktIECUGC9AgAEvQMKbFAAgKB7QAEAgj4ABfopgBGkn26olYkCACSTQOMy+ykAQPrphlqZKABARg700dHRg+vr69+klE/run5E7kgpL+q6Pp9Op2d7e3uXI7uYtXkAMmL4tdZvhRBvhBAP1rhBcBwopd6N6GbWpgHICOGnUePm5uaTEOKppfnzoih2MZpYquWwGABxKKZtU1VVfZJS7tiWp3J1XZ+WZbnbpQ7KDlcAgAzXsFMLi8Xi1WQyOepUqSlsjNmbz+fHfeqiTj8FAEg/3XrX0lp/7jC1umvnXCn1rLdxVOysAADpLFn/Cs3a45/+LQhRFMVDrEWGKNitLgDppteg0ovFYmcymdDivPfPGLM7n89PezeAip0UACCd5BpWGIAM02+M2gAkoOoAJKDYjkwBEEdC2jQDQGxU4lUGgASMBwAJKLYjUwDEkZA2zQAQG5V4lQEgAeMBQAKK7cgUAHEkpE0zAMRGJV5lAEjAeACQgGI7MgVAHAlp0wwAsVGJVxkAEjAeACSg2I5MARBHQto0A0BsVOJVBoAEjAcACSi2I1MAxJGQNs0AEBuVeJUBIAHjAUACiu3IFABxJKRNMwDERiVeZQBIwHgAkIBiOzIFQBwJadMMALFRiVcZloA0ydReSilfLX+/Xdf1hZTyuCiK9zF+dpo7IIvF4tFkMnlZ1/VyRpcLIcRJWZYfeaHxwxt2gDRZP/7ckEyNUuBcTCaTF7PZ7JyjqOt8yhUQAkNKebQp1VFz8/tDKXXCKaasAKmqikSkUcPmdyml3I0JkhwBOTw8pJSq9B3+uuyRP8W6ruvjsiz3bDpAiDJsAKmq6kBK+brjRUcFSW6AdIVjKfY0khx07A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Wmj3V++mBowFDCEo6UAfEIyej5AFIDhC0cqQPiCRIAQsI6ShzAGo4cAPEACQBpOk6XsymiWXOk+h5k2/TX4XsSANKKrbW+7Jk0gP3I0V5jKi8KtwHiaiThkNGSxRqEBO35qDcaOHKZYi3DM2QkoZxkZVnSGYmj/tgA0kDS5W16VHDkCMiQkST0dy/rKGQFSAMJJTSgF4e/bLh1nBljXoX4Ptvl7SunKdaKkYROx7VKTscpsQM7QJo7LSWL3pFS0lHEt5sX67qmTWynxpiT2MDIcQ1y98bSbEalG9/abC51XX+cTCb7nLa8swTE5V2bU1u5jiDLMWhA2Vk+atoYcyGEOOV44wMgAQkCIAHFdmQKgDgS0qYZAGKjEq8yACRgPABIQLEdmQIgjoS0aQaA2KjEqwwACRgPABJQbEemAIgjIW2aASA2KvEqA0ACxgOABBTbkSkA4khIm2YAiI1KvMoAkIDxACABxXZkCoA4EtKmGQBioxKvMgAkYDwASECxHZkCII6EtGkGgNioxKsMAAkYDwASUGxHpgCIIyFtmgEgNirxKgNAAsYDgAQU25EpAOJISJtmAIiNSrzKAJCA8QAgAcV2ZAqAOBLSppnma7p/bMquK8MhofMQ/2OrC0ACR6yqqnMp5ZM+Zrmkwunje6x1AEjgyC0Wi95ZJDll+wgs22jmAMgI0vfMZn+mlKJkB/gFVACABBS7NUVrkevr61PbqRZNrabT6c7Yh8mMINXoJgHIiCHQWm9LknclhDhQSlE5/EZQAICMIPqyyTt5oihhHv0oT9R5URSnGDXGDRAAGVd/WGeuAABhHiC4N64CAGRc/WGduQIAhHmA4N64CgCQcfWHdeYKABDmAYJ74yoAQMbVH9aZKwBAmAcI7o2rwL9NuZ5QQgPItwAAAABJRU5ErkJggg==);
  84. background-repeat: no-repeat;
  85. background-size: 100% 100%;
  86. animation: rotating 2s linear infinite;
  87. }
  88. }
  89. .lb-picker-empty {
  90. font-size: 32rpx;
  91. .lb-picker-empty-text {
  92. color: #999;
  93. }
  94. }
  95. }
  96. }
  97. &.lb-picker-inline {
  98. .lb-picker-container {
  99. position: relative;
  100. visibility: visible;
  101. box-shadow: unset;
  102. transform: translateY(0);
  103. }
  104. }
  105. }
  106. @keyframes rotating {
  107. 0% {
  108. transform: rotate(0deg)
  109. }
  110. to {
  111. transform: rotate(1turn)
  112. }
  113. }