You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

253 lines
4.6 KiB

6 months ago
  1. .lotus-calendar {
  2. background: #fff;
  3. position: absolute;
  4. bottom: 0;
  5. transform: translateY(100%);
  6. animation: calendarMove 0.4s ease-in-out forwards;
  7. }
  8. .lotus-calendar-title {
  9. font-size: 28rpx;
  10. text-align: center;
  11. padding-top: 30rpx;
  12. color: #222;
  13. }
  14. .lotus-calendar-out {
  15. animation: calendarOut 0.4s ease-in-out forwards;
  16. }
  17. .lotus-calendar-wrap {
  18. position: fixed;
  19. left: 0;
  20. top: 0;
  21. width: 100%;
  22. height: 100%;
  23. z-index: 999;
  24. }
  25. .lotus-calendar-chose {
  26. position: relative;
  27. /*display: -webkit-box;
  28. display: -webkit-flex;*/
  29. display: flex;
  30. align-items: center;
  31. justify-content: center;
  32. text-align: center;
  33. font-size: 28rpx;
  34. color: #333;
  35. }
  36. .lotus-calendar-chose::before {
  37. content: '';
  38. width: 100%;
  39. height: 1px;
  40. background: #eee;
  41. position: absolute;
  42. bottom: 0;
  43. }
  44. .lotus-calendar-chose-item {
  45. flex: 1;
  46. padding: 20rpx 0;
  47. }
  48. .lotus-calendar-chose-act {
  49. position: relative;
  50. color: #2979ff;
  51. }
  52. .lotus-calendar-chose-act::before {
  53. content: '';
  54. position: absolute;
  55. left: 50%;
  56. bottom: 0;
  57. transform: translateX(-50%);
  58. width: 40rpx;
  59. height: 4rpx;
  60. background: #2979ff;
  61. }
  62. .lotus-calendar-cur-date {
  63. padding: 20rpx 40rpx 20rpx 40rpx;
  64. }
  65. .lotus-calendar-cur-text {
  66. color: #2979ff;
  67. }
  68. .lotus-calendar-center {
  69. font-size: 32rpx;
  70. /*display: -webkit-box;
  71. display: -webkit-flex;*/
  72. display: flex;
  73. align-items: center;
  74. justify-content: center;
  75. justify-content: space-between;
  76. text-align: center;
  77. }
  78. .lotus-calendar-week {
  79. /*display: -webkit-box;
  80. display: -webkit-flex;*/
  81. display: flex;
  82. }
  83. .lotus-calendar-week-text {
  84. width: 107rpx;
  85. text-align: center;
  86. font-size: 30rpx;
  87. height: 60rpx;
  88. line-height: 60rpx;
  89. color: #333;
  90. }
  91. .lotus-calendar-days {
  92. overflow: hidden;
  93. padding-bottom: 10rpx;
  94. }
  95. .lotus-calendar-days-text {
  96. float: left;
  97. margin-bottom: 10rpx;
  98. font-size: 30rpx;
  99. width: 107rpx;
  100. text-align: center;
  101. height: 70rpx;
  102. line-height: 70rpx;
  103. }
  104. .lotus-calendar-days-range {
  105. background: #e4f2fd;
  106. }
  107. .lotus-calendar-days-gray {
  108. color: #999;
  109. width: 60rpx;
  110. height: 60rpx;
  111. line-height: 60rpx;
  112. white-space: nowrap;
  113. margin-left: auto;
  114. margin-right: auto;
  115. }
  116. .lotus-calendar-days-act {
  117. color: #fff;
  118. /*display: -webkit-box;
  119. display: -webkit-flex;*/
  120. display: flex;
  121. align-items: center;
  122. justify-content: center;
  123. margin-left: auto;
  124. margin-right: auto;
  125. text-align: center;
  126. width: 70rpx;
  127. height: 70rpx;
  128. line-height: 70rpx;
  129. background: #2979ff;
  130. }
  131. .lotus-calendar-prev {
  132. color: #999;
  133. font-size: 36rpx;
  134. }
  135. .lotus-calendar-next {
  136. color: #999;
  137. font-size: 36rpx;
  138. }
  139. .lotus-calendar-month {
  140. flex: 1;
  141. /*display: -webkit-box;
  142. display: -webkit-flex;*/
  143. display: flex;
  144. align-items: center;
  145. justify-content: center;
  146. justify-content: space-between;
  147. padding-right: 120rpx;
  148. }
  149. .lotus-calendar-year {
  150. flex: 1;
  151. /*display: -webkit-box;
  152. display: -webkit-flex;*/
  153. display: flex;
  154. align-items: center;
  155. justify-content: center;
  156. justify-content: space-between;
  157. }
  158. .lotus-calendar-year2 {
  159. margin: 20rpx 100rpx 0;
  160. font-size: 34rpx;
  161. }
  162. .lotus-calendar-mask {
  163. position: fixed;
  164. left: 0;
  165. top: 0;
  166. right: 0;
  167. bottom: 0;
  168. z-index: -1;
  169. background: rgba(0, 0, 0, 0.5);
  170. }
  171. .lotus-calendar-months {
  172. position: absolute;
  173. bottom: 0;
  174. left: 0;
  175. width: 100%;
  176. padding-top: 200rpx;
  177. min-height: 864rpx;
  178. background: #fff;
  179. z-index: 15;
  180. color: #999;
  181. box-sizing: border-box;
  182. }
  183. .lotus-calendar-months-box {
  184. /*display: -webkit-box;
  185. display: -webkit-flex;*/
  186. display: flex;
  187. align-content: center;
  188. flex-wrap: wrap;
  189. font-size: 32rpx;
  190. padding-top: 80rpx;
  191. }
  192. .lotus-calendar-months-text {
  193. width: 25%;
  194. text-align: center;
  195. padding: 30rpx 0;
  196. }
  197. .lotus-calendar-months-text2 {
  198. padding-bottom: 20rpx;
  199. }
  200. .lotus-calendar-months-cancel {
  201. padding: 30rpx 30rpx 0 0;
  202. font-size: 32rpx;
  203. text-align: right;
  204. }
  205. .lotus-calendar-months-cancel-icon {
  206. width: 50rpx;
  207. height: 50rpx;
  208. vertical-align: middle;
  209. }
  210. .lotus-calendar-months-cancel2 {
  211. padding-top: 0;
  212. padding-right: 0;
  213. }
  214. @keyframes calendarMove {
  215. 0% {
  216. transform: translateY(100%);
  217. }
  218. 100% {
  219. transform: translateY(0%);
  220. }
  221. }
  222. @keyframes calendarOut {
  223. 0% {
  224. transform: translateY(0%);
  225. }
  226. 100% {
  227. transform: translateY(100%);
  228. }
  229. }
  230. .lotus-calendar-result-time {
  231. font-size: 28rpx;
  232. text-align: center;
  233. color: #2979FF;
  234. }
  235. .lotus-calendar-result-btn {
  236. font-size: 28rpx;
  237. text-align: center;
  238. color: #fff;
  239. line-height: 70rpx;
  240. background: #2979FF;
  241. border-radius: 30rpx;
  242. margin: 20rpx 40rpx 30rpx;
  243. }
  244. .lotus-calendar-cur-bg-month {
  245. font-size: 320rpx;
  246. position: absolute;
  247. left: 50%;
  248. top: 50%;
  249. transform: translate3d(-50%, -50%, 0);
  250. z-index: -1;
  251. color: #e4e7ed;
  252. white-space: nowrap;
  253. }