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.

283 lines
5.5 KiB

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