calendar.wxss 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. @charset "UTF-8";
  2. /* 水平间距 */
  3. /* 水平间距 */
  4. .uni-calendar {
  5. display: flex;
  6. flex-direction: column;
  7. }
  8. .uni-calendar__mask {
  9. position: fixed;
  10. bottom: 0;
  11. top: 0;
  12. left: 0;
  13. right: 0;
  14. background-color: rgba(0, 0, 0, 0.4);
  15. transition-property: opacity;
  16. transition-duration: 0.3s;
  17. opacity: 0;
  18. z-index: 99;
  19. }
  20. .uni-calendar--mask-show {
  21. opacity: 1;
  22. }
  23. .uni-calendar--fixed {
  24. position: fixed;
  25. bottom: calc(0px);
  26. left: 0;
  27. right: 0;
  28. transition-property: -webkit-transform;
  29. transition-property: transform;
  30. transition-property: transform, -webkit-transform;
  31. transition-duration: 0.3s;
  32. -webkit-transform: translateY(460px);
  33. transform: translateY(460px);
  34. z-index: 99;
  35. }
  36. .uni-calendar--ani-show {
  37. -webkit-transform: translateY(0);
  38. transform: translateY(0);
  39. }
  40. .uni-calendar__content {
  41. background-color: #fff;
  42. }
  43. .uni-calendar__content-mobile {
  44. border-top-left-radius: 10px;
  45. border-top-right-radius: 10px;
  46. box-shadow: 0px 0px 5px 3px rgba(0, 0, 0, 0.1);
  47. }
  48. .uni-calendar__header {
  49. position: relative;
  50. display: flex;
  51. flex-direction: row;
  52. justify-content: center;
  53. align-items: center;
  54. height: 50px;
  55. }
  56. .uni-calendar__header-mobile {
  57. padding: 10px;
  58. padding-bottom: 0;
  59. }
  60. .uni-calendar--fixed-top {
  61. display: flex;
  62. flex-direction: row;
  63. justify-content: space-between;
  64. border-top-color: rgba(0, 0, 0, 0.4);
  65. border-top-style: solid;
  66. border-top-width: 1px;
  67. }
  68. .uni-calendar--fixed-width {
  69. width: 50px;
  70. }
  71. .uni-calendar__backtoday {
  72. position: absolute;
  73. right: 0;
  74. top: 25rpx;
  75. padding: 0 5px;
  76. padding-left: 10px;
  77. height: 25px;
  78. line-height: 25px;
  79. font-size: 12px;
  80. border-top-left-radius: 25px;
  81. border-bottom-left-radius: 25px;
  82. color: #fff;
  83. background-color: #f1f1f1;
  84. }
  85. .uni-calendar__header-text {
  86. text-align: center;
  87. width: 100px;
  88. font-size: 15px;
  89. color: #666;
  90. }
  91. .uni-calendar__button-text {
  92. text-align: center;
  93. width: 100px;
  94. font-size: 14px;
  95. color: #2979ff;
  96. letter-spacing: 3px;
  97. }
  98. .uni-calendar__header-btn-box {
  99. display: flex;
  100. flex-direction: row;
  101. align-items: center;
  102. justify-content: center;
  103. width: 50px;
  104. height: 50px;
  105. }
  106. .uni-calendar__header-btn {
  107. width: 9px;
  108. height: 9px;
  109. border-left-color: #808080;
  110. border-left-style: solid;
  111. border-left-width: 1px;
  112. border-top-color: #555555;
  113. border-top-style: solid;
  114. border-top-width: 1px;
  115. }
  116. .uni-calendar--left {
  117. -webkit-transform: rotate(-45deg);
  118. transform: rotate(-45deg);
  119. }
  120. .uni-calendar--right {
  121. -webkit-transform: rotate(135deg);
  122. transform: rotate(135deg);
  123. }
  124. .uni-calendar__weeks {
  125. position: relative;
  126. display: flex;
  127. flex-direction: row;
  128. }
  129. .uni-calendar__weeks-item {
  130. flex: 1;
  131. }
  132. .uni-calendar__weeks-day {
  133. flex: 1;
  134. display: flex;
  135. flex-direction: column;
  136. justify-content: center;
  137. align-items: center;
  138. height: 40px;
  139. border-bottom-color: #F5F5F5;
  140. border-bottom-style: solid;
  141. border-bottom-width: 1px;
  142. }
  143. .uni-calendar__weeks-day-text {
  144. font-size: 12px;
  145. color: #B2B2B2;
  146. }
  147. .uni-calendar__box {
  148. position: relative;
  149. padding-bottom: 7px;
  150. }
  151. .uni-calendar__box-bg {
  152. display: flex;
  153. justify-content: center;
  154. align-items: center;
  155. position: absolute;
  156. top: 0;
  157. left: 0;
  158. right: 0;
  159. bottom: 0;
  160. }
  161. .uni-calendar__box-bg-text {
  162. font-size: 200px;
  163. font-weight: bold;
  164. color: #999;
  165. opacity: 0.1;
  166. text-align: center;
  167. line-height: 1;
  168. }
  169. .uni-date-changed {
  170. padding: 0 10px;
  171. text-align: center;
  172. color: #333;
  173. border-top-color: #DCDCDC;
  174. border-top-style: solid;
  175. border-top-width: 1px;
  176. flex: 1;
  177. }
  178. .uni-date-btn--ok {
  179. padding: 20px 15px;
  180. }
  181. .uni-date-changed--time-start {
  182. display: flex;
  183. align-items: center;
  184. }
  185. .uni-date-changed--time-end {
  186. display: flex;
  187. align-items: center;
  188. }
  189. .uni-date-changed--time-date {
  190. color: #999;
  191. line-height: 50px;
  192. margin-right: 5px;
  193. }
  194. .time-picker-style {
  195. display: flex;
  196. justify-content: center;
  197. align-items: center;
  198. }
  199. .mr-10 {
  200. margin-right: 10px;
  201. }
  202. .dialog-close {
  203. position: absolute;
  204. top: 0;
  205. right: 0;
  206. bottom: 0;
  207. display: flex;
  208. flex-direction: row;
  209. align-items: center;
  210. padding: 0 25px;
  211. margin-top: 10px;
  212. }
  213. .dialog-close-plus {
  214. width: 16px;
  215. height: 2px;
  216. background-color: #737987;
  217. border-radius: 2px;
  218. -webkit-transform: rotate(45deg);
  219. transform: rotate(45deg);
  220. }
  221. .dialog-close-rotate {
  222. position: absolute;
  223. -webkit-transform: rotate(-45deg);
  224. transform: rotate(-45deg);
  225. }
  226. .uni-datetime-picker--btn {
  227. border-radius: 100px;
  228. height: 40px;
  229. line-height: 40px;
  230. background-color: #2979ff;
  231. color: #fff;
  232. font-size: 16px;
  233. letter-spacing: 2px;
  234. }
  235. .uni-datetime-picker--btn:active {
  236. opacity: 0.7;
  237. }