picker.wxss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. /* pages/picker/picker.wxss */
  2. @keyframes fade-in {
  3. 0% {
  4. top: 1000rpx;
  5. opacity: 0;
  6. }
  7. /*初始状态 透明度为0*/
  8. 40% {
  9. top: 1000rpx;
  10. opacity: 0;
  11. }
  12. /*过渡状态 透明度为0*/
  13. 100% {
  14. margin-top: 0rpx;
  15. opacity: 1;
  16. }
  17. /*结束状态 透明度为1*/
  18. }
  19. .date-picker {
  20. position: fixed;
  21. top: 0;
  22. left: 0;
  23. margin: 0;
  24. padding: 0;
  25. width: 100%;
  26. height: 100%;
  27. z-index: 999;
  28. animation: fade-in 0.5s ease 1 forwards;
  29. }
  30. .date-picker-mask {
  31. position: fixed;
  32. top: 0;
  33. left: 0;
  34. bottom: 590rpx;
  35. background-color: #353535;
  36. opacity: 0.4;
  37. width: 100%;
  38. z-index: 1000;
  39. }
  40. .date-picker-content {
  41. position: fixed;
  42. bottom: 0;
  43. left: 0;
  44. width: 100%;
  45. height: 590rpx;
  46. border-top-left-radius: 16rpx;
  47. border-top-right-radius: 16rpx;
  48. background-color: #fff;
  49. z-index: 9999;
  50. overflow: hidden;
  51. }
  52. .date-picker-date-content {
  53. position: relative;
  54. display: flex;
  55. height: 160rpx;
  56. width: 750rpx;
  57. }
  58. .date-picker-date-content-image {
  59. position: absolute;
  60. top: 0rpx;
  61. left: 0rpx;
  62. width: 100%;
  63. height: 100%;
  64. }
  65. .date-picker-date-content-bg-left {
  66. position: absolute;
  67. top: 0rpx;
  68. left: 0rpx;
  69. width: 50%;
  70. height: 100%;
  71. }
  72. .date-picker-date-content-bg-right {
  73. position: absolute;
  74. top: 0rpx;
  75. right: 0rpx;
  76. width: 50%;
  77. height: 100%;
  78. }
  79. .date-picker-date-content-title {
  80. position: relative;
  81. color: #333;
  82. font-size: 26rpx;
  83. margin-left: 70rpx;
  84. margin-top: 40rpx;
  85. }
  86. .date-picker-date-content-time {
  87. position: relative;
  88. color: #333;
  89. font-size: 32rpx;
  90. font-weight: bold;
  91. margin-left: 70rpx;
  92. margin-top: 4rpx;
  93. }
  94. .date-picker-content-top {
  95. display: flex;
  96. flex-direction: row;
  97. align-items: center;
  98. height: 80rpx;
  99. justify-content: space-between;
  100. }
  101. .hover-class {
  102. background-color: #e6e6e6;
  103. }
  104. .date-picker-content-line {
  105. background-color: #d3dce6;
  106. height: 1rpx;
  107. width: 100%;
  108. opacity: 0.8;
  109. }
  110. .date-picker-content-cancel {
  111. line-height: 50rpx;
  112. height: 50rpx;
  113. color: #353535;
  114. padding: 10rpx 48rpx;
  115. flex: 1;
  116. font-size: 28rpx
  117. }
  118. .date-picker-content-sure {
  119. line-height: 50rpx;
  120. color: #0096FF;
  121. height: 50rpx;
  122. padding: 10rpx 48rpx;
  123. text-align: right;
  124. flex: 1;
  125. font-size: 28rpx
  126. }
  127. .date-picker-content-center {
  128. display: flex;
  129. flex-direction: row;
  130. align-items: center;
  131. height: 340rpx;
  132. overflow: hidden;
  133. margin-top: 6rpx;
  134. margin-bottom: 6rpx;
  135. justify-content: space-between;
  136. }
  137. .date-picker-content-item {
  138. width: 33.3%;
  139. height: 350rpx;
  140. text-align: center;
  141. }