1 /* Table styling. */ 2 3 table.calendar { 4 min-width: 100%; 5 table-layout: fixed; 6 } 7 8 table.conflicts, 9 table.counters, 10 table.recurrence, 11 table.object { 12 border: 2px solid #000; 13 } 14 15 colgroup#columns-request { 16 background-color: #eef; 17 } 18 19 colgroup#columns-freebusy { 20 background-color: #fee; 21 } 22 23 th.requestheading { 24 background-color: #aaf; 25 } 26 27 th.participantheading{ 28 background-color: #faa; 29 } 30 31 caption.dayheading, 32 th.mainheading { 33 background-color: #f85; 34 width: 100%; 35 } 36 37 th.timeslot, 38 th.objectheading { 39 white-space: nowrap; 40 } 41 42 th.objectheading { 43 background-color: #fca; 44 } 45 46 th.timeslot { 47 padding-top: 0; 48 vertical-align: top; 49 width: 10em; 50 } 51 52 th.timeslot span.endpoint { 53 display: none; 54 font-size: smaller; 55 } 56 57 td.event { 58 background-color: #ff8; 59 border: 2px solid #000; 60 width: 10em; 61 } 62 63 td.empty { 64 min-width: 10em; 65 } 66 67 td.event.only-organising { 68 background-color: #afd; 69 } 70 71 td.event.organising { 72 background-color: #af8; 73 } 74 75 td.event.continued { 76 border-top: 2px dotted #000; 77 } 78 79 td.event.continues { 80 border-bottom: 2px dotted #000; 81 } 82 83 td.event:target { 84 border-width: 4px; 85 background-color: #ee2; 86 } 87 88 td.event.organising:target { 89 background-color: #5f4; 90 } 91 92 td.event a { 93 color: #009; 94 } 95 96 th.objectheading.error { 97 background-color: #f77; 98 } 99 100 .partstat { 101 margin-left: 1em; 102 background-color: #eee; 103 } 104 105 .partstat, 106 .partstat option { 107 padding: 0.25em; 108 } 109 110 select.partstat { 111 background-color: #ccc; 112 padding: 0; 113 font-family: inherit; 114 font-size: inherit; 115 } 116 117 .affected { 118 font-weight: bold; 119 } 120 121 table.recurrence .replaced, 122 table.conflicts .replaced, 123 table.counters .replaced { 124 text-decoration: line-through; 125 } 126 127 .objectvalue.dtstart.excluded, 128 .objectvalue.dtstart.replaced { 129 vertical-align: top; 130 } 131 132 table.counters tr.selected { 133 background-color: #af8; 134 } 135 136 table.counters td, 137 table.counters th { 138 vertical-align: top; 139 } 140 141 /* New event controls. */ 142 143 .newevent-with-periods { 144 display: none; 145 } 146 147 /* Selection of slots/periods for new events. */ 148 149 input.newevent.selector { 150 display: none; 151 } 152 153 input.newevent.selector:checked ~ p.newevent-with-periods { 154 display: block; 155 } 156 157 th.container, 158 td.container { 159 padding: 0; /* for regions covered by labels */ 160 } 161 162 caption.dayheading:hover, 163 caption.dayheading:focus, 164 th.timeslot:hover, 165 th.timeslot:focus, 166 td.container:hover, 167 td.container:focus { 168 background-color: #af8; 169 } 170 171 label.day, 172 label.newevent.popup { 173 display: block; /* to make labels cover regions */ 174 padding: 0.25em; 175 } 176 177 label.newevent.popup { 178 visibility: hidden; 179 text-align: center; 180 } 181 182 td.container:hover label.newevent.popup, 183 td.container:focus label.newevent.popup { 184 visibility: visible; 185 } 186 187 /* Hiding/showing busy slots/periods or unused days. */ 188 189 /* Hide the controls. */ 190 191 input#hidebusy, 192 input#showdays, 193 194 /* Hide the enable labels when controls are already enabled. */ 195 /* Hide the disable labels when controls are already disabled. */ 196 197 input#hidebusy:checked ~ .controls label.enable[for=hidebusy], 198 input#showdays:checked ~ .controls label.disable[for=showdays], 199 input#hidebusy:not(:checked) ~ .controls label.disable[for=hidebusy], 200 input#showdays:not(:checked) ~ .controls label.enable[for=showdays], 201 202 /* Hide calendar rows depending on the selected controls. */ 203 204 input#hidebusy:checked ~ div.calendar tr.slot.busy, 205 input#showdays:not(:checked) ~ div.calendar .calendar.empty, 206 207 /* Hiding/showing end datetimes and start/end times. */ 208 209 input#dttimes-enable, 210 input#dtend-enable, 211 input#dttimes-enable:not(:checked) ~ .object td.objectvalue .time.enabled, 212 input#dttimes-enable:checked ~ .object td.objectvalue .time.disabled, 213 input#dtend-enable:not(:checked) ~ .object td.objectvalue.dtend .dt.enabled, 214 input#dtend-enable:checked ~ .object td.objectvalue.dtend .dt.disabled, 215 216 /* Hiding/showing remove/uninvite labels. */ 217 218 input.add, 219 input.remove, 220 input.remove:checked ~ label.remove, 221 input.remove:not(:checked) ~ label.removed, 222 223 /* Hide the participation refresh control, selected using a label. */ 224 225 input.refresh, 226 227 /* Hide the reset control, selected using a label. */ 228 229 input#reset { 230 display: none; 231 } 232 233 /* Show slot endpoints when hiding adjacent busy periods. */ 234 235 input#hidebusy:checked ~ div.calendar th.timeslot span.endpoint { 236 display: block; 237 } 238 239 /* Make calendar labels occupy cells completely. 240 See: http://stackoverflow.com/questions/2841484/how-can-a-label-completely-fill-its-parent-td 241 */ 242 243 tr.slot { 244 height: 0; 245 } 246 247 th.timeslot, 248 td.empty { 249 height: 100%; 250 } 251 252 label.timepoint, 253 label.newevent { 254 display: block; 255 min-height: 100%; 256 } 257 258 /* Style the labels. */ 259 260 label.day, 261 label.timepoint, 262 label.newevent, 263 .dt.disabled label, 264 .dt.enabled label, 265 label.add, 266 label.remove, 267 label.removed, 268 label.hidebusy, 269 label.showdays, 270 label.reset { 271 cursor: pointer; 272 } 273 274 label.add, 275 label.remove, 276 label.removed { 277 float: right; 278 text-align: right; 279 } 280 281 label.add span.action, 282 label.remove span.action, 283 label.removed span.action { 284 font-size: smaller; 285 display: block; 286 } 287 288 p label.add, 289 p label.remove, 290 p label.removed { 291 float: none; 292 } 293 294 .dt.disabled label, 295 .dt.enabled label, 296 label.add, 297 label.remove, 298 label.removed, 299 label.hidebusy, 300 label.showdays, 301 label.reset { 302 color: #009; 303 text-decoration: underline; 304 } 305 306 .dt.disabled label, 307 .dt.enabled label { 308 display: inline-block; 309 } 310 311 .dt.enabled label { 312 margin-top: 0.25em; 313 } 314 315 label.hidebusy, 316 label.showdays, 317 label.reset { 318 padding-left: 0.25em; 319 } 320 321 label.showdays { 322 border-left: 1em solid #faa; /* th.participantheading background-color */ 323 } 324 325 label.hidebusy { 326 border-left: 1em solid #af8; /* td.event background-color */ 327 } 328 329 label.reset { 330 border-left: 1em solid #5f4; 331 }