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: 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: 50px;
  114. text-align: center;
  115. border-width: 1px;
  116. border-style: solid;
  117. outline-style: none;
  118. resize: none;
  119. margin: 0;
  120. padding: 2px;
  121. font-weight: bold;
  122. font-size: 12px;
  123. -moz-border-radius: 0px 0px 0px 0px;
  124. -webkit-border-radius: 0px 0px 0px 0px;
  125. border-radius: 0px 0px 0px 0px;
  126. }
  127. .calendar-menu-prev,
  128. .calendar-menu-next {
  129. display: inline-block;
  130. width: 21px;
  131. height: 21px;
  132. vertical-align: top;
  133. cursor: pointer;
  134. -moz-border-radius: 0px 0px 0px 0px;
  135. -webkit-border-radius: 0px 0px 0px 0px;
  136. border-radius: 0px 0px 0px 0px;
  137. }
  138. .calendar-menu-prev {
  139. margin-right: 10px;
  140. background: url('images/calendar_arrows.png') no-repeat 2px 2px;
  141. }
  142. .calendar-menu-next {
  143. margin-left: 10px;
  144. background: url('images/calendar_arrows.png') no-repeat -45px 2px;
  145. }
  146. .calendar-menu-month {
  147. text-align: center;
  148. cursor: pointer;
  149. font-weight: bold;
  150. -moz-border-radius: 0px 0px 0px 0px;
  151. -webkit-border-radius: 0px 0px 0px 0px;
  152. border-radius: 0px 0px 0px 0px;
  153. }
  154. .calendar-body th,
  155. .calendar-menu-month {
  156. color: #8d8d8d;
  157. }
  158. .calendar-day {
  159. color: #404040;
  160. }
  161. .calendar-sunday {
  162. color: #CC2222;
  163. }
  164. .calendar-saturday {
  165. color: #00ee00;
  166. }
  167. .calendar-today {
  168. color: #0000ff;
  169. }
  170. .calendar-menu-year {
  171. border-color: #f6c1bc;
  172. }
  173. .calendar {
  174. border-color: #f6c1bc;
  175. }
  176. .calendar-header {
  177. background: #f0e1e3;
  178. }
  179. .calendar-body,
  180. .calendar-menu {
  181. background: #fafafa;
  182. }
  183. .calendar-body th {
  184. background: #f5f5f5;
  185. padding: 2px 0;
  186. }
  187. .calendar-hover,
  188. .calendar-nav-hover,
  189. .calendar-menu-hover {
  190. background-color: #fff0e7;
  191. color: #404040;
  192. }
  193. .calendar-hover {
  194. border: 1px solid #fff0e7;
  195. padding: 0;
  196. }
  197. .calendar-selected {
  198. background-color: #f09090;
  199. color: #404040;
  200. border: 1px solid #f09090;
  201. padding: 0;
  202. }