calendar.css 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  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: 14px;
  11. width: 100%;
  12. height: 100%;
  13. }
  14. .calendar table td,
  15. .calendar table th {
  16. font-size: 14px;
  17. }
  18. .calendar-noborder {
  19. border: 0;
  20. }
  21. .calendar-header {
  22. position: relative;
  23. height: 28px;
  24. }
  25. .calendar-title {
  26. text-align: center;
  27. height: 28px;
  28. }
  29. .calendar-title span {
  30. position: relative;
  31. display: inline-block;
  32. top: 0px;
  33. padding: 0 3px;
  34. height: 28px;
  35. line-height: 28px;
  36. font-size: 14px;
  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: -8px;
  49. width: 16px;
  50. height: 16px;
  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 -16px 0;
  60. }
  61. .calendar-nextmonth {
  62. right: 20px;
  63. background: url('images/calendar_arrows.png') no-repeat -32px 0;
  64. }
  65. .calendar-prevyear {
  66. left: 3px;
  67. background: url('images/calendar_arrows.png') no-repeat 0px 0;
  68. }
  69. .calendar-nextyear {
  70. right: 3px;
  71. background: url('images/calendar_arrows.png') no-repeat -48px 0;
  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: 14px;
  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: 80px;
  114. line-height: 26px;
  115. text-align: center;
  116. border-width: 1px;
  117. border-style: solid;
  118. outline-style: none;
  119. resize: none;
  120. margin: 0;
  121. padding: 0;
  122. font-weight: bold;
  123. font-size: 14px;
  124. -moz-border-radius: 0px 0px 0px 0px;
  125. -webkit-border-radius: 0px 0px 0px 0px;
  126. border-radius: 0px 0px 0px 0px;
  127. }
  128. .calendar-menu-prev,
  129. .calendar-menu-next {
  130. display: inline-block;
  131. width: 25px;
  132. height: 28px;
  133. vertical-align: top;
  134. cursor: pointer;
  135. -moz-border-radius: 0px 0px 0px 0px;
  136. -webkit-border-radius: 0px 0px 0px 0px;
  137. border-radius: 0px 0px 0px 0px;
  138. }
  139. .calendar-menu-prev {
  140. margin-right: 10px;
  141. background: url('images/calendar_arrows.png') no-repeat 5px center;
  142. }
  143. .calendar-menu-next {
  144. margin-left: 10px;
  145. background: url('images/calendar_arrows.png') no-repeat -44px center;
  146. }
  147. .calendar-menu-month {
  148. text-align: center;
  149. cursor: pointer;
  150. font-weight: bold;
  151. -moz-border-radius: 0px 0px 0px 0px;
  152. -webkit-border-radius: 0px 0px 0px 0px;
  153. border-radius: 0px 0px 0px 0px;
  154. }
  155. .calendar-body th,
  156. .calendar-menu-month {
  157. color: #919191;
  158. }
  159. .calendar-day {
  160. color: #444;
  161. }
  162. .calendar-sunday {
  163. color: #CC2222;
  164. }
  165. .calendar-saturday {
  166. color: #00ee00;
  167. }
  168. .calendar-today {
  169. color: #0000ff;
  170. }
  171. .calendar-menu-year {
  172. border-color: #ddd;
  173. }
  174. .calendar {
  175. border-color: #ddd;
  176. }
  177. .calendar-header {
  178. background: #ffffff;
  179. }
  180. .calendar-body,
  181. .calendar-menu {
  182. background: #fff;
  183. }
  184. .calendar-body th {
  185. background: #fff;
  186. padding: 4px 0;
  187. }
  188. .calendar-hover,
  189. .calendar-nav-hover,
  190. .calendar-menu-hover {
  191. background-color: #E6E6E6;
  192. color: #444;
  193. }
  194. .calendar-hover {
  195. border: 1px solid #ddd;
  196. padding: 0;
  197. }
  198. .calendar-selected {
  199. background-color: #CCE6FF;
  200. color: #000;
  201. border: 1px solid #99cdff;
  202. padding: 0;
  203. }