You are here

calendar.css in Calendar 6.2

Same filename and directory in other branches
  1. 5.2 calendar.css
  2. 5 calendar.css
  3. 7 calendar.css
  4. 7.2 calendar.css
/*  calendar calendar table styles  */
.calendar-calendar tr.odd, .calendar-calendar tr.even {
  background-color:#fff;
}
.calendar-calendar table {
  border-collapse: collapse;
  border-spacing: 0;
  margin:0 auto;
  padding:0;
  width: 100%; /* Setting at 100% causes problem in Internet Explorer. */
}
.calendar-calendar .month-view table {
  border:none;
  padding:0;
  margin:0;
  width:100%;
}

  /* IE needs a little help to get the side by side tables to the right size */
.calendar-calendar .year-view td {
  width:32%;
  padding:1px;
  border:none;
}

.calendar-calendar .year-view td table td {
  width:13%;
  padding:0;
}

.calendar-calendar tr {
  padding: 0;
  margin: 0;
  background-color: white;
}
.calendar-calendar th {
  color: #fff;
  background-color: #ccc;
  text-align: center;
  margin:0;
}
.calendar-calendar th a {
  font-weight: bold;
  color: #fff;
  background-color: #ccc;
}
.calendar-calendar td {
  width: 12%; /* 14% is about 1/7 of total table width */
  min-width: 12%;
  border: 1px solid #ccc;
  color: #777;
  text-align: right;
  vertical-align: top;
  margin: 0;
  padding:0;
}

/* simplify the mini calendar by removing borders */
.calendar-calendar .mini {
  border:none;
 }

/* format for the week number in the first cell */
.calendar-calendar td.week {
  width:1%;
  min-width:1%;
  }
.calendar-calendar .week {
  clear:both;
  font-style: normal;
  color: #555;
  font-size: 0.8em;
}
.calendar-calendar .week a {
  font-weight:normal;
}

/* IE6 does not support min-height, using Min-Height fast hack from http://www.dustindiaz.com/min-height-fast-hack */
.calendar-calendar .inner {
  min-height:5em;
  height:auto !important;
  height:5em;
  padding:0;
  margin:0;
}
.calendar-calendar .inner div {
  padding:0;
  margin:0;
}
/* Make sure paragraphs buried in calendar cells use padding, not margins, for separation so the background color doesn't come through. */
.calendar-calendar .inner p {
  padding:0 0 .8em 0;
  margin:0;
}
.calendar-calendar td a {
  font-weight: bold;
  text-decoration: none;
}
.calendar-calendar td a:hover {
  text-decoration: underline;
}
.calendar-calendar td.year, 
.calendar-calendar td.month {
  text-align: center;
}

/* format days of the week header cells */
.calendar-calendar th.days {
  color: #ccc;
  background-color: #224;
  text-align: center;
  padding:1px;
  margin:0;
 }

/*  floating day number div  */
.calendar-calendar div.day {
  float: right;
  text-align: center;
  padding: 0.125em 0.25em 0 0.25em;
  margin: 0;
  background-color: #f3f3f3;
  border: 1px solid gray;
  border-width: 0 0 1px 1px;
  clear:both;
  width:1.5em;
}

/*  individual node container  */
.calendar-calendar div.calendar {
  background-color: #fff;
  border: solid 1px #ddd;
  text-align: left;
  margin:0 .25em .25em 0;
  width: 96%;
  float:right; /* needed to keep IE from hiding the floating day number */
  clear:both;
}
/* No floating of day view content because there is no floating day number */
.calendar-calendar .day-view div.calendar {
  float:none;
  width:98%;
  margin:1% 1% 0 1%;
}

.calendar-calendar div.title {
  font-size:.8em;
  text-align:center;
}

.calendar-calendar div.title a {
  color: #000;
}
.calendar-calendar div.title a:hover {
  color: #c00;
}
.calendar-calendar .content {
  clear:both;
  padding: 3px;
  padding-left: 5px;
}
.calendar div.form-item {
  white-space: normal;
}

table td.mini, 
table th.mini, 
table.mini td.week {
  padding:0 1px 0 0;
  margin:0;
  }
table td.mini a {
  font-weight:normal;
  }
.calendar-calendar .mini-day-off {
  padding:0px;
}
.calendar-calendar .mini-day-on {
  padding:0px;
}
table .mini-day-on a {
  text-decoration:underline;
  }
.calendar-calendar .mini .title {
  font-size:.8em;
  }
.mini .calendar-calendar .week {
  font-size:.7em;
  }
