calendar.css 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. /* The main calendar widget. DIV containing a table. */
  2. .calendar {
  3. position: relative;
  4. display: none;
  5. border-top: 2px solid #fff;
  6. border-right: 2px solid #000;
  7. border-bottom: 2px solid #000;
  8. border-left: 2px solid #fff;
  9. font-size: 11px;
  10. color: #000;
  11. cursor: default;
  12. background: #c8d0d4;
  13. font-family: tahoma,verdana,sans-serif;
  14. }
  15. .calendar table {
  16. border-top: 1px solid #000;
  17. border-right: 1px solid #fff;
  18. border-bottom: 1px solid #fff;
  19. border-left: 1px solid #000;
  20. font-size: 11px;
  21. color: #000;
  22. cursor: default;
  23. background: #c8d0d4;
  24. font-family: tahoma,verdana,sans-serif;
  25. }
  26. /* Header part -- contains navigation buttons and day names. */
  27. .calendar .button { /* "<<", "<", ">", ">>" buttons have this class */
  28. text-align: center;
  29. padding: 1px;
  30. border-top: 1px solid #fff;
  31. border-right: 1px solid #000;
  32. border-bottom: 1px solid #000;
  33. border-left: 1px solid #fff;
  34. }
  35. .calendar thead .title { /* This holds the current "month, year" */
  36. font-weight: bold;
  37. padding: 1px;
  38. border: 1px solid #000;
  39. background: #788084;
  40. color: #fff;
  41. text-align: center;
  42. }
  43. .calendar thead .headrow { /* Row <TR> containing navigation buttons */
  44. }
  45. .calendar thead .daynames { /* Row <TR> containing the day names */
  46. }
  47. .calendar thead .name { /* Cells <TD> containing the day names */
  48. border-bottom: 1px solid #000;
  49. padding: 2px;
  50. text-align: center;
  51. background: #e8f0f4;
  52. }
  53. .calendar thead .weekend { /* How a weekend day name shows in header */
  54. color: #f00;
  55. }
  56. .calendar thead .hilite { /* How do the buttons in header appear when hover */
  57. border-top: 2px solid #fff;
  58. border-right: 2px solid #000;
  59. border-bottom: 2px solid #000;
  60. border-left: 2px solid #fff;
  61. padding: 0px;
  62. background: #d8e0e4;
  63. }
  64. .calendar thead .active { /* Active (pressed) buttons in header */
  65. padding: 2px 0px 0px 2px;
  66. border-top: 1px solid #000;
  67. border-right: 1px solid #fff;
  68. border-bottom: 1px solid #fff;
  69. border-left: 1px solid #000;
  70. background: #b8c0c4;
  71. }
  72. /* The body part -- contains all the days in month. */
  73. .calendar tbody .day { /* Cells <TD> containing month days dates */
  74. width: 2em;
  75. text-align: right;
  76. padding: 2px 4px 2px 2px;
  77. }
  78. .calendar table .wn {
  79. padding: 2px 3px 2px 2px;
  80. border-right: 1px solid #000;
  81. background: #e8f4f0;
  82. }
  83. .calendar tbody .rowhilite td {
  84. background: #d8e4e0;
  85. }
  86. .calendar tbody .rowhilite td.wn {
  87. background: #c8d4d0;
  88. }
  89. .calendar tbody td.hilite { /* Hovered cells <TD> */
  90. padding: 1px 3px 1px 1px;
  91. border: 1px solid;
  92. border-color: #fff #000 #000 #fff;
  93. }
  94. .calendar tbody td.active { /* Active (pressed) cells <TD> */
  95. padding: 2px 2px 0px 2px;
  96. border: 1px solid;
  97. border-color: #000 #fff #fff #000;
  98. }
  99. .calendar tbody td.selected { /* Cell showing selected date */
  100. font-weight: bold;
  101. padding: 2px 2px 0px 2px;
  102. border: 1px solid;
  103. border-color: #000 #fff #fff #000;
  104. background: #d8e0e4;
  105. }
  106. .calendar tbody td.weekend { /* Cells showing weekend days */
  107. color: #f00;
  108. }
  109. .calendar tbody td.today { /* Cell showing today date */
  110. font-weight: bold;
  111. color: #00f;
  112. }
  113. .calendar tbody .disabled { color: #999; }
  114. .calendar tbody .emptycell { /* Empty cells (the best is to hide them) */
  115. visibility: hidden;
  116. }
  117. .calendar tbody .emptyrow { /* Empty row (some months need less than 6 rows) */
  118. display: none;
  119. }
  120. /* The footer part -- status bar and "Close" button */
  121. .calendar tfoot .footrow { /* The <TR> in footer (only one right now) */
  122. }
  123. .calendar tfoot .ttip { /* Tooltip (status bar) cell <TD> */
  124. background: #e8f0f4;
  125. padding: 1px;
  126. border: 1px solid #000;
  127. background: #788084;
  128. color: #fff;
  129. text-align: center;
  130. }
  131. .calendar tfoot .hilite { /* Hover style for buttons in footer */
  132. border-top: 1px solid #fff;
  133. border-right: 1px solid #000;
  134. border-bottom: 1px solid #000;
  135. border-left: 1px solid #fff;
  136. padding: 1px;
  137. background: #d8e0e4;
  138. }
  139. .calendar tfoot .active { /* Active (pressed) style for buttons in footer */
  140. padding: 2px 0px 0px 2px;
  141. border-top: 1px solid #000;
  142. border-right: 1px solid #fff;
  143. border-bottom: 1px solid #fff;
  144. border-left: 1px solid #000;
  145. }
  146. /* Combo boxes (menus that display months/years for direct selection) */
  147. .combo {
  148. position: absolute;
  149. display: none;
  150. width: 4em;
  151. top: 0px;
  152. left: 0px;
  153. cursor: default;
  154. border-top: 1px solid #fff;
  155. border-right: 1px solid #000;
  156. border-bottom: 1px solid #000;
  157. border-left: 1px solid #fff;
  158. background: #d8e0e4;
  159. font-size: smaller;
  160. padding: 1px;
  161. }
  162. .combo .label {
  163. text-align: center;
  164. padding: 1px;
  165. }
  166. .combo .active {
  167. background: #c8d0d4;
  168. padding: 0px;
  169. border-top: 1px solid #000;
  170. border-right: 1px solid #fff;
  171. border-bottom: 1px solid #fff;
  172. border-left: 1px solid #000;
  173. }
  174. .combo .hilite {
  175. background: #048;
  176. color: #aef;
  177. }