calendar.css 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. .calendar {
  2. width: 280px;
  3. height: 330px;
  4. }
  5. .calendar-modal {
  6. display: none;
  7. position: absolute;
  8. background: #fdfdfd;
  9. border: 1px solid #e8e8e8;
  10. box-shadow: 1px 2px 3px #ddd
  11. }
  12. .calendar-inner {
  13. position: relative;
  14. z-index: 1;
  15. -webkit-perspective: 1000;
  16. -moz-perspective: 1000;
  17. -ms-perspective: 1000;
  18. perspective: 1000;
  19. -ms-transform: perspective(1000px);
  20. -moz-transform: perspective(1000px);
  21. -moz-transform-style: preserve-3d;
  22. -ms-transform-style: preserve-3d;
  23. }
  24. .calendar-views {
  25. transform-style: preserve-3d;
  26. }
  27. .calendar .view {
  28. backface-visibility: hidden;
  29. position: absolute;
  30. top: 0;
  31. left: 0;
  32. *overflow: hidden;
  33. -webkit-transition: .6s;
  34. transition: .6s;
  35. }
  36. .calendar-d .view-month,
  37. .calendar-m .view-date {
  38. transform: rotateY(180deg);
  39. visibility: hidden;
  40. z-index: 1;
  41. }
  42. .calendar-d .view-date,
  43. .calendar-m .view-month {
  44. transform: rotateY(0deg);
  45. visibility: visible;
  46. z-index: 2;
  47. }
  48. .calendar-ct,
  49. .calendar-hd,
  50. .calendar-views .week,
  51. .calendar-views .days {
  52. overflow: hidden;
  53. }
  54. .calendar-views {
  55. width: 100%;
  56. }
  57. .calendar .view,
  58. .calendar-display,
  59. .calendar-arrow .prev,
  60. .calendar .date-items li {
  61. float: left;
  62. }
  63. .calendar-arrow,
  64. .calendar-arrow .next {
  65. float: right;
  66. }
  67. .calendar-hd {
  68. padding: 10px 0;
  69. /* height: 30px;*/
  70. line-height: 30px;
  71. }
  72. .calendar-display {
  73. font-size: 28px;
  74. text-indent: 10px;
  75. }
  76. .view-month .calendar-hd {
  77. padding: 10px;
  78. }
  79. .calendar-arrow,
  80. .calendar-display {
  81. color: #ddd;
  82. }
  83. .calendar li[disabled] {
  84. color: #bbb;
  85. }
  86. .calendar li.old[disabled],
  87. .calendar li.new[disabled] {
  88. color: #eee;
  89. }
  90. .calendar-display .m,
  91. .calendar-views .week,
  92. .calendar-views .days .old,
  93. .calendar-views .days .new,
  94. .calendar-display:hover,
  95. .calendar-arrow span:hover {
  96. color: #888;
  97. }
  98. .calendar-arrow span,
  99. .calendar-views .days li[data-calendar-day],
  100. .calendar-views .view-month li[data-calendar-month] {
  101. cursor: pointer;
  102. }
  103. .calendar li[disabled] {
  104. cursor: not-allowed;
  105. }
  106. .calendar-arrow {
  107. width: 50px;
  108. margin-right: 10px;
  109. }
  110. .calendar-arrow span {
  111. font: 500 26px sans-serif;
  112. }
  113. .calendar ol li {
  114. position: relative;
  115. float: left;
  116. text-align: center;
  117. border-radius: 50%;
  118. }
  119. .calendar .week li,
  120. .calendar .days li {
  121. width: 40px;
  122. height: 40px;
  123. line-height: 40px;
  124. }
  125. .calendar .month-items li {
  126. width: 70px;
  127. height: 70px;
  128. line-height: 70px;
  129. }
  130. .calendar .days li[data-calendar-day]:hover,
  131. .calendar .view-month li[data-calendar-month]:hover {
  132. background: #eee;
  133. }
  134. .calendar .calendar-views .now {
  135. color: #fff;
  136. background: #FF808E!important;
  137. }
  138. .calendar .calendar-views .selected {
  139. color: #FF808E;
  140. background: #CDE9D9!important;
  141. }
  142. .calendar .calendar-views .dot {
  143. position: absolute;
  144. left: 50%;
  145. bottom: 4px;
  146. margin-left: -2px;
  147. width: 4px;
  148. height: 4px;
  149. background: #FF808E;
  150. border-radius: 50%;
  151. }
  152. .calendar-views .now .dot {
  153. background: #fff;
  154. }
  155. .calendar .date-items {
  156. width: 300%;
  157. margin-left: -100%;
  158. }
  159. .calendar-label {
  160. display: none;
  161. position: absolute;
  162. top: 50%;
  163. left: 50%;
  164. z-index: 2;
  165. padding: 5px 10px;
  166. line-height: 22px;
  167. color: #fff;
  168. background: #000;
  169. border-radius: 3px;
  170. opacity: .7;
  171. filter: alpha(opacity=70);
  172. }
  173. .calendar-label i {
  174. display: none;
  175. position: absolute;
  176. left: 50%;
  177. bottom: -12px;
  178. width: 0;
  179. height: 0;
  180. margin-left: -3px;
  181. border: 6px solid transparent;
  182. border-top-color: #000;
  183. }