DateSelector.css 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. .date-selector-locked {
  2. height: 100% !important;
  3. overflow: hidden !important;
  4. }
  5. .date-selector-bg-delay {
  6. z-index: 999!important;
  7. }
  8. .date-selector-bg {
  9. position: fixed;
  10. top: 0;
  11. left: 0;
  12. background: rgba(75, 75, 75, 0);
  13. height: 100%;
  14. width: 100%;
  15. overflow: hidden;
  16. transition: all .3s ease;
  17. -webkit-transition: all .3s ease;
  18. z-index: -1;
  19. }
  20. .date-selector-bg-up {
  21. z-index: 999 !important;
  22. background: rgba(75, 75, 75, 0.65) !important;
  23. }
  24. .date-selector-container {
  25. width: 100%;
  26. height: 250px;
  27. position: absolute;
  28. bottom: 0;
  29. transform: translate3d(0, 101%, 0);
  30. -webkit-transform: translate3d(0, 101%, 0);
  31. left: 0;
  32. background-color: #FFF;
  33. transition: transform .3s ease;
  34. -webkit-transition: -webkit-transform .3s ease;
  35. z-index: -1;
  36. }
  37. .date-selector-container-up {
  38. transform: translate3d(0, 0, 0) !important;
  39. -webkit-transform: translate3d(0, 0, 0) !important;
  40. }
  41. .date-selector-btn-box {
  42. display: block;
  43. position: absolute;
  44. text-align: center;
  45. width: 100%;
  46. height: 50px;
  47. line-height: 50px;
  48. background: rgba(38, 138, 211, 0.7);
  49. z-index: 10;
  50. }
  51. .date-selector-btn-box .date-selector-btn {
  52. position: absolute;
  53. display: inline-block;
  54. margin: 0 20px;
  55. color: #fff;
  56. right: 0;
  57. }
  58. .date-selector-btn-box .date-selector-btn:nth-child(1) {
  59. left: 0;
  60. right: initial;
  61. }
  62. .date-selector-tab-box {
  63. display: inline-block;
  64. border-radius: 10px;
  65. margin: 9px 0;
  66. height: 32px;
  67. box-sizing: border-box;
  68. line-height: 30px;
  69. color: rgba(110, 107, 107, 0.7);
  70. background: #fff;
  71. border: 1px solid #fff;
  72. }
  73. .date-selector-tab-box .date-selector-tab {
  74. display: inline-block;
  75. padding: 0 10px;
  76. transition: all .3s ease;
  77. }
  78. .date-selector-tab-box .date-selector-tab:first-child {
  79. border-right: 1px solid #fff;
  80. }
  81. .date-selector-tab-box .date-selector-tab-active {
  82. color: #fff;
  83. border-radius: 10px;
  84. background: rgb(227, 103, 103);
  85. }
  86. .date-selector-content-left {
  87. transform: translate3d(-100%, 0, 0) !important;
  88. -webkit-transform: translate3d(-100%, 0, 0) !important;
  89. }
  90. .date-selector-content-right {
  91. transform: translate3d(100%, 0, 0) !important;
  92. -webkit-transform: translate3d(100%, 0, 0) !important;
  93. }
  94. .date-selector-content {
  95. position: absolute;
  96. width: 100%;
  97. background: #fff;
  98. font-size: 0;
  99. top: 50px;
  100. z-index: 10;
  101. transform: translate3d(0, 0, 0);
  102. -webkit-transform: translate3d(0, 0, 0);
  103. transition: transform .3s ease;
  104. -webkit-transition: -webkit-transform .3s ease;
  105. }
  106. .date-selector-content .date-selector {
  107. display: inline-block;
  108. height: 200px;
  109. overflow: hidden;
  110. position: relative;
  111. z-index: -1;
  112. top: 0;
  113. vertical-align: top;
  114. }
  115. .date-selector-content .date-selector-left {
  116. width: 33.33%;
  117. }
  118. .date-selector-content .date-selector-right {
  119. width: 50%;
  120. }
  121. .date-selector-content ul::-webkit-scrollbar {
  122. display: none;
  123. }
  124. .date-selector-content li {
  125. height: 40px;
  126. text-align: center;
  127. font-size: 16px;
  128. line-height: 40px;
  129. list-style: none;
  130. }
  131. .date-selector-content .date-selector-up-shadow, .date-selector-content .date-selector-down-shadow {
  132. width: 100%;
  133. height: 80px;
  134. position: absolute;
  135. pointer-events: none;
  136. background-image: linear-gradient(to bottom, #FFF, rgba(255, 255, 255, 0));
  137. z-index: 50;
  138. }
  139. .date-selector-content .date-selector-up-shadow {
  140. top: 0;
  141. }
  142. .date-selector-content .date-selector-down-shadow {
  143. bottom: 0;
  144. z-index: 50;
  145. background-image: linear-gradient(to top, #FFF, rgba(255, 255, 255, 0));
  146. }
  147. .date-selector-content .date-selector-line {
  148. width: 95%;
  149. height: 40px;
  150. position: absolute;
  151. top: 80px;
  152. left: 50%;
  153. pointer-events: none;
  154. box-sizing: border-box;
  155. border-top: 1px solid #DCDCDC;
  156. border-bottom: 1px solid #DCDCDC;
  157. transform: translate3d(-50%, 0, 0);
  158. -webkit-transform: translate3d(-50%, 0, 0);
  159. }
  160. /*# sourceMappingURL=dateController.css.map */