style.css 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. .picker {
  2. overflow: hidden;
  3. }
  4. .picker-toolbar {
  5. height: 40px;
  6. }
  7. .picker-items {
  8. display: -webkit-box;
  9. display: -ms-flexbox;
  10. display: flex;
  11. -webkit-box-pack: center;
  12. -ms-flex-pack: center;
  13. justify-content: center;
  14. padding: 0;
  15. text-align: right;
  16. font-size: 24px;
  17. position: relative;
  18. }
  19. .picker-center-highlight {
  20. box-sizing: border-box;
  21. position: absolute;
  22. left: 0;
  23. width: 100%;
  24. top: 50%;
  25. margin-top: -18px;
  26. pointer-events: none
  27. }
  28. .picker-center-highlight:before, .picker-center-highlight:after {
  29. content: '';
  30. position: absolute;
  31. height: 1px;
  32. width: 100%;
  33. background-color: #eaeaea;
  34. display: block;
  35. z-index: 15;
  36. -webkit-transform: scaleY(0.5);
  37. transform: scaleY(0.5);
  38. }
  39. .picker-center-highlight:before {
  40. left: 0;
  41. top: 0;
  42. bottom: auto;
  43. right: auto;
  44. }
  45. .picker-center-highlight:after {
  46. left: 0;
  47. bottom: 0;
  48. right: auto;
  49. top: auto;
  50. }
  51. .picker-slot {
  52. font-size: 18px;
  53. overflow: hidden;
  54. position: relative;
  55. max-height: 100%
  56. }
  57. .picker-slot.picker-slot-left {
  58. text-align: left;
  59. }
  60. .picker-slot.picker-slot-center {
  61. text-align: center;
  62. }
  63. .picker-slot.picker-slot-right {
  64. text-align: right;
  65. }
  66. .picker-slot.picker-slot-divider {
  67. color: #000;
  68. display: -webkit-box;
  69. display: -ms-flexbox;
  70. display: flex;
  71. -webkit-box-align: center;
  72. -ms-flex-align: center;
  73. align-items: center
  74. }
  75. .picker-slot-wrapper {
  76. -webkit-transition-duration: 0.3s;
  77. transition-duration: 0.3s;
  78. -webkit-transition-timing-function: ease-out;
  79. transition-timing-function: ease-out;
  80. -webkit-backface-visibility: hidden;
  81. backface-visibility: hidden;
  82. }
  83. .picker-slot-wrapper.dragging, .picker-slot-wrapper.dragging .picker-item {
  84. -webkit-transition-duration: 0s;
  85. transition-duration: 0s;
  86. }
  87. .picker-item {
  88. height: 36px;
  89. line-height: 36px;
  90. padding: 0 10px;
  91. white-space: nowrap;
  92. position: relative;
  93. overflow: hidden;
  94. text-overflow: ellipsis;
  95. color: #707274;
  96. left: 0;
  97. top: 0;
  98. width: 100%;
  99. box-sizing: border-box;
  100. -webkit-transition-duration: .3s;
  101. transition-duration: .3s;
  102. -webkit-backface-visibility: hidden;
  103. backface-visibility: hidden;
  104. }
  105. .picker-slot-absolute .picker-item {
  106. position: absolute;
  107. }
  108. .picker-item.picker-item-far {
  109. pointer-events: none
  110. }
  111. .picker-item.picker-selected {
  112. color: #000;
  113. -webkit-transform: translate3d(0, 0, 0) rotateX(0);
  114. transform: translate3d(0, 0, 0) rotateX(0);
  115. }
  116. .picker-3d .picker-items {
  117. overflow: hidden;
  118. -webkit-perspective: 700px;
  119. perspective: 700px;
  120. }
  121. .picker-3d .picker-item, .picker-3d .picker-slot, .picker-3d .picker-slot-wrapper {
  122. -webkit-transform-style: preserve-3d;
  123. transform-style: preserve-3d
  124. }
  125. .picker-3d .picker-slot {
  126. overflow: visible
  127. }
  128. .picker-3d .picker-item {
  129. -webkit-transform-origin: center center;
  130. transform-origin: center center;
  131. -webkit-backface-visibility: hidden;
  132. backface-visibility: hidden;
  133. -webkit-transition-timing-function: ease-out;
  134. transition-timing-function: ease-out
  135. }