Mdate.css 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. /*选择日期*/
  2. .getDateBg{
  3. width: 100%;
  4. height: 100%;
  5. background-color: rgba(0,0,0,0.7);
  6. position: fixed;
  7. left: 0;
  8. top: 0;
  9. z-index: 100;
  10. transition: opacity 0.4s;
  11. opacity: 0;
  12. }
  13. .getDateBox{
  14. width: 100%;
  15. position: fixed;
  16. left: 0;
  17. background-color: #fff;
  18. box-shadow: -5px 0 5px rgba(0,0,0,0.3);
  19. z-index: 101;
  20. transition: bottom 0.4s;
  21. bottom: -270px;
  22. }
  23. .slideIn{
  24. display: block !important;
  25. }
  26. .slideIn .getDateBox{
  27. animation: slideIn 0.4s;
  28. -webkit-animation: slideIn 0.4s;
  29. bottom: 0;
  30. }
  31. .slideOut .getDateBox{
  32. animation: slideOut 0.4s;
  33. -webkit-animation: slideOut 0.4s;
  34. bottom: -400px;
  35. }
  36. .slideIn .getDateBg{
  37. opacity: 1;
  38. }
  39. .slideOut .getDateBg{
  40. opacity: 0;
  41. }
  42. .getDateBox .choiceDateTitle{
  43. height: 0.8rem;
  44. background-color: #f2f2f2;
  45. }
  46. .getDateBox .choiceDateTitle button{
  47. height: 100%;
  48. padding: 0 0.3rem;
  49. color: #509efb;
  50. font-size: 0.3rem;
  51. background: none;
  52. border: 0;
  53. -webkit-tap-highlight-color: rgba(0,0,0,0.2);
  54. font-weight:bold;
  55. }
  56. .getDateBox .dateContent{
  57. width: 100%;
  58. margin: 1.0rem 0;
  59. height: 120px;
  60. overflow: hidden;
  61. position: relative;
  62. }
  63. .getDateBox .dateContent:before{
  64. content: "";
  65. width: 100%;
  66. height: 40px;
  67. background: -webkit-linear-gradient(top, rgba(255,255,255,1), rgba(255,255,255,0));
  68. position: absolute;
  69. left: 0;
  70. top: 0;
  71. z-index: 10;
  72. pointer-events: none;
  73. }
  74. .getDateBox .dateContent:after{
  75. content: "";
  76. width: 100%;
  77. height: 40px;
  78. background: -webkit-linear-gradient(bottom, rgba(255,255,255,1), rgba(255,255,255,0));
  79. position: absolute;
  80. left: 0;
  81. bottom: 0;
  82. z-index: 10;
  83. pointer-events: none;
  84. }
  85. .getDateBox .dateContent .checkeDate{
  86. width: 100%;
  87. height: 40px;
  88. position: absolute;
  89. left: 0;
  90. top: 40px;
  91. }
  92. .getDateBox .dateContent .checkeDate:before,
  93. .getDateBox .dateContent .checkeDate:after{
  94. content: "";
  95. width: 100%;
  96. height: 1px;
  97. background-color: #ccc;
  98. position: absolute;
  99. left: 0;
  100. top: 0;
  101. transform: scaleY(0.5);
  102. -webkit-transform: scaleY(0.5);
  103. }
  104. .getDateBox .dateContent .checkeDate:after{
  105. top: auto;
  106. bottom: 0;
  107. }
  108. #yearwrapper,
  109. #monthwrapper,
  110. #daywrapper{
  111. width: 50%;
  112. height: 100%;
  113. position: absolute;
  114. top: 0;
  115. }
  116. #yearwrapper{
  117. left: 0;
  118. }
  119. #daywrapper{
  120. right: 0;
  121. }
  122. #monthwrapper{
  123. right: 0;
  124. }
  125. #monthwrapper ul{
  126. margin-right: 40%;
  127. }
  128. #yearwrapper ul{
  129. margin-left: 40%;
  130. }
  131. #daywrapper ul{
  132. margin-right: 40%;
  133. }
  134. #yearwrapper ul li,
  135. #monthwrapper ul li,
  136. #daywrapper ul li{
  137. height: 40px;
  138. line-height: 40px;
  139. font-size: 0.27rem;
  140. text-align: center;
  141. list-style: none;
  142. }
  143. @keyframes slideIn{
  144. 0%{bottom: -270px;}
  145. 100%{bottom: 0;}
  146. }
  147. @-webkit-keyframes slideIn{
  148. 0%{bottom: -270px;}
  149. 100%{bottom: 0;}
  150. }
  151. @keyframes slideOut{
  152. 0%{bottom: 0;}
  153. 100%{bottom: -270px;}
  154. }
  155. @-webkit-keyframes slideOut{
  156. 0%{bottom: 0;}
  157. 100%{bottom: -270px;}
  158. }