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