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