.mini-row {
  width:100%;
  border:none;
}
.mini{
  width:32%;
  vertical-align:top;
  }

/* formatting for the legend stripe and block */
.calendar-calendar .stripe {
  height: 5px;
  width: auto;
  font-size:1px !important;
  line-height:1px !important;
}
.calendar-calendar .day-view .stripe {
  width:100%;
}
table.calendar-legend {
  background-color:#ccc;
  width:100%;
  margin:0;
  padding:0;
}
table.calendar-legend tr.odd .stripe,
table.calendar-legend tr.even .stripe {
  height:12px !important;
  font-size:9px !important;
  line-height:10px !important;
}
.calendar-legend td {
  text-align:left;
}

.calendar-empty {
  font-size:1px;
  line-height:1px;
}

/* formatting for the full day view */  
.calendar-calendar td.calendar-agenda-hour {
  font-family:serif;
  text-align:right;
  border:none;
  border-top:1px #333 dotted;
  padding-top:.25em;
  width:1%;
}
.calendar-calendar td.calendar-agenda-no-hours {
  min-width:1%;
}
.calendar-calendar td.calendar-agenda-hour .calendar-hour {
  font-size:1.2em;
  font-weight:bold;
}
.calendar-calendar td.calendar-agenda-hour .calendar-ampm {
  font-size:1em;
}
.calendar-calendar td.calendar-agenda-items {
  border:1px #333 dotted;
  text-align:left;
}
.calendar-calendar td.calendar-agenda-items div.calendar {
  width:auto;
  padding:.25em;
  margin:0;
}
.calendar-calendar div.calendar div.inner .calendar-agenda-empty {
  width:100%;
  text-align:center;
  vertical-align:middle;
  padding:1em 0;
  background-color:#fff;
}

/* the popup date selector for jumping to a new date */
.calendar-date-select form {
  text-align:right;
  float:right;
  width:25%;
}
.calendar-date-select div, 
.calendar-date-select input, 
.calendar-date-select label {
  text-align:right;
  padding:0;
  margin:0;
  float:right;
  clear:both;
}
.calendar-date-select .description {
  float:right;
}
.calendar-label {
  font-weight:bold;
  display:block;
  clear:both;
}

.calendar-calendar div.date-nav {
  background-color:#ccc;
  color:#777;
  padding:0.2em;
  width:auto;
  border:1px solid #ccc;
}
.calendar-calendar div.date-nav a, 
.calendar-calendar div.date-nav h3 {
  color:#777;
}
.calendar-calendar th.days {
  background-color:#eee;
  color:#777;
  font-weight:bold;
  border:1px solid #ccc;
}
.calendar-calendar td.empty {
  background:#ccc;
  border-color:#ccc;
}
.calendar-calendar table.mini td.empty {
  background:#fff;
  border-color:#fff;
}
.calendar-calendar td div.day {
  border:1px solid #ccc;
  border-top:none;
  border-right:none;
  margin-bottom:2px;
}
.calendar-calendar td .inner div,
.calendar-calendar td .inner div a {
  background:#eee;
}
/* Set small font size for all items in calendar div, themes can override this. */
/* Use x-small instead of em to avoid multiplying effect in nested items. */
.calendar-calendar div.calendar {
  border:none;
  font-size:x-small;
}
.calendar-calendar td .inner div.calendar div,
.calendar-calendar td .inner div.calendar div a {
  border:none;
  background:#ffc;
  padding:0 2px;
}
.calendar-calendar td .inner div.calendar div.calendar-more,
.calendar-calendar td .inner div.calendar div.calendar-more a {
  color:#444;
  background:#fff;
  text-align:right;
}
.calendar-calendar td .inner .view-field,
.calendar-calendar td .inner .view-field a {
  color:#444;
  font-weight:normal;
}

.calendar-calendar td span.date-display-single,
.calendar-calendar td span.date-display-start,
.calendar-calendar td span.date-display-end,
.calendar-calendar td span.date-display-separator {
  font-weight:bold;
}
.calendar-calendar td .inner div.day a {
  color:#4b85ac;
}
.calendar-calendar tr td.today,
.calendar-calendar tr.odd td.today,
.calendar-calendar tr.even td.today {
  background-color:#C3D6E4;
}
.calendar-calendar td .inner div.calendar div div.view-data-node-data-field-date-field-date-value {
  border-bottom:1px solid #ccc;
}

/* The following are not used by default but are available for themes */
.calendar-calendar td.past {}
.calendar-calendar td.future {}
.calendar-calendar td.has-events {}
.calendar-calendar td.has-no-events {}

File

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