calendar-system.css 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. /* The main calendar widget. DIV containing a table. */
  2. .calendar {
  3. position: relative;
  4. display: none;
  5. border: 1px solid;
  6. border-color: #fff #000 #000 #fff;
  7. font-size: 11px;
  8. cursor: default;
  9. background: Window;
  10. color: WindowText;
  11. font-family: tahoma,verdana,sans-serif;
  12. z-index: 10;
  13. }
  14. .calendar table {
  15. border: 1px solid;
  16. border-color: #fff #000 #000 #fff;
  17. font-size: 11px;
  18. cursor: default;
  19. background: Window;
  20. color: WindowText;
  21. font-family: tahoma,verdana,sans-serif;
  22. }
  23. /* Header part -- contains navigation buttons and day names. */
  24. .calendar .button { /* "<<", "<", ">", ">>" buttons have this class */
  25. text-align: center;
  26. padding: 1px;
  27. border: 1px solid;
  28. border-color: ButtonHighlight ButtonShadow ButtonShadow ButtonHighlight;
  29. background: ButtonFace;
  30. }
  31. .calendar .nav {
  32. background: ButtonFace url(menuarrow.gif) no-repeat 100% 100%;
  33. }
  34. .calendar thead .title { /* This holds the current "month, year" */
  35. font-weight: bold;
  36. padding: 1px;
  37. border: 1px solid #000;
  38. background: ActiveCaption;
  39. color: CaptionText;
  40. text-align: center;
  41. }
  42. .calendar thead .headrow { /* Row <TR> containing navigation buttons */
  43. }
  44. .calendar thead .daynames { /* Row <TR> containing the day names */
  45. }
  46. .calendar thead .name { /* Cells <TD> containing the day names */
  47. border-bottom: 1px solid ButtonShadow;
  48. padding: 2px;
  49. text-align: center;
  50. background: ButtonFace;
  51. color: ButtonText;
  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: 2px solid;
  58. padding: 0px;
  59. border-color: ButtonHighlight ButtonShadow ButtonShadow ButtonHighlight;
  60. }
  61. .calendar thead .active { /* Active (pressed) buttons in header */
  62. border-width: 1px;
  63. padding: 2px 0px 0px 2px;
  64. border-color: ButtonShadow ButtonHighlight ButtonHighlight ButtonShadow;
  65. }
  66. /* The body part -- contains all the days in month. */
  67. .calendar tbody .day { /* Cells <TD> containing month days dates */
  68. width: 2em;
  69. text-align: right;
  70. padding: 2px 4px 2px 2px;
  71. }
  72. .calendar tbody .day.othermonth {
  73. font-size: 80%;
  74. color: #aaa;
  75. }
  76. .calendar tbody .day.othermonth.oweekend {
  77. color: #faa;
  78. }
  79. .calendar table .wn {
  80. padding: 2px 3px 2px 2px;
  81. border-right: 1px solid ButtonShadow;
  82. background: ButtonFace;
  83. color: ButtonText;
  84. }
  85. .calendar tbody .rowhilite td {
  86. background: Highlight;
  87. color: HighlightText;
  88. }
  89. .calendar tbody td.hilite { /* Hovered cells <TD> */
  90. padding: 1px 3px 1px 1px;
  91. border-top: 1px solid #fff;
  92. border-right: 1px solid #000;
  93. border-bottom: 1px solid #000;
  94. border-left: 1px solid #fff;
  95. }
  96. .calendar tbody td.active { /* Active (pressed) cells <TD> */
  97. padding: 2px 2px 0px 2px;
  98. border: 1px solid;
  99. border-color: ButtonShadow ButtonHighlight ButtonHighlight ButtonShadow;
  100. }
  101. .calendar tbody td.selected { /* Cell showing selected date */
  102. font-weight: bold;
  103. border: 1px solid;
  104. border-color: ButtonShadow ButtonHighlight ButtonHighlight ButtonShadow;
  105. padding: 2px 2px 0px 2px;
  106. background: ButtonFace;
  107. color: ButtonText;
  108. }
  109. .calendar tbody td.weekend { /* Cells showing weekend days */
  110. color: #f00;
  111. }
  112. .calendar tbody td.today { /* Cell showing today date */
  113. font-weight: bold;
  114. color: #00f;
  115. }
  116. .calendar tbody td.disabled { color: GrayText; }
  117. .calendar tbody .emptycell { /* Empty cells (the best is to hide them) */
  118. visibility: hidden;
  119. }
  120. .calendar tbody .emptyrow { /* Empty row (some months need less than 6 rows) */
  121. display: none;
  122. }
  123. /* The footer part -- status bar and "Close" button */
  124. .calendar tfoot .footrow { /* The <TR> in footer (only one right now) */
  125. }
  126. .calendar tfoot .ttip { /* Tooltip (status bar) cell <TD> */
  127. background: ButtonFace;
  128. padding: 1px;
  129. border: 1px solid;
  130. border-color: ButtonShadow ButtonHighlight ButtonHighlight ButtonShadow;
  131. color: ButtonText;
  132. text-align: center;
  133. }
  134. .calendar tfoot .hilite { /* Hover style for buttons in footer */
  135. border-top: 1px solid #fff;
  136. border-right: 1px solid #000;
  137. border-bottom: 1px solid #000;
  138. border-left: 1px solid #fff;
  139. padding: 1px;
  140. background: #e4e0d8;
  141. }
  142. .calendar tfoot .active { /* Active (pressed) style for buttons in footer */
  143. padding: 2px 0px 0px 2px;
  144. border-top: 1px solid #000;
  145. border-right: 1px solid #fff;
  146. border-bottom: 1px solid #fff;
  147. border-left: 1px solid #000;
  148. }
  149. /* Combo boxes (menus that display months/years for direct selection) */
  150. .calendar .combo {
  151. position: absolute;
  152. display: none;
  153. width: 4em;
  154. top: 0px;
  155. left: 0px;
  156. cursor: default;
  157. border: 1px solid;
  158. border-color: ButtonHighlight ButtonShadow ButtonShadow ButtonHighlight;
  159. background: Menu;
  160. color: MenuText;
  161. font-size: 90%;
  162. padding: 1px;
  163. z-index: 100;
  164. }
  165. .calendar .combo .label,
  166. .calendar .combo .label-IEfix {
  167. text-align: center;
  168. padding: 1px;
  169. }
  170. .calendar .combo .label-IEfix {
  171. width: 4em;
  172. }
  173. .calendar .combo .active {
  174. padding: 0px;
  175. border: 1px solid #000;
  176. }
  177. .calendar .combo .hilite {
  178. background: Highlight;
  179. color: HighlightText;
  180. }
  181. .calendar td.time {
  182. border-top: 1px solid ButtonShadow;
  183. padding: 1px 0px;
  184. text-align: center;
  185. background-color: ButtonFace;
  186. }
  187. .calendar td.time .hour,
  188. .calendar td.time .minute,
  189. .calendar td.time .ampm {
  190. padding: 0px 3px 0px 4px;
  191. border: 1px solid #889;
  192. font-weight: bold;
  193. background-color: Menu;
  194. }
  195. .calendar td.time .ampm {
  196. text-align: center;
  197. }
  198. .calendar td.time .colon {
  199. padding: 0px 2px 0px 3px;
  200. font-weight: bold;
  201. }
  202. .calendar td.time span.hilite {
  203. border-color: #000;
  204. background-color: Highlight;
  205. color: HighlightText;
  206. }
  207. .calendar td.time span.active {
  208. border-color: #f00;
  209. background-color: #000;
  210. color: #0f0;
  211. }