You are here

calendar.css in Calendar 5

Same filename and directory in other branches
  1. 5.2 calendar.css
  2. 6.2 calendar.css
  3. 7 calendar.css
  4. 7.2 calendar.css
/*  calendar calendar table styles  */

.calendar-calendar table {
  border: 1px solid #999;
  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%;
  }
.mini .calendar-calendar .month-view table {
  border:none;
  padding:0;
  margin:1%;
  width:98%;
  }

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

/* 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;
}
.calendar-nav-wrapper {
  width:100%;
  clear:both;
  position:relative;
  }

.calendar-nav-wrapper .nav-title {
  width:48%;
  text-align:center;
}
.calendar-calendar .prev {
  text-align: left;
  width:25%;
  }
.calendar-calendar .next {
  text-align: right;
  width:25%;
  }

.calendar-calendar th a {
  font-weight: bold;
  color: #fff;
}
.calendar-calendar td a {
  color: #222244;
  font-weight: bold;
  text-decoration: none;
}
.calendar-calendar td a:hover {
  text-decoration: underline;
}
.calendar-calendar td.sat, .calendar-calendar td.sun {
  background: #eee;
}
.calendar-calendar td.selected {
  background: #99f;
}
.calendar-calendar td.today {
  background: #f99;
}
.calendar-calendar td.year, .calendar-calendar td.month {
  text-align: center;
  border-width: 1px 0px;
}

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

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

/*  calendar node times for the body */
.calendar-nodeapi div {
  color: #000;
  padding: 0.5em 1em 0 0;
}
.calendar-nodeapi div label { color: #999; }

/*  individual node container  */
.calendar-calendar div.calendar {
  background-color: #fff;
  border: solid 1px #555;
  text-align: left;
  margin: 0.25em 0 0.5em 0.25em;
}
.calendar-calendar div.title {
  font-size:.8em;
  text-align:center;
}
.calendar-calendar .monthview .title {
  clear:both;
  text-align:left;
}
.calendar-calendar .dayview .title {
  clear:both;
  text-align:left;
}
.calendar-calendar div.title a {
  color: #000;
}
.calendar-calendar div.title a:hover {
  color: #c00;
}
.calendar-calendar .content {
  clear:both;
  margin: 5px;
  padding: 3px;
  padding-left: 5px;
}
.calendar-calendar div.type {
  margin-left: 5px;
  font-size: 0.8em;
}
.calendar-calendar div.type a {
  color: #00c;
}
.calendar-calendar div.type a:hover {
  color: #c00;
}
.calendar-calendar div.links {
  padding-left: 3px;
}
.calendar-calendar div.links a {
  color: #00c;
}
.calendar-calendar div.links a:hover {
  color: #c00;
}
.calendar-calendar .start {
  clear:both;
  font-style: normal;
  color: #555;
  margin: 2px 0 2px 0;
  padding-left: 3px;
  font-size: 0.8em;
}
.calendar-calendar .end {
  clear:both;
  font-style: normal;
  color: #555;
  margin: 2px 0 2px 0;
  padding-left: 3px;
  font-size: 0.8em;
}
.calendar-calendar .ongoing {
  clear:both;
  font-style: normal;
  color: #555;
  margin: 2px 0 2px 0;
  padding-left: 9px;
  font-size: 0.8em;
}
.calendar-calendar .week {
  clear:both;
  font-style: normal;
  color: #555;
  margin: 2px 0 2px 0;
  font-size: 0.8em;
}
.calendar-calendar .week a {
  font-weight:normal;
}
.calendar-calendar div.info {
  visibility: hidden;
  height: 0px;
  overflow:hidden;
  padding-left: 3px;
}

/*  individual node view styles  */
.calendar-calendar div.monthview .title {
  font-size: 0.8em;
}
.calendar-calendar div.dayview {
  width: auto;
}
.calendar-calendar div.tableview {
  width: auto;
}
.calendar-calendar div.tableview .links {
}
.container-inline .day input {
  width: auto;
  display: inline;
}

/*  multi-day calendar top stripes  */
.calendar .stripe {
  height: 5px;
  line-height:5px;
  font-size:5px;
  visibility:hidden;
}
.calendar .stripe-1 {
  background-color: #FF6;
  height: 5px;
  width: 100%;
}
.calendar .stripe-2 {
  background-color: #F66;
  height: 5px;
  width: 100%;
}
.calendar .stripe-3 {
  background-color: #668CFF;
  height: 5px;
  width: 100%;
}
.calendar .stripe-4 {
  background-color: #FFB366;
  height: 5px;
  width: 100%;
}
.calendar .stripe-5 {
  background-color: #85FF66;
  height: 5px;
  width: 100%;
}
.calendar .stripe-6 {
  background-color: #A666FF;
  height: 5px;
  width: 100%;
}
.calendar .stripe-7 {
  background-color: #FFE066;
  height: 5px;
  width: 100%;
}
.calendar .stripe-8 {
  background-color: #66FFFF;
  height: 5px;
  width: 100%;
}
.calendar .stripe-9 {
  background-color: #FF66D9;
  height: 5px;
  width: 100%;
}
.calendar .stripe-10 {
  background-color: #DDD;
  height: 5px;
  width: 100%;
}

#block-calendar-1 .item-list ul li a {
  margin-top: 8px;
}

span.calendar-timeleft {
  padding-bottom: 3px;
  text-align: right;
  width: auto;
  display: block;
}
span.calendar-nodetype {
  padding: 0px 0px 0px 5px;
  display: block;
  width: auto;
  text-align: right;
  float: right;
}
.ical-link {
  text-align: right;
}
.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;
  }
.mini-day-off {
  padding:0px;
}
.mini-day-on {
  padding:0px;
  background-color:#ffc
}
table .mini-day-on a {
  text-decoration:underline;
  }
.calendar-calendar .mini .title {
  font-size:.8em;
  }
.mini .calendar-calendar .week {
  font-size:.7em;
  }
div.mini-row {
  width:100%;
  clear:left;
}
div.mini {
  width:33%;
  float:left;
  }
div.mini table {
  margin:1%;
  }
.legend {
  width:100%;
  }
table th.legend {
  background-color:#ccc;
  }
.legend td {
  text-align:left;
  }

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

File

calendar.css
View source
  1. /* calendar calendar table styles */
  2. .calendar-calendar table {
  3. border: 1px solid #999;
  4. border-collapse: collapse;
  5. border-spacing: 0;
  6. margin:0 auto;
  7. padding:0;
  8. width: 100%; /* Setting at 100% causes problem in Internet Explorer. */
  9. }
  10. .calendar-calendar .month-view table {
  11. border:none;
  12. padding:0;
  13. margin:0;
  14. width:100%;
  15. }
  16. .mini .calendar-calendar .month-view table {
  17. border:none;
  18. padding:0;
  19. margin:1%;
  20. width:98%;
  21. }
  22. .calendar-calendar tr {
  23. padding: 0;
  24. margin: 0;
  25. background: white;
  26. }
  27. .calendar-calendar th {
  28. color: #fff;
  29. background: #ccc;
  30. text-align: center;
  31. padding:3px;
  32. margin:0;
  33. }
  34. .calendar-calendar td {
  35. width: 13%; /* 14% is about 1/7 of total table width */
  36. min-width: 13%;
  37. border: 1px solid #999;
  38. color: #777;
  39. text-align: right;
  40. vertical-align: top;
  41. margin: 0;
  42. padding:0;
  43. }
  44. .calendar-calendar td.week {
  45. width:1%;
  46. }
  47. /* IE6 does not support min-height, using Min-Height fast hack from http://www.dustindiaz.com/min-height-fast-hack */
  48. .calendar-calendar .inner {
  49. min-height:5em;
  50. height:auto !important;
  51. height:5em;
  52. padding:0;
  53. margin:0;
  54. }
  55. .calendar-calendar .inner div {
  56. padding:0;
  57. margin:0;
  58. }
  59. .calendar-nav-wrapper {
  60. width:100%;
  61. clear:both;
  62. position:relative;
  63. }
  64. .calendar-nav-wrapper .nav-title {
  65. width:48%;
  66. text-align:center;
  67. }
  68. .calendar-calendar .prev {
  69. text-align: left;
  70. width:25%;
  71. }
  72. .calendar-calendar .next {
  73. text-align: right;
  74. width:25%;
  75. }
  76. .calendar-calendar th a {
  77. font-weight: bold;
  78. color: #fff;
  79. }
  80. .calendar-calendar td a {
  81. color: #222244;
  82. font-weight: bold;
  83. text-decoration: none;
  84. }
  85. .calendar-calendar td a:hover {
  86. text-decoration: underline;
  87. }
  88. .calendar-calendar td.sat, .calendar-calendar td.sun {
  89. background: #eee;
  90. }
  91. .calendar-calendar td.selected {
  92. background: #99f;
  93. }
  94. .calendar-calendar td.today {
  95. background: #f99;
  96. }
  97. .calendar-calendar td.year, .calendar-calendar td.month {
  98. text-align: center;
  99. border-width: 1px 0px;
  100. }
  101. /* days of the week header cells */
  102. .calendar-calendar td.days {
  103. color: #ccc;
  104. background: #224;
  105. text-align: center;
  106. border: 1px solid #999;
  107. border-width: 0 1px 1px 0;
  108. padding:1px;
  109. margin:0;
  110. }
  111. /* floating day number div */
  112. .calendar-calendar div.day {
  113. float: right;
  114. text-align: center;
  115. border: 1px solid gray;
  116. border-width: 0 0 1px 1px;
  117. padding: 0.125em 0.25em 0 0.25em;
  118. margin: 0;
  119. background: #f3f3f3;
  120. }
  121. /* calendar node times for the body */
  122. .calendar-nodeapi div {
  123. color: #000;
  124. padding: 0.5em 1em 0 0;
  125. }
  126. .calendar-nodeapi div label { color: #999; }
  127. /* individual node container */
  128. .calendar-calendar div.calendar {
  129. background-color: #fff;
  130. border: solid 1px #555;
  131. text-align: left;
  132. margin: 0.25em 0 0.5em 0.25em;
  133. }
  134. .calendar-calendar div.title {
  135. font-size:.8em;
  136. text-align:center;
  137. }
  138. .calendar-calendar .monthview .title {
  139. clear:both;
  140. text-align:left;
  141. }
  142. .calendar-calendar .dayview .title {
  143. clear:both;
  144. text-align:left;
  145. }
  146. .calendar-calendar div.title a {
  147. color: #000;
  148. }
  149. .calendar-calendar div.title a:hover {
  150. color: #c00;
  151. }
  152. .calendar-calendar .content {
  153. clear:both;
  154. margin: 5px;
  155. padding: 3px;
  156. padding-left: 5px;
  157. }
  158. .calendar-calendar div.type {
  159. margin-left: 5px;
  160. font-size: 0.8em;
  161. }
  162. .calendar-calendar div.type a {
  163. color: #00c;
  164. }
  165. .calendar-calendar div.type a:hover {
  166. color: #c00;
  167. }
  168. .calendar-calendar div.links {
  169. padding-left: 3px;
  170. }
  171. .calendar-calendar div.links a {
  172. color: #00c;
  173. }
  174. .calendar-calendar div.links a:hover {
  175. color: #c00;
  176. }
  177. .calendar-calendar .start {
  178. clear:both;
  179. font-style: normal;
  180. color: #555;
  181. margin: 2px 0 2px 0;
  182. padding-left: 3px;
  183. font-size: 0.8em;
  184. }
  185. .calendar-calendar .end {
  186. clear:both;
  187. font-style: normal;
  188. color: #555;
  189. margin: 2px 0 2px 0;
  190. padding-left: 3px;
  191. font-size: 0.8em;
  192. }
  193. .calendar-calendar .ongoing {
  194. clear:both;
  195. font-style: normal;
  196. color: #555;
  197. margin: 2px 0 2px 0;
  198. padding-left: 9px;
  199. font-size: 0.8em;
  200. }
  201. .calendar-calendar .week {
  202. clear:both;
  203. font-style: normal;
  204. color: #555;
  205. margin: 2px 0 2px 0;
  206. font-size: 0.8em;
  207. }
  208. .calendar-calendar .week a {
  209. font-weight:normal;
  210. }
  211. .calendar-calendar div.info {
  212. visibility: hidden;
  213. height: 0px;
  214. overflow:hidden;
  215. padding-left: 3px;
  216. }
  217. /* individual node view styles */
  218. .calendar-calendar div.monthview .title {
  219. font-size: 0.8em;
  220. }
  221. .calendar-calendar div.dayview {
  222. width: auto;
  223. }
  224. .calendar-calendar div.tableview {
  225. width: auto;
  226. }
  227. .calendar-calendar div.tableview .links {
  228. }
  229. .container-inline .day input {
  230. width: auto;
  231. display: inline;
  232. }
  233. /* multi-day calendar top stripes */
  234. .calendar .stripe {
  235. height: 5px;
  236. line-height:5px;
  237. font-size:5px;
  238. visibility:hidden;
  239. }
  240. .calendar .stripe-1 {
  241. background-color: #FF6;
  242. height: 5px;
  243. width: 100%;
  244. }
  245. .calendar .stripe-2 {
  246. background-color: #F66;
  247. height: 5px;
  248. width: 100%;
  249. }
  250. .calendar .stripe-3 {
  251. background-color: #668CFF;
  252. height: 5px;
  253. width: 100%;
  254. }
  255. .calendar .stripe-4 {
  256. background-color: #FFB366;
  257. height: 5px;
  258. width: 100%;
  259. }
  260. .calendar .stripe-5 {
  261. background-color: #85FF66;
  262. height: 5px;
  263. width: 100%;
  264. }
  265. .calendar .stripe-6 {
  266. background-color: #A666FF;
  267. height: 5px;
  268. width: 100%;
  269. }
  270. .calendar .stripe-7 {
  271. background-color: #FFE066;
  272. height: 5px;
  273. width: 100%;
  274. }
  275. .calendar .stripe-8 {
  276. background-color: #66FFFF;
  277. height: 5px;
  278. width: 100%;
  279. }
  280. .calendar .stripe-9 {
  281. background-color: #FF66D9;
  282. height: 5px;
  283. width: 100%;
  284. }
  285. .calendar .stripe-10 {
  286. background-color: #DDD;
  287. height: 5px;
  288. width: 100%;
  289. }
  290. #block-calendar-1 .item-list ul li a {
  291. margin-top: 8px;
  292. }
  293. span.calendar-timeleft {
  294. padding-bottom: 3px;
  295. text-align: right;
  296. width: auto;
  297. display: block;
  298. }
  299. span.calendar-nodetype {
  300. padding: 0px 0px 0px 5px;
  301. display: block;
  302. width: auto;
  303. text-align: right;
  304. float: right;
  305. }
  306. .ical-link {
  307. text-align: right;
  308. }
  309. .calendar div.form-item {
  310. white-space: normal;
  311. }
  312. table td.mini, table th.mini, table.mini td.week {
  313. padding:0 1px 0 0;
  314. margin:0;
  315. }
  316. table td.mini a {
  317. font-weight:normal;
  318. }
  319. .mini-day-off {
  320. padding:0px;
  321. }
  322. .mini-day-on {
  323. padding:0px;
  324. background-color:#ffc
  325. }
  326. table .mini-day-on a {
  327. text-decoration:underline;
  328. }
  329. .calendar-calendar .mini .title {
  330. font-size:.8em;
  331. }
  332. .mini .calendar-calendar .week {
  333. font-size:.7em;
  334. }
  335. div.mini-row {
  336. width:100%;
  337. clear:left;
  338. }
  339. div.mini {
  340. width:33%;
  341. float:left;
  342. }
  343. div.mini table {
  344. margin:1%;
  345. }
  346. .legend {
  347. width:100%;
  348. }
  349. table th.legend {
  350. background-color:#ccc;
  351. }
  352. .legend td {
  353. text-align:left;
  354. }
  355. .calendar-empty {
  356. font-size:1px;
  357. line-height:1px;
  358. }