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