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