You are here

calendar.css in Calendar 5.2

Same filename and directory in other branches
  1. 5 calendar.css
  2. 6.2 calendar.css
  3. 7 calendar.css
  4. 7.2 calendar.css
/* @group calendar */
.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: 13%; /* 14% is about 1/7 of total table width */
  min-width: 13%;
  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:1em;
}

/*  individual node container  */
.calendar-calendar div.calendar {
  background-color: #fff;
  border: solid 1px #ddd;
  text-align: left;
  padding: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;
}

/* the popup date selector for jumping to a new date */
.calendar-date-select {
  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;
}
.calendar-date-select .description {
  float:none;
}
.calendar-label {
  font-weight:bold;
  display:block;
  clear:both;
}

/* The inner 'node' displayed in the full month view */
.calendar-calendar td .inner div,
.calendar-calendar td .inner div a {
  background-color:#fff;
  color:#000;
}

.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;
  text-align:center;
}
.calendar-calendar th.days {
  background-color:#eee;
  color:#777;
  font-weight:bold;
  border:1px solid #ccc;
}
.calendar-calendar tr.even td.empty,
.calendar-calendar tr.odd 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 {
  background:#fff;
  text-align:right;
}

.calendar-calendar td .inner div a,
.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 {
  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.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;
}

File

calendar.css
View source
  1. /* @group calendar */
  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: 13%; /* 14% is about 1/7 of total table width */
  46. min-width: 13%;
  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:1em;
  119. }
  120. /* individual node container */
  121. .calendar-calendar div.calendar {
  122. background-color: #fff;
  123. border: solid 1px #ddd;
  124. text-align: left;
  125. padding: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. /* the popup date selector for jumping to a new date */
  216. .calendar-date-select {
  217. text-align:right;
  218. float:right;
  219. width:25%;
  220. }
  221. .calendar-date-select div,
  222. .calendar-date-select input,
  223. .calendar-date-select label {
  224. text-align:right;
  225. padding:0;
  226. margin:0;
  227. float:right;
  228. }
  229. .calendar-date-select .description {
  230. float:none;
  231. }
  232. .calendar-label {
  233. font-weight:bold;
  234. display:block;
  235. clear:both;
  236. }
  237. /* The inner 'node' displayed in the full month view */
  238. .calendar-calendar td .inner div,
  239. .calendar-calendar td .inner div a {
  240. background-color:#fff;
  241. color:#000;
  242. }
  243. .calendar-calendar div.date-nav {
  244. background-color:#ccc;
  245. color:#777;
  246. padding:0.2em;
  247. width:auto;
  248. border:1px solid #ccc;
  249. }
  250. .calendar-calendar div.date-nav a,
  251. .calendar-calendar div.date-nav h3 {
  252. color:#777;
  253. text-align:center;
  254. }
  255. .calendar-calendar th.days {
  256. background-color:#eee;
  257. color:#777;
  258. font-weight:bold;
  259. border:1px solid #ccc;
  260. }
  261. .calendar-calendar tr.even td.empty,
  262. .calendar-calendar tr.odd td.empty {
  263. background:#ccc;
  264. border-color:#ccc;
  265. }
  266. .calendar-calendar table.mini td.empty {
  267. background:#fff;
  268. border-color:#fff;
  269. }
  270. .calendar-calendar td div.day {
  271. border:1px solid #ccc;
  272. border-top:none;
  273. border-right:none;
  274. margin-bottom:2px;
  275. }
  276. .calendar-calendar td .inner div,
  277. .calendar-calendar td .inner div a {
  278. background:#eee;
  279. }
  280. /* Set small font size for all items in calendar div, themes can override this. */
  281. /* Use x-small instead of em to avoid multiplying effect in nested items. */
  282. .calendar-calendar div.calendar {
  283. border:none;
  284. font-size:x-small;
  285. }
  286. .calendar-calendar td .inner div.calendar div,
  287. .calendar-calendar td .inner div.calendar div a {
  288. border:none;
  289. background:#ffc;
  290. padding:0 2px;
  291. }
  292. .calendar-calendar td .inner div.calendar div.calendar-more,
  293. .calendar-calendar td .inner div.calendar div.calendar-more a {
  294. background:#fff;
  295. text-align:right;
  296. }
  297. .calendar-calendar td .inner div a,
  298. .calendar-calendar td span.date-display-single,
  299. .calendar-calendar td span.date-display-start,
  300. .calendar-calendar td span.date-display-end,
  301. .calendar-calendar td span.date-display-separator {
  302. color:#444;
  303. font-weight:normal;
  304. }
  305. .calendar-calendar td span.date-display-single,
  306. .calendar-calendar td span.date-display-start,
  307. .calendar-calendar td span.date-display-end,
  308. .calendar-calendar td span.date-display-separator {
  309. font-weight:bold;
  310. }
  311. .calendar-calendar td .inner div.day a {
  312. color:#4b85ac;
  313. }
  314. .calendar-calendar tr.odd td.today,
  315. .calendar-calendar tr.even td.today {
  316. background-color:#C3D6E4;
  317. }
  318. .calendar-calendar td .inner div.calendar div div.view-data-node-data-field-date-field-date-value {
  319. border-bottom:1px solid #ccc;
  320. }