browser-style.css 8.8 KB

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