style.css 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418
  1. * { margin: 0; padding: 0; font-style: normal; }
  2. ul, li { list-style: none; }
  3. body { font-family: "PingFang SC","Helvetica Neue","Helvetica", "Microsoft Yahei", "Arial",sans-serif; font-size: 14px; color: #333; }
  4. h2 { font-weight: normal; }
  5. body { overflow: hidden; width: 100%; background-size: cover; background-color: #313131; }
  6. #calendar {
  7. width: 910px;
  8. margin: 0 auto;
  9. -webkit-touch-callout: none; /* iOS Safari */
  10. -webkit-user-select: none; /* Chrome/Safari/Opera */
  11. -khtml-user-select: none; /* Konqueror */
  12. -moz-user-select: none; /* Firefox */
  13. -ms-user-select: none; /* Internet Explorer/Edge */
  14. user-select: none; /* Non-prefixed version, currently*/
  15. }
  16. #calendar .header {
  17. position: relative;
  18. width: 100%;
  19. height: 37px;
  20. border-bottom: 1px solid #b4b2b3;
  21. background-color: #e7e5e7;
  22. border-top-left-radius: 5px;
  23. border-top-right-radius: 5px;
  24. }
  25. #calendar .header ul {
  26. position: absolute;
  27. left: 420px;
  28. top: 8px;
  29. overflow: hidden;
  30. border-radius: 3px;
  31. font-size: 0;
  32. }
  33. #calendar .header ul li {
  34. display: inline-block;
  35. width: 62px;
  36. height: 24px;
  37. line-height: 24px;
  38. font-size: 14px;
  39. text-align: center;
  40. background-color: #fff;
  41. cursor: default;
  42. }
  43. #calendar .header ul li.cur {
  44. color: #fff;
  45. background-color: #6f6e6f;
  46. }
  47. #calendar .sidebar {
  48. float: left;
  49. width: 167px;
  50. height: 609px;
  51. border-right: 1px solid #d4dad3;
  52. background-color: rgba(255, 255, 255, .9);
  53. }
  54. #calendar .sidebar .wrapper {
  55. width: 100%;
  56. padding: 12px 0;
  57. border-bottom: 1px solid #c8d6c7;
  58. }
  59. #calendar .sidebar .title {
  60. position: relative;
  61. text-align: center;
  62. }
  63. #calendar .sidebar .btn {
  64. padding: 0 10px;
  65. position: absolute;
  66. cursor: default;
  67. }
  68. #calendar .sidebar .btn-prev {
  69. left: 8px;
  70. }
  71. #calendar .sidebar .btn-next {
  72. right: 8px;
  73. }
  74. #calendar .sidebar .date {}
  75. #calendar .sidebar .week {
  76. height: 20px;
  77. padding-top: 10px;
  78. line-height: 20px;
  79. font-size: 0;
  80. text-align: center;
  81. }
  82. #calendar .sidebar .week li {
  83. display: inline-block;
  84. font-size: 12px;
  85. width: 22px;
  86. height: 20px;
  87. text-align: center;
  88. }
  89. #calendar .sidebar .day {
  90. text-align: center;
  91. font-size: 0;
  92. }
  93. #calendar .sidebar .day li {
  94. display: inline-block;
  95. width: 18px;
  96. height: 18px;
  97. margin: 2px;
  98. line-height: 18px;
  99. font-size: 12px;
  100. text-align: center;
  101. color: #ccc;
  102. cursor: default;
  103. }
  104. #calendar .sidebar .day li.cur-month {
  105. color: #333;
  106. }
  107. #calendar .sidebar .day li.cur-day {
  108. color: #fff;
  109. background-color: #FF6D6D;
  110. border-radius: 50%;
  111. }
  112. #calendar .container {
  113. position: relative;
  114. float: left;
  115. width: 742px;
  116. height: 604px;
  117. background-color: #fff;
  118. }
  119. #calendar .container .render {
  120. display: none;
  121. }
  122. #calendar .container .render-show {
  123. display: block;
  124. }
  125. #renderMonth {
  126. padding-top: 5px;
  127. }
  128. #renderMonth .title {
  129. padding-left: 16px;
  130. line-height: 42px;
  131. font-size: 30px;
  132. }
  133. #renderMonth .week {
  134. height: 33px;
  135. line-height: 33px;
  136. border-bottom: 1px solid #c8c6cc;
  137. font-size: 0;
  138. }
  139. #renderMonth .week li {
  140. position: relative;
  141. right: 12px;
  142. display: inline-block;
  143. width: 106px;
  144. font-size: 18px;
  145. text-align: right;
  146. }
  147. #renderMonth .day {
  148. font-size: 0;
  149. }
  150. #renderMonth .day li {
  151. display: inline-block;
  152. width: 106px;
  153. height: 88px;
  154. padding: 6px;
  155. border-right: 1px solid #e6e5e6;
  156. border-bottom: 1px solid #e6e5e6;
  157. box-sizing: border-box;
  158. font-size: 14px;
  159. vertical-align: top;
  160. color: #ccc;
  161. background-color: #fff;
  162. }
  163. #renderMonth .day li.cur-month {
  164. color: #333;
  165. }
  166. #renderMonth .day li.cur-day {
  167. color: #333;
  168. }
  169. #renderMonth .day li.weekend {
  170. background-color: #f4f6f7;
  171. }
  172. #renderMonth .day li p {
  173. margin-bottom: 8px;
  174. }
  175. #renderMonth .day li .info {
  176. height: 20px;
  177. }
  178. #renderMonth .day li .lunar {
  179. float: left;
  180. }
  181. #renderMonth .day li .first-lunarday {
  182. position: relative;
  183. left: -5px;
  184. border-bottom: 1px solid #ff6d6d;
  185. }
  186. #renderMonth .day li .first-lunarJanuary {
  187. position: relative;
  188. left: -5px;
  189. border-bottom: 2px solid #ff6d6d;
  190. }
  191. #renderMonth .day li .date {
  192. float: right;
  193. }
  194. #renderMonth .day li.cur-day .date {
  195. }
  196. #renderMonth .day li.cur-day .date em {
  197. display: inline-block;
  198. width: 20px;
  199. height: 20px;
  200. line-height: 20px;
  201. margin-right: 2px;
  202. text-align: center;
  203. color: #fff;
  204. background-color: #ff6d6d;
  205. border-radius: 50%;
  206. }
  207. #renderMonth .day li .festival {
  208. display: none;
  209. padding-left: 10px;
  210. height: 16px;
  211. line-height: 16px;
  212. color: #333;
  213. background-color: #f9d8f8;
  214. cursor: default;
  215. }
  216. #renderMonth .day li .festival.show {
  217. display: block;
  218. }
  219. #renderMonth .day li .term {
  220. display: none;
  221. color: #333;
  222. height: 16px;
  223. line-height: 16px;
  224. padding-left: 10px;
  225. background-color: #a7d1ed;
  226. cursor: default;
  227. }
  228. #renderMonth .day li .term.show {
  229. display: block;
  230. }
  231. #renderFullYear {
  232. padding-top: 5px;
  233. }
  234. #renderFullYear > .title {
  235. width: 617px;
  236. height: 42px;
  237. padding: 0 0 10px 16px;
  238. }
  239. #renderFullYear > .title h2 {
  240. display: inline-block;
  241. line-height: 42px;
  242. font-size: 30px;
  243. }
  244. #renderFullYear > .title p {
  245. float: right;
  246. margin-top: 10px;
  247. margin-right: 15px;
  248. }
  249. #renderFullYear > .title .lunar-year {}
  250. #renderFullYear > .title .lunar-year i {
  251. display: inline-block;
  252. margin: 9px 6px 0 0;
  253. width: 16px;
  254. height: 3px;
  255. background-color: #FF6D6D;
  256. vertical-align: top;
  257. }
  258. #renderFullYear > .title .info {}
  259. #renderFullYear > .title .info i {
  260. display: inline-block;
  261. width: 14px;
  262. height: 1px;
  263. margin-top: -3px;
  264. margin-right: 5px;
  265. background-color: #ff6d6d;
  266. vertical-align: middle;
  267. }
  268. #renderFullYear .month {
  269. font-size: 0;
  270. }
  271. #renderFullYear .month .item {
  272. display: inline-block;
  273. width: 25%;
  274. padding: 0 10px;
  275. box-sizing: border-box;
  276. }
  277. #renderFullYear .month .title {
  278. padding-left: 8px;
  279. font-size: 18px;
  280. color: #ff6d6d;
  281. }
  282. #renderFullYear .month .week {
  283. font-size: 0;
  284. text-align: center;
  285. }
  286. #renderFullYear .month .week li {
  287. display: inline-block;
  288. width: 22px;
  289. height: 20px;
  290. line-height: 20px;
  291. font-size: 12px;
  292. color: #ccc;
  293. }
  294. #renderFullYear .month .day {
  295. text-align: center;
  296. font-size: 0;
  297. }
  298. #renderFullYear .month .day li {
  299. display: inline-block;
  300. width: 18px;
  301. height: 18px;
  302. line-height: 18px;
  303. margin: 2px;
  304. text-align: center;
  305. color: #ccc;
  306. font-size: 10px;
  307. cursor: default;
  308. }
  309. #renderFullYear .month .day li.lunar-first {
  310. border-bottom: 1px solid #ff6d6d;
  311. }
  312. #renderFullYear .month .day li.lunar-january {
  313. border-bottom: 2px solid #ff6d6d;
  314. }
  315. #renderFullYear .month .day li.cur-month {
  316. color: #333;
  317. }
  318. #renderFullYear .month .day li.cur-day {
  319. color: #fff;
  320. background-color: #ff6d6d;
  321. border-radius: 50%;
  322. }
  323. #control {
  324. position: absolute;
  325. top: 16px;
  326. right: 14px;
  327. font-size: 0;
  328. }
  329. #control input {
  330. display: inline-block;
  331. height: 19px;
  332. text-align: center;
  333. border: 1px solid #dadada;
  334. border-radius: 4px;
  335. font-size: 14px;
  336. color: #333;
  337. background: #fff;
  338. vertical-align: top;
  339. outline: none;
  340. }
  341. #control .btn {
  342. width: 21px;
  343. }
  344. #control .btn-prev {}
  345. #control .btn-next {}
  346. #control .today {
  347. width: 52px;
  348. }
  349. /* 弹出框 */
  350. #popup {
  351. display: none;
  352. position: absolute;
  353. left: 200px;
  354. top: 100px;
  355. width: 260px;
  356. height: 104px;
  357. background-color: #f4f6f7;
  358. box-shadow: 0 0 2px rgba(0, 0, 0, .3);
  359. border-radius: 6px;
  360. border: 1px solid #efefef;
  361. }
  362. #popup.popup-right {}
  363. #popup .title {
  364. height: 43px;
  365. padding: 0 15px;
  366. line-height: 43px;
  367. margin-bottom: 8px;
  368. border-bottom: 1px solid #d6d6d6;
  369. }
  370. #popup .arrow {
  371. display: none;
  372. position: absolute;
  373. top: 36px;
  374. width: 0;
  375. height: 0;
  376. border-width: 14px;
  377. border-style: solid;
  378. }
  379. #popup .arrow:after {
  380. content: "";
  381. position: absolute;
  382. top: -14px;
  383. width: 0;
  384. height: 0;
  385. border-width: 14px;
  386. border-style: dashed;
  387. }
  388. #popup .arrow-left {
  389. left: -29px;
  390. border-color: transparent #d6d6d6 transparent transparent;
  391. }
  392. #popup.popup-left .arrow-left {
  393. display: block;
  394. }
  395. #popup .arrow-left:after {
  396. left: -13px;
  397. border-color: transparent #f4f6f7 transparent transparent;
  398. }
  399. #popup .arrow-right {
  400. right: -29px;
  401. border-color: transparent transparent transparent #d6d6d6;
  402. }
  403. #popup.popup-right .arrow-right {
  404. display: block;
  405. }
  406. #popup .arrow-right:after {
  407. right: -13px;
  408. border-color: transparent transparent transparent #f4f6f7;
  409. }
  410. #popup .date,
  411. #popup .lunar {
  412. padding: 0 15px;
  413. line-height: 20px;
  414. }