calendar.css 3.5 KB

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