calendar.css 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. .calendar {
  2. border-width: 1px;
  3. border-style: solid;
  4. padding: 1px;
  5. overflow: hidden;
  6. }
  7. .calendar table {
  8. table-layout: fixed;
  9. border-collapse: separate;
  10. font-size: 12px;
  11. width: 100%;
  12. height: 100%;
  13. }
  14. .calendar table td,
  15. .calendar table th {
  16. font-size: 12px;
  17. }
  18. .calendar-noborder {
  19. border: 0;
  20. }
  21. .calendar-header {
  22. position: relative;
  23. height: 22px;
  24. }
  25. .calendar-title {
  26. text-align: center;
  27. height: 22px;
  28. }
  29. .calendar-title span {
  30. position: relative;
  31. display: inline-block;
  32. top: 2px;
  33. padding: 0 3px;
  34. height: 18px;
  35. line-height: 18px;
  36. font-size: 12px;
  37. cursor: pointer;
  38. -moz-border-radius: 0px 0px 0px 0px;
  39. -webkit-border-radius: 0px 0px 0px 0px;
  40. border-radius: 0px 0px 0px 0px;
  41. }
  42. .calendar-prevmonth,
  43. .calendar-nextmonth,
  44. .calendar-prevyear,
  45. .calendar-nextyear {
  46. position: absolute;
  47. top: 50%;
  48. margin-top: -7px;
  49. width: 14px;
  50. height: 14px;
  51. cursor: pointer;
  52. font-size: 1px;
  53. -moz-border-radius: 0px 0px 0px 0px;
  54. -webkit-border-radius: 0px 0px 0px 0px;
  55. border-radius: 0px 0px 0px 0px;
  56. }
  57. .calendar-prevmonth {
  58. left: 20px;
  59. background: url('images/calendar_arrows.png') no-repeat -18px -2px;
  60. }
  61. .calendar-nextmonth {
  62. right: 20px;
  63. background: url('images/calendar_arrows.png') no-repeat -34px -2px;
  64. }
  65. .calendar-prevyear {
  66. left: 3px;
  67. background: url('images/calendar_arrows.png') no-repeat -1px -2px;
  68. }
  69. .calendar-nextyear {
  70. right: 3px;
  71. background: url('images/calendar_arrows.png') no-repeat -49px -2px;
  72. }
  73. .calendar-body {
  74. position: relative;
  75. }
  76. .calendar-body th,
  77. .calendar-body td {
  78. text-align: center;
  79. }
  80. .calendar-day {
  81. border: 0;
  82. padding: 1px;
  83. cursor: pointer;
  84. -moz-border-radius: 0px 0px 0px 0px;
  85. -webkit-border-radius: 0px 0px 0px 0px;
  86. border-radius: 0px 0px 0px 0px;
  87. }
  88. .calendar-other-month {
  89. opacity: 0.3;
  90. filter: alpha(opacity=30);
  91. }
  92. .calendar-disabled {
  93. opacity: 0.6;
  94. filter: alpha(opacity=60);
  95. cursor: default;
  96. }
  97. .calendar-menu {
  98. position: absolute;
  99. top: 0;
  100. left: 0;
  101. width: 180px;
  102. height: 150px;
  103. padding: 5px;
  104. font-size: 12px;
  105. display: none;
  106. overflow: hidden;
  107. }
  108. .calendar-menu-year-inner {
  109. text-align: center;
  110. padding-bottom: 5px;
  111. }
  112. .calendar-menu-year {
  113. width: 40px;
  114. text-align: center;
  115. border-width: 1px;
  116. border-style: solid;
  117. margin: 0;
  118. padding: 2px;
  119. font-weight: bold;
  120. font-size: 12px;
  121. }
  122. .calendar-menu-prev,
  123. .calendar-menu-next {
  124. display: inline-block;
  125. width: 21px;
  126. height: 21px;
  127. vertical-align: top;
  128. cursor: pointer;
  129. -moz-border-radius: 0px 0px 0px 0px;
  130. -webkit-border-radius: 0px 0px 0px 0px;
  131. border-radius: 0px 0px 0px 0px;
  132. }
  133. .calendar-menu-prev {
  134. margin-right: 10px;
  135. background: url('images/calendar_arrows.png') no-repeat 2px 2px;
  136. }
  137. .calendar-menu-next {
  138. margin-left: 10px;
  139. background: url('images/calendar_arrows.png') no-repeat -45px 2px;
  140. }
  141. .calendar-menu-month {
  142. text-align: center;
  143. cursor: pointer;
  144. font-weight: bold;
  145. -moz-border-radius: 0px 0px 0px 0px;
  146. -webkit-border-radius: 0px 0px 0px 0px;
  147. border-radius: 0px 0px 0px 0px;
  148. }
  149. .calendar-body th,
  150. .calendar-menu-month {
  151. color: #919191;
  152. }
  153. .calendar-day {
  154. color: #444;
  155. }
  156. .calendar-sunday {
  157. color: #CC2222;
  158. }
  159. .calendar-saturday {
  160. color: #00ee00;
  161. }
  162. .calendar-today {
  163. color: #0000ff;
  164. }
  165. .calendar-menu-year {
  166. border-color: #ddd;
  167. }
  168. .calendar {
  169. border-color: #ddd;
  170. }
  171. .calendar-header {
  172. background: #ffffff;
  173. }
  174. .calendar-body,
  175. .calendar-menu {
  176. background: #fff;
  177. }
  178. .calendar-body th {
  179. background: #fff;
  180. padding: 2px 0;
  181. }
  182. .calendar-hover,
  183. .calendar-nav-hover,
  184. .calendar-menu-hover {
  185. background-color: #E6E6E6;
  186. color: #444;
  187. }
  188. .calendar-hover {
  189. border: 1px solid #ddd;
  190. padding: 0;
  191. }
  192. .calendar-selected {
  193. background-color: #CCE6FF;
  194. color: #000;
  195. border: 1px solid #99cdff;
  196. padding: 0;
  197. }