index.scss 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. $z-index: 10000;
  2. $cell-spacing: 20rpx;
  3. $calendar-size: 525rpx;
  4. $calendar-item-size: 75rpx;
  5. .picker {
  6. // position: fixed;
  7. // z-index: $z-index;
  8. // background: rgba(0, 0, 0, 0.3);
  9. // left: 0;
  10. // top: 0;
  11. // width: 100%;
  12. // height: 100%;
  13. // font-size: 28rpx;
  14. &-btn {
  15. padding: $cell-spacing*0.5 $cell-spacing;
  16. border-radius: 12rpx;
  17. color: #666;
  18. &-active {
  19. background: rgba(0, 0, 0, .1);
  20. }
  21. }
  22. &-display {
  23. color: #666;
  24. &-text {
  25. color: #000;
  26. margin: 0 $cell-spacing*0.5;
  27. }
  28. &-link {
  29. display: inline-block;
  30. &-active {
  31. background: rgba(0, 0, 0, .1);
  32. }
  33. }
  34. }
  35. &-modal {
  36. position: relative;
  37. background: #fff;
  38. &-header {
  39. display: flex;
  40. align-items: center;
  41. justify-content: space-between;
  42. text-align: center;
  43. line-height: 80rpx;
  44. font-size: 32rpx;
  45. &-title {
  46. display: inline-block;
  47. width: 40%;
  48. font-size: 30rpx;
  49. font-family: PingFang SC;
  50. font-weight: bold;
  51. color: #212121;
  52. }
  53. .date-btn{
  54. display: flex;
  55. justify-content: center;
  56. align-items: center;
  57. align-self: stretch;
  58. flex-basis: 80rpx;
  59. font-size: 0;
  60. border-radius: 50%;
  61. .inner-img{
  62. width: 36rpx;
  63. height: 36rpx;
  64. }
  65. }
  66. .picker-icon {
  67. &-active {
  68. // background: rgba(188, 188, 188, .1);
  69. }
  70. }
  71. }
  72. &-body {
  73. display: flex;
  74. margin: 0 auto;
  75. width: 100% !important;
  76. height: 480rpx;
  77. position: relative;
  78. }
  79. }
  80. &-calendar {
  81. position: absolute;
  82. left: 0;
  83. top: 0;
  84. width: 100%;
  85. height: 100%;
  86. box-sizing: border-box;
  87. display: grid;
  88. grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  89. grid-template-rows: 80rpx 60rpx 60rpx 60rpx 60rpx 60rpx 60rpx;
  90. grid-column-gap: 30rpx;
  91. align-items: center;
  92. flex-wrap: wrap;
  93. &-view {
  94. position: relative;
  95. display: flex;
  96. justify-content: center;
  97. width: 100%;
  98. box-sizing: border-box;
  99. height: 100%;
  100. text-align: center;
  101. .text{
  102. font-family: DIN;
  103. }
  104. &-bgbegin,
  105. &-bg,
  106. &-bgend,
  107. &-item,
  108. &-dot,
  109. &-tips {
  110. position: absolute;
  111. transition: .2s;
  112. }
  113. &-bgbegin,
  114. &-bg,
  115. &-bgend {
  116. opacity: .15;
  117. height: 80%;
  118. }
  119. &-bg {
  120. left: 0;
  121. top: 10%;
  122. width: 100%;
  123. }
  124. &-bgbegin {
  125. border-radius: $calendar-item-size 0 0 $calendar-item-size;
  126. top: 10%;
  127. left: 10%;
  128. width: 90%;
  129. }
  130. &-bgend {
  131. border-radius: 0 $calendar-item-size $calendar-item-size 0;
  132. top: 10%;
  133. left: 0%;
  134. width: 90%;
  135. }
  136. &-item {
  137. left: 5%;
  138. top: 5%;
  139. width: 90%;
  140. height: 90%;
  141. border-radius: $calendar-item-size;
  142. display: flex;
  143. align-items: center;
  144. justify-content: center;
  145. }
  146. &-dot {
  147. right: 10%;
  148. top: 10%;
  149. width: 12rpx;
  150. height: 12rpx;
  151. border-radius: 12rpx;
  152. }
  153. &-tips {
  154. bottom: 100%;
  155. left: 50%;
  156. transform: translateX(-50%);
  157. background: #4E4B46;
  158. color: #fff;
  159. border-radius: 12rpx;
  160. padding: 10rpx 20rpx;
  161. font-size: 24rpx;
  162. width: max-content;
  163. margin-bottom: 5rpx;
  164. pointer-events: none;
  165. &:after {
  166. content: "";
  167. position: absolute;
  168. top: 100%;
  169. left: 50%;
  170. transform: translateX(-50%);
  171. width: 0;
  172. height: 0;
  173. border-style: solid;
  174. border-width: 5rpx 5rpx 0 5rpx;
  175. border-color: #4E4B46 transparent transparent transparent;
  176. }
  177. }
  178. }
  179. }
  180. }
  181. @font-face {
  182. font-family: "mxdatepickericon";
  183. src: url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAMYAAsAAAAACBgAAALMAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCDIgqDRIJiATYCJAMUCwwABCAFhG0HSRvfBsg+QCa3noNAyAQ9w6GDvbwpNp2vloCyn8bD/x+y+/5qDhtj+T4eRVEcbsCoKMFASzCgLdDkmqYDwgxkWQ6YH5L/YnppOlLEjlnter43YRjU7M6vJ3iGADVAgJn5kqjv/wEii23T86UsAQT+04fV+o97VTMx4PPZt4DlorLXwIQiGMA5uhaVrBWqGHfQXcTEiE+PE+g2SUlxWlLVBHwUYFMgrgwSB3wstTKSGzqF1nOyiGeeOtNjV4An/vvxR58PSc3AzrMViyDvPo/7dVEUzn5GROfIWAcU4rLXfMFdhte56y4We9gGNEVIezkBOOaQXUrbTf/hJVkhGpDdCw7dSOEzByMEn3kIic98hMxnAfeFPKWCbjRcA148/HxhCEkaA94eGWFaGolsblpaWz8/Po2WVuNHh1fmBpZHIpqal9fOjizhTteY+RZ9rv02I/pq0W6QVH3pSncBz3m55r9ZIPycHfmenvxe4uyutIgfT5u4bgkDusl9gcF0rnfnz+b2NpSaQWBFeu8GIL1xQj5AH/6FAsEr/50F28e/gA9ny6KjLrxIp0TE+UucmQOl5AFNLXkzZufWamWHYEI39PEP2If97CMdm51N6DSmIekwAVmneXTBr0PVYx+aTgfQbU3p+R4jKHdRurBq0oEw6AKSfm+QDbpGF/w3VOP+oBnMHbqdx409FjP4RRHHkAj5IWgQiBUjHfMTuQ1Icpg5avI4sQVRu8EHdWptM1aKrIjuscfeL+kZwxBTYoElztOQ2UygjRIjEphaZsyWodHgvm9SC8QC/JygEA6DiCDeEMhAQFhhOpvxa/18A0TiYMahIy0L2hYIZWeYH9JR085Al4qts1re5St2/SR6DINBGEVYQCWOETHDMAHZ+pcZIQJGTV4RtMmg8UbhuWL1+VLLA2RFHYC71kiRo0SNpjwQh8pj2EFU3oTNmS1WqgIA') format('woff2');
  184. }
  185. .picker-icon {
  186. font-family: "mxdatepickericon" !important;
  187. }
  188. .picker-icon-you:before {
  189. content: "\e63e";
  190. }
  191. .picker-icon-zuo:before {
  192. content: "\e640";
  193. }
  194. .picker-icon-zuozuo:before {
  195. content: "\e641";
  196. }
  197. .picker-icon-youyou:before {
  198. content: "\e642";
  199. }