style.css 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394
  1. .mpvue-calendar {
  2. margin:auto;
  3. width: 100%;
  4. min-width:300rpx;
  5. background: #fff;
  6. user-select:none;
  7. position: relative;
  8. }
  9. .calendar-tools{
  10. height:40px;
  11. font-size: 20px;
  12. line-height: 40px;
  13. color:#5e7a88;
  14. box-shadow: 0rpx 4rpx 8rpx rgba(25, 47, 89, 0.1);
  15. margin-bottom: 30rpx;
  16. border-top: 1px solid rgba(200, 200, 200, .1);
  17. }
  18. .calendar-prev{
  19. width: 14.28571429%;
  20. float:left;
  21. text-align: center;
  22. }
  23. .calendar-prev img, .calendar-next img{
  24. width: 34rpx;
  25. height: 34rpx;
  26. }
  27. .calendar-info{
  28. padding-top: 3px;
  29. font-size:16px;
  30. line-height: 1.3;
  31. text-align: center;
  32. width: 220rpx;
  33. margin: 0 auto;
  34. }
  35. .calendar-info>div.mc-month{
  36. margin:auto;
  37. height:40rpx;
  38. width:100px;
  39. text-align: center;
  40. color:#5e7a88;
  41. overflow: hidden;
  42. position: relative;
  43. }
  44. .calendar-info>div.mc-month .mc-month-inner{
  45. position: absolute;
  46. left:0;
  47. top:0;
  48. height:480rpx;
  49. }
  50. .month-transition{
  51. transition:top .5s cubic-bezier(0.075, 0.82, 0.165, 1);
  52. }
  53. .calendar-info .mc-month-text{
  54. display:block;
  55. font-size:28rpx;
  56. height:40rpx;
  57. width:200rpx;
  58. overflow:hidden;
  59. text-align:center;
  60. }
  61. .calendar-info>div.mc-month .mc-month-inner>span{
  62. display: block;
  63. font-size: 14px;
  64. height:20px;
  65. width:100px;
  66. overflow: hidden;
  67. text-align: center;
  68. }
  69. .calendar-info>div.mc-year{
  70. font-size:10px;
  71. line-height: 1;
  72. color:#999;
  73. }
  74. .calendar-next{
  75. width: 14.28571429%;
  76. float:right;
  77. text-align: center;
  78. }
  79. .mpvue-calendar table {
  80. clear: both;
  81. width: 100%;
  82. margin-bottom:10px;
  83. border-collapse: collapse;
  84. color: #444444;
  85. }
  86. .mpvue-calendar td {
  87. margin:2px !important;
  88. padding:0px 0;
  89. width: 14.28571429%;
  90. height:88rpx;
  91. text-align: center;
  92. vertical-align: middle;
  93. font-size:14px;
  94. line-height: 125%;
  95. cursor: pointer;
  96. position: relative;
  97. vertical-align: top;
  98. }
  99. .mpvue-calendar td.mc-week{
  100. font-size:10px;
  101. pointer-events:none !important;
  102. cursor: default !important;
  103. }
  104. .mpvue-calendar td.disabled {
  105. color: #ccc;
  106. }
  107. .mpvue-calendar td.disabled div{
  108. color: #ccc;
  109. }
  110. .mpvue-calendar td span{
  111. display:block;
  112. height:76rpx;
  113. width:76rpx;
  114. font-size: 28rpx;
  115. line-height:76rpx;
  116. margin:0px auto;
  117. position: relative;
  118. z-index: 3;
  119. }
  120. .mpvue-calendar td:not(.disabled) span.mc-date-red{
  121. color:#ea6151;
  122. }
  123. .mc-today{
  124. color: #3b75fb;
  125. }
  126. .mpvue-calendar td.selected span{
  127. background-color: #3b75fb;
  128. color: #fff;
  129. border-radius:50%;
  130. }
  131. .mpvue-calendar td .mc-text{
  132. position: absolute;
  133. top:28px;
  134. left:0;
  135. right:0;
  136. text-align: center;
  137. padding:2px;
  138. font-size:20rpx;
  139. line-height: 1.2;
  140. color:#444;
  141. z-index: 4;
  142. }
  143. .mpvue-calendar td .isGregorianFestival,
  144. .mpvue-calendar td .isTerm,
  145. .mpvue-calendar td .isLunarFestival{
  146. color:#ea6151;
  147. }
  148. .mpvue-calendar td.selected span.mc-date-red{
  149. background-color: #3b75fb;
  150. color: #fff;
  151. }
  152. .selected .mc-text {
  153. color: #fff !important;
  154. }
  155. .mpvue-calendar .lunarStyle span{
  156. width: 80rpx;
  157. height: 80rpx;
  158. line-height:54rpx;
  159. }
  160. .mpvue-calendar .lunarStyle .mc-text{
  161. top: 44rpx;
  162. }
  163. .mpvue-calendar thead td {
  164. text-transform: uppercase;
  165. height:30px;
  166. vertical-align: middle;
  167. }
  168. .mc-head {
  169. margin-bottom: 20rpx;
  170. }
  171. .mc-head div {
  172. overflow: hidden;
  173. }
  174. .mc-head-box div {
  175. flex:1;
  176. text-align: center;
  177. }
  178. .mc-head-box {
  179. display: flex;
  180. flex-direction: row;
  181. justify-content: center;
  182. align-content: space-between
  183. }
  184. .mc-head-box div {
  185. font-size: 28rpx;
  186. }
  187. .mc-body tr {
  188. display: flex;
  189. flex-direction: row;
  190. justify-content: center;
  191. align-content: space-between
  192. }
  193. .mc-dot {
  194. width: 10rpx;
  195. height: 10rpx;
  196. background-color: #ea6151;
  197. border-radius: 50%;
  198. margin: 0 auto;
  199. margin-top: 5rpx;
  200. position: absolute;
  201. bottom: -5rpx;
  202. left: 50%;
  203. margin-left: -5rpx;
  204. z-index: 5;
  205. }
  206. .remark-text {
  207. padding-left: 8rpx;
  208. padding-right: 8rpx;
  209. box-sizing: border-box;
  210. height: 34rpx;
  211. overflow: hidden;
  212. text-overflow:ellipsis;
  213. white-space: nowrap;
  214. }
  215. .slot-element{
  216. line-height: normal;
  217. position: absolute;
  218. z-index: 5;
  219. }
  220. .mpvue-calendar-change{
  221. position: absolute;
  222. left:0rpx;
  223. top:85rpx;
  224. right:0rpx;
  225. bottom:0rpx;
  226. background:#fff;
  227. display: flex;
  228. justify-content: center;
  229. align-items: center;
  230. flex-wrap:wrap;
  231. overflow: auto;
  232. transition:all .5s cubic-bezier(0.075, 0.82, 0.165, 1);
  233. opacity: 0;
  234. pointer-events: none;
  235. transform: translateY(-10px);
  236. z-index: 9;
  237. }
  238. .mpvue-calendar-change.show{
  239. opacity: 1;
  240. pointer-events: auto;
  241. transform: translateY(0px);
  242. }
  243. .mpvue-calendar-change span{
  244. margin:4px 2%;
  245. display: inline-block;
  246. line-height: 30px;
  247. border-radius: 20px;
  248. text-align:center;
  249. color:#999;
  250. width: 20%;
  251. float: left;
  252. text-align: center;
  253. border-radius: 40px;
  254. box-sizing: border-box;
  255. margin-bottom: 4%;
  256. }
  257. .mpvue-calendar-change span.active{
  258. background-color: #587dff;
  259. box-shadow: 2px 2px 2px rgba(88, 125, 255, 0.7);
  260. color:#fff;
  261. }
  262. .mpvue-calendar-change .calendar-week-switch-months{
  263. height: 100%;
  264. padding: 10rpx 20rpx;
  265. }
  266. .mpvue-calendar-change .calendar-week-switch-months span {
  267. margin-bottom: 20rpx;
  268. margin-top: 0px;
  269. font-size: 26rpx;
  270. line-height: 40rpx;
  271. }
  272. .calendar-years, .calendar-months{
  273. height: 50%;
  274. width: 100%;
  275. padding: 10px;
  276. box-sizing: border-box;
  277. position: relative;
  278. }
  279. .calendar-years:after {
  280. content: '';
  281. display: block;
  282. width: 86%;
  283. height: 1rpx;
  284. background-color: #eee;
  285. position: absolute;
  286. bottom: 2%;
  287. left: 7%;
  288. }
  289. /*range background*/
  290. .mc-range-mode .selected .mc-range-bg{
  291. content: '';
  292. display: block;
  293. width: 110rpx;
  294. height: 80rpx;
  295. background-color: #01a1ed;
  296. position: absolute;
  297. top: 0rpx;
  298. left: 50%;
  299. }
  300. .mpvue-calendar .mc-range-mode .selected .calendar-date{
  301. background-color: transparent;
  302. }
  303. .mpvue-calendar .mc-range-mode .mc-range-row-last span.calendar-date, .mpvue-calendar .mc-range-mode .mc-range-row-first span.calendar-date{
  304. border-radius: 6rpx;
  305. background-color: #01a1ed;
  306. }
  307. .mpvue-calendar .mc-range-mode .mc-range-month-first.selected .calendar-date, .mpvue-calendar .mc-range-mode .mc-range-month-last.selected .calendar-date{
  308. border-radius: 6rpx;
  309. background-color: #01a1ed;
  310. }
  311. .mc-range-mode .mc-range-month-last .mc-range-bg{
  312. background-color: transparent;
  313. border-radius: 6rpx;
  314. }
  315. .mc-range-mode .mc-range-end .mc-range-bg, .mc-range-mode .mc-range-row-last .mc-range-bg{
  316. display: none;
  317. }
  318. .mpvue-calendar .mc-range-mode .mc-range-end span.calendar-date, .mpvue-calendar .mc-range-mode .mc-range-begin span.calendar-date{
  319. background-color: #3b75fb;
  320. color: #fff;
  321. border-radius: 50%;
  322. }
  323. .mc-range-mode .mc-range-row-first.mc-range-end .mc-range-bg{
  324. display: block;
  325. border-radius: 6rpx;
  326. width: 40rpx;
  327. left: 5px;
  328. }
  329. .mpvue-calendar .mc-range-row-first.mc-range-end.month-first-date .mc-range-bg{
  330. margin-left: 0px;
  331. }
  332. .mc-range-mode .mc-range-row-last.mc-range-begin .mc-range-bg{
  333. display: block;
  334. border-radius: 4rpx;
  335. width: 40rpx;
  336. right: 10px;
  337. }
  338. .mpvue-calendar .mc-range-mode .month-last-date.mc-range-begin .mc-range-bg{
  339. display: block;
  340. width: 40rpx;
  341. border-radius: 6rpx;
  342. }
  343. .mpvue-calendar .mc-range-mode .month-first-date.mc-range-end .mc-range-bg{
  344. display: block;
  345. width: 40rpx;
  346. border-radius: 6rpx;
  347. left: 10rpx;
  348. }
  349. .mpvue-calendar .mc-range-mode .mc-range-select-one div.mc-range-bg{
  350. display: none !important;
  351. }
  352. .mc-body .mc-today-element .calendar-date{
  353. background-color: rgba(25, 47, 89, 0.1);
  354. border-radius: 6rpx;
  355. }
  356. /*week switch*/
  357. .mpvue-calendar .mc-range-mode.week-switch .month-last-date.mc-range-begin .mc-range-bg{
  358. width: 130%;
  359. border-radius: 0px 20% 20% 0px;
  360. }
  361. .mpvue-calendar .mc-range-mode.week-switch .mc-range-month-last .mc-range-bg{
  362. background-color: #01a1ed;
  363. border-radius: 0px 20% 20% 0px;
  364. }
  365. /*month range*/
  366. .mpvue-calendar .month-range-mode{
  367. border-bottom: 1px solid #f2f2f2;
  368. position: relative;
  369. }
  370. .mpvue-calendar .mc-month-range-mode-head{
  371. box-shadow: 0 4px 8px rgba(25,47,89,.1);
  372. padding: 15rpx 0rpx;
  373. position: sticky;
  374. top: 0px;
  375. background-color: #fff;
  376. z-index: 9;
  377. }
  378. .month-range-mode .month-rang-head {
  379. text-align: left;
  380. margin: 20rpx 0px;
  381. padding-left: 40rpx;
  382. font-size: 28rpx;
  383. }
  384. .month-range-mode .mc-last-month, .month-range-mode .mc-next-month{
  385. opacity: 0 !important;
  386. }
  387. .month-text-background{
  388. position: absolute;
  389. font-size: 140px;
  390. width: 100%;
  391. height: 100%;
  392. text-align: center;
  393. line-height: 2.4;
  394. }