calendar.css 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. }
  5. body {
  6. font-family: "Microsoft Yahei";
  7. font-size: 12px;
  8. color: #888;
  9. }
  10. a,
  11. a:hover {
  12. color: #888;
  13. text-decoration: none;
  14. }
  15. ul,
  16. li {
  17. list-style: none;
  18. }
  19. .calendarbox {
  20. position: relative;
  21. }
  22. #calendarboxes {
  23. display: none;
  24. }
  25. #calendar {
  26. top: -30px;
  27. position: absolute;
  28. width: 219px;
  29. padding: 10px;
  30. margin: 30px auto 0;
  31. border: 1px solid #fff;
  32. background-color: #393c4c;
  33. border-radius: 6px;
  34. z-index: 200;
  35. }
  36. .calendar-title {
  37. position: relative;
  38. height: 30px;
  39. line-height: 30px;
  40. padding: 10px 0;
  41. }
  42. .calendar-title a.title {
  43. display: inline-block;
  44. font-size: 18px;
  45. text-indent: 10px;
  46. }
  47. #backToday {
  48. display: none;
  49. position: absolute;
  50. left: 65%;
  51. top: 16px;
  52. width: 20px;
  53. height: 20px;
  54. line-height: 20px;
  55. text-align: center;
  56. border-radius: 50%;
  57. color: #fff;
  58. background-color: #337ab7;
  59. font-size: 18px;
  60. }
  61. .calendar-title .arrow {
  62. position: absolute;
  63. top: 10px;
  64. right: 0;
  65. width: 50px;
  66. }
  67. .calendar-title .arrow span {
  68. color: #ddd;
  69. font-size: 18px;
  70. cursor: pointer;
  71. -webkit-user-select: none;
  72. -moz-user-select: none;
  73. -ms-user-select: none;
  74. -o-user-select: none;
  75. user-select: none;
  76. }
  77. .calendar-title .arrow span:hover {
  78. color: #888;
  79. }
  80. .calendar-title .arrow-prev {
  81. float: left;
  82. }
  83. .calendar-title .arrow-next {
  84. float: right;
  85. }
  86. .calendar-week,
  87. .calendar-date {
  88. overflow: hidden;
  89. }
  90. .calendar-week .item,
  91. .calendar-date .item {
  92. float: left;
  93. width: 30px;
  94. height: 30px;
  95. line-height: 30px;
  96. text-align: center;
  97. }
  98. .calendar-week {
  99. padding-bottom: 6px;
  100. border-bottom: 1px solid #337ab7;
  101. font-weight: bold;
  102. font-size: 16px;
  103. }
  104. .calendar-date {
  105. width: 220px;
  106. }
  107. .calendar-date .item {
  108. border-radius: 50%;
  109. cursor: pointer;
  110. font-size: 14px;
  111. }
  112. .calendar-date .item:hover,
  113. .calendar-date .item-curMonth:hover {
  114. background-color: #2b2c39;
  115. }
  116. .calendar-date .item-curMonth {
  117. color: #fff;
  118. font-weight: bold;
  119. }
  120. .calendar-date .item-curDay,
  121. .calendar-date .item-curDay:hover {
  122. color: #fff;
  123. background-color: #337ab7;
  124. }
  125. .calendar-date .item-selected,
  126. .calendar-date .item-selected:hover {
  127. color: #337ab7;
  128. background: #cde9d9;
  129. }
  130. .calendar-today {
  131. display: none;
  132. position: absolute;
  133. right: 20px;
  134. top: 20px;
  135. width: 90px;
  136. height: 48px;
  137. padding: 6px 10px;
  138. background-color: #337ab7;
  139. border-radius: 5px;
  140. }
  141. .calendar-today .triangle {
  142. position: absolute;
  143. top: 50%;
  144. left: -16px;
  145. margin-top: -8px;
  146. border-width: 8px;
  147. border-style: solid;
  148. border-color: transparent #337ab7 transparent transparent;
  149. }
  150. .calendar-today p {
  151. color: #fff;
  152. font-size: 14px;
  153. line-height: 24px;
  154. }