calendar.css 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404
  1. /**
  2. * calendar calendar table styles
  3. */
  4. .calendar-calendar tr.odd, .calendar-calendar tr.even {
  5. background-color: #fff;
  6. }
  7. .calendar-calendar table {
  8. border-collapse: collapse;
  9. border-spacing: 0;
  10. margin: 0 auto;
  11. padding: 0;
  12. width: 100%; /* Setting at 100% causes problem in Internet Explorer. */
  13. clear: both;
  14. }
  15. .calendar-calendar .month-view table {
  16. border: none;
  17. padding: 0;
  18. margin: 0;
  19. width: 100%;
  20. clear: both;
  21. }
  22. /**
  23. * IE needs a little help to get the side by side tables to the right size
  24. */
  25. .calendar-calendar .year-view td {
  26. width: 32%;
  27. padding: 1px;
  28. border: none;
  29. }
  30. .calendar-calendar .year-view td table td {
  31. width: 13%;
  32. padding: 0;
  33. }
  34. .calendar-calendar tr {
  35. padding: 0;
  36. margin: 0;
  37. background-color: white;
  38. }
  39. .calendar-calendar th {
  40. color: #fff;
  41. background-color: #ccc;
  42. text-align: center;
  43. margin: 0;
  44. }
  45. .calendar-calendar th a {
  46. font-weight: bold;
  47. color: #fff;
  48. background-color: #ccc;
  49. }
  50. .calendar-calendar td {
  51. width: 12%; /* 14% is about 1/7 of total table width */
  52. min-width: 12%;
  53. border: 1px solid #ccc;
  54. color: #777;
  55. text-align: right;
  56. vertical-align: top;
  57. margin: 0;
  58. padding: 0;
  59. }
  60. /**
  61. * simplify the mini calendar by removing borders
  62. */
  63. .calendar-calendar .mini {
  64. border: none;
  65. }
  66. /**
  67. * format for the week number in the first cell
  68. */
  69. .calendar-calendar td.week {
  70. width: 1%;
  71. min-width: 1%;
  72. }
  73. .calendar-calendar .week {
  74. clear: both;
  75. font-style: normal;
  76. color: #555;
  77. font-size: 0.8em;
  78. }
  79. .calendar-calendar .week a {
  80. font-weight: normal;
  81. }
  82. /**
  83. * IE6 does not support min-height, using Min-Height fast hack from http://www.dustindiaz.com/min-height-fast-hack
  84. */
  85. .calendar-calendar .inner {
  86. min-height: 5em;
  87. height: auto !important;
  88. height: 5em;
  89. padding: 0;
  90. margin: 0;
  91. }
  92. .calendar-calendar .inner div {
  93. padding: 0;
  94. margin: 0;
  95. }
  96. /**
  97. * Make sure paragraphs buried in calendar cells use padding, not margins, for separation so the background color doesn't come through.
  98. */
  99. .calendar-calendar .inner p {
  100. padding: 0 0 .8em 0;
  101. margin: 0;
  102. }
  103. .calendar-calendar td a {
  104. font-weight: bold;
  105. text-decoration: none;
  106. }
  107. .calendar-calendar td a:hover {
  108. text-decoration: underline;
  109. }
  110. .calendar-calendar td.year,
  111. .calendar-calendar td.month {
  112. text-align: center;
  113. }
  114. /**
  115. * format days of the week header cells
  116. */
  117. .calendar-calendar th.days {
  118. color: #ccc;
  119. background-color: #224;
  120. text-align: center;
  121. padding: 1px;
  122. margin: 0;
  123. }
  124. /**
  125. * floating day number div
  126. */
  127. .calendar-calendar div.day {
  128. float: right;
  129. text-align: center;
  130. padding: 0.125em 0.25em 0 0.25em;
  131. margin: 0;
  132. background-color: #f3f3f3;
  133. border: 1px solid gray;
  134. border-width: 0 0 1px 1px;
  135. clear:both;
  136. width:1.5em;
  137. }
  138. /**
  139. * individual node container
  140. */
  141. .calendar-calendar div.calendar {
  142. background-color: #fff;
  143. border: solid 1px #ddd;
  144. text-align: left;
  145. margin:0 .25em .25em 0;
  146. width: 96%;
  147. float: right; /* needed to keep IE from hiding the floating day number */
  148. clear: both;
  149. }
  150. /**
  151. * No floating of day view content because there is no floating day number
  152. */
  153. .calendar-calendar .day-view div.calendar {
  154. float: none;
  155. width: 98%;
  156. margin: 1% 1% 0 1%;
  157. }
  158. .calendar-calendar div.title {
  159. font-size: .8em;
  160. text-align: center;
  161. }
  162. .calendar-calendar div.title a {
  163. color: #000;
  164. }
  165. .calendar-calendar div.title a:hover {
  166. color: #c00;
  167. }
  168. .calendar-calendar .content {
  169. clear: both;
  170. padding: 3px;
  171. padding-left: 5px;
  172. }
  173. .calendar div.form-item {
  174. white-space: normal;
  175. }
  176. table td.mini,
  177. table th.mini,
  178. table.mini td.week {
  179. padding: 0 1px 0 0;
  180. margin: 0;
  181. }
  182. table td.mini a {
  183. font-weight: normal;
  184. }
  185. .calendar-calendar .mini-day-off {
  186. padding: 0px;
  187. }
  188. .calendar-calendar .mini-day-on {
  189. padding: 0px;
  190. }
  191. table .mini-day-on a {
  192. text-decoration: underline;
  193. }
  194. .calendar-calendar .mini .title {
  195. font-size: .8em;
  196. }
  197. .mini .calendar-calendar .week {
  198. font-size: .7em;
  199. }
  200. .mini-row {
  201. width: 100%;
  202. border: none;
  203. }
  204. .mini{
  205. width: 32%;
  206. vertical-align: top;
  207. }
  208. /**
  209. * formatting for the legend stripe and block
  210. */
  211. .calendar-calendar .stripe {
  212. height: 5px;
  213. width: auto;
  214. font-size: 1px !important;
  215. line-height: 1px !important;
  216. }
  217. .calendar-calendar .day-view .stripe {
  218. width: 100%;
  219. }
  220. table.calendar-legend {
  221. background-color: #ccc;
  222. width: 100%;
  223. margin: 0;
  224. padding: 0;
  225. }
  226. table.calendar-legend tr.odd .stripe,
  227. table.calendar-legend tr.even .stripe {
  228. height: 12px !important;
  229. font-size: 9px !important;
  230. line-height: 10px !important;
  231. }
  232. .calendar-legend td {
  233. text-align: left;
  234. }
  235. .calendar-empty {
  236. font-size: 1px;
  237. line-height: 1px;
  238. }
  239. /**
  240. * formatting for the full day view
  241. */
  242. .calendar-calendar td.calendar-agenda-hour {
  243. font-family: serif;
  244. text-align: right;
  245. border: none;
  246. border-top: 1px #333 dotted;
  247. padding-top: .25em;
  248. width: 1%;
  249. }
  250. .calendar-calendar td.calendar-agenda-no-hours {
  251. min-width: 1%;
  252. }
  253. .calendar-calendar td.calendar-agenda-hour .calendar-hour {
  254. font-size: 1.2em;
  255. font-weight: bold;
  256. }
  257. .calendar-calendar td.calendar-agenda-hour .calendar-ampm {
  258. font-size: 1em;
  259. }
  260. .calendar-calendar td.calendar-agenda-items {
  261. border: 1px #333 dotted;
  262. text-align: left;
  263. }
  264. .calendar-calendar td.calendar-agenda-items div.calendar {
  265. width: auto;
  266. padding: .25em;
  267. margin: 0;
  268. }
  269. .calendar-calendar div.calendar div.inner .calendar-agenda-empty {
  270. width: 100%;
  271. text-align: center;
  272. vertical-align: middle;
  273. padding: 1em 0;
  274. background-color: #fff;
  275. }
  276. /**
  277. * The popup date selector for jumping to a new date.
  278. */
  279. .calendar-date-select form {
  280. text-align: right;
  281. float: right;
  282. width: 25%;
  283. }
  284. .calendar-date-select div,
  285. .calendar-date-select input,
  286. .calendar-date-select label {
  287. text-align: right;
  288. padding: 0;
  289. margin: 0;
  290. float: right;
  291. clear: both;
  292. }
  293. .calendar-date-select .description {
  294. float: right;
  295. }
  296. .calendar-label {
  297. font-weight: bold;
  298. display: block;
  299. clear: both;
  300. }
  301. .calendar-calendar div.date-nav {
  302. background-color: #ccc;
  303. color: #777;
  304. width: auto;
  305. border: 1px solid #ccc;
  306. }
  307. .calendar-calendar div.date-nav a,
  308. .calendar-calendar div.date-nav h3 {
  309. color: #777;
  310. }
  311. .calendar-calendar th.days {
  312. background-color: #eee;
  313. color: #777;
  314. font-weight: bold;
  315. border: 1px solid #ccc;
  316. }
  317. .calendar-calendar td.empty {
  318. background: #ccc;
  319. border-color: #ccc;
  320. }
  321. .calendar-calendar table.mini td.empty {
  322. background: #fff;
  323. border-color: #fff;
  324. }
  325. .calendar-calendar td div.day {
  326. border: 1px solid #ccc;
  327. border-top: none;
  328. border-right: none;
  329. margin-bottom: 2px;
  330. }
  331. .calendar-calendar td .inner div,
  332. .calendar-calendar td .inner div a {
  333. background: #eee;
  334. }
  335. /**
  336. *Set small font size for all items in calendar div, themes can override this.
  337. *
  338. * Use x-small instead of em to avoid multiplying effect in nested items.
  339. */
  340. .calendar-calendar div.calendar {
  341. border: none;
  342. font-size: x-small;
  343. }
  344. .calendar-calendar td .inner div.calendar div,
  345. .calendar-calendar td .inner div.calendar div a {
  346. border: none;
  347. background: #ffc;
  348. padding: 0 2px;
  349. }
  350. .calendar-calendar td .inner div.calendar div.calendar-more,
  351. .calendar-calendar td .inner div.calendar div.calendar-more a {
  352. color: #444;
  353. background: #fff;
  354. text-align: right;
  355. }
  356. .calendar-calendar td .inner .view-field,
  357. .calendar-calendar td .inner .view-field a {
  358. color: #444;
  359. font-weight: normal;
  360. }
  361. .calendar-calendar td span.date-display-single,
  362. .calendar-calendar td span.date-display-start,
  363. .calendar-calendar td span.date-display-end,
  364. .calendar-calendar td span.date-display-separator {
  365. font-weight: bold;
  366. }
  367. .calendar-calendar td .inner div.day a {
  368. color: #4b85ac;
  369. }
  370. .calendar-calendar tr td.today,
  371. .calendar-calendar tr.odd td.today,
  372. .calendar-calendar tr.even td.today {
  373. background-color: #C3D6E4;
  374. }
  375. .calendar-calendar td .inner div.calendar div div.view-data-node-data-field-date-field-date-value {
  376. border-bottom: 1px solid #ccc;
  377. }
  378. /**
  379. * The following are not used by default but are available for themes.
  380. */
  381. .calendar-calendar td.past {}
  382. .calendar-calendar td.future {}
  383. .calendar-calendar td.has-events {}
  384. .calendar-calendar td.has-no-events {}