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@487 | 112 | table.conflicts .replaced { |
paul@357 | 113 | text-decoration: line-through; |
paul@357 | 114 | } |
paul@357 | 115 | |
paul@784 | 116 | .objectvalue.dtstart.excluded, |
paul@487 | 117 | .objectvalue.dtstart.replaced { |
paul@487 | 118 | vertical-align: top; |
paul@487 | 119 | } |
paul@487 | 120 | |
paul@777 | 121 | table.counters tr.selected { |
paul@806 | 122 | background-color: #af8; |
paul@777 | 123 | } |
paul@777 | 124 | |
paul@513 | 125 | /* New event controls. */ |
paul@513 | 126 | |
paul@513 | 127 | .newevent-with-periods { |
paul@513 | 128 | display: none; |
paul@513 | 129 | } |
paul@513 | 130 | |
paul@203 | 131 | /* Selection of slots/periods for new events. */ |
paul@203 | 132 | |
paul@249 | 133 | input.newevent.selector { |
paul@196 | 134 | display: none; |
paul@196 | 135 | } |
paul@196 | 136 | |
paul@773 | 137 | input.newevent.selector:checked ~ p.newevent-with-periods { |
paul@773 | 138 | display: block; |
paul@767 | 139 | } |
paul@767 | 140 | |
paul@243 | 141 | th.container, |
paul@236 | 142 | td.container { |
paul@243 | 143 | padding: 0; /* for regions covered by labels */ |
paul@236 | 144 | } |
paul@236 | 145 | |
paul@772 | 146 | caption.dayheading:hover, |
paul@772 | 147 | caption.dayheading:focus, |
paul@236 | 148 | th.timeslot:hover, |
paul@236 | 149 | th.timeslot:focus, |
paul@236 | 150 | td.container:hover, |
paul@236 | 151 | td.container:focus { |
paul@236 | 152 | background-color: #af8; |
paul@196 | 153 | } |
paul@196 | 154 | |
paul@243 | 155 | label.day, |
paul@243 | 156 | label.newevent.popup { |
paul@243 | 157 | display: block; /* to make labels cover regions */ |
paul@243 | 158 | padding: 0.25em; |
paul@243 | 159 | } |
paul@243 | 160 | |
paul@236 | 161 | label.newevent.popup { |
paul@236 | 162 | visibility: hidden; |
paul@236 | 163 | text-align: center; |
paul@196 | 164 | } |
paul@196 | 165 | |
paul@236 | 166 | td.container:hover label.newevent.popup, |
paul@236 | 167 | td.container:focus label.newevent.popup { |
paul@236 | 168 | visibility: visible; |
paul@196 | 169 | } |
paul@196 | 170 | |
paul@280 | 171 | /* Hiding/showing busy slots/periods or unused days. */ |
paul@279 | 172 | |
paul@279 | 173 | /* Hide the controls. */ |
paul@203 | 174 | |
paul@279 | 175 | input#hidebusy, |
paul@281 | 176 | input#showdays, |
paul@279 | 177 | |
paul@279 | 178 | /* Hide the enable labels when controls are already enabled. */ |
paul@288 | 179 | /* Hide the disable labels when controls are already disabled. */ |
paul@203 | 180 | |
paul@279 | 181 | input#hidebusy:checked ~ .controls label.enable[for=hidebusy], |
paul@288 | 182 | input#showdays:checked ~ .controls label.disable[for=showdays], |
paul@279 | 183 | input#hidebusy:not(:checked) ~ .controls label.disable[for=hidebusy], |
paul@288 | 184 | input#showdays:not(:checked) ~ .controls label.enable[for=showdays], |
paul@203 | 185 | |
paul@279 | 186 | /* Hide calendar rows depending on the selected controls. */ |
paul@279 | 187 | |
paul@773 | 188 | input#hidebusy:checked ~ div.calendar tr.slot.busy, |
paul@773 | 189 | input#showdays:not(:checked) ~ div.calendar .calendar.empty, |
paul@241 | 190 | |
paul@300 | 191 | /* Hiding/showing end datetimes and start/end times. */ |
paul@290 | 192 | |
paul@300 | 193 | input#dttimes-enable, |
paul@290 | 194 | input#dtend-enable, |
paul@427 | 195 | input#dttimes-enable:not(:checked) ~ .object td.objectvalue .time.enabled, |
paul@300 | 196 | input#dttimes-enable:checked ~ .object td.objectvalue .time.disabled, |
paul@427 | 197 | input#dtend-enable:not(:checked) ~ .object td.objectvalue.dtend .dt.enabled, |
paul@308 | 198 | input#dtend-enable:checked ~ .object td.objectvalue.dtend .dt.disabled, |
paul@308 | 199 | |
paul@308 | 200 | /* Hiding/showing remove/uninvite labels. */ |
paul@308 | 201 | |
paul@315 | 202 | input.add, |
paul@308 | 203 | input.remove, |
paul@308 | 204 | input.remove:checked ~ label.remove, |
paul@396 | 205 | input.remove:not(:checked) ~ label.removed, |
paul@396 | 206 | |
paul@473 | 207 | /* Hide the participation refresh control, selected using a label. */ |
paul@473 | 208 | |
paul@473 | 209 | input.refresh, |
paul@473 | 210 | |
paul@396 | 211 | /* Hide the reset control, selected using a label. */ |
paul@396 | 212 | |
paul@396 | 213 | input#reset { |
paul@290 | 214 | display: none; |
paul@290 | 215 | } |
paul@290 | 216 | |
paul@308 | 217 | /* Show slot endpoints when hiding adjacent busy periods. */ |
paul@308 | 218 | |
paul@773 | 219 | input#hidebusy:checked ~ div.calendar th.timeslot span.endpoint { |
paul@308 | 220 | display: block; |
paul@308 | 221 | } |
paul@308 | 222 | |
paul@775 | 223 | /* Make calendar labels occupy cells completely. |
paul@775 | 224 | See: http://stackoverflow.com/questions/2841484/how-can-a-label-completely-fill-its-parent-td |
paul@775 | 225 | */ |
paul@775 | 226 | |
paul@775 | 227 | tr.slot { |
paul@775 | 228 | height: 0; |
paul@775 | 229 | } |
paul@775 | 230 | |
paul@775 | 231 | th.timeslot, |
paul@775 | 232 | td.empty { |
paul@775 | 233 | height: 100%; |
paul@775 | 234 | } |
paul@775 | 235 | |
paul@775 | 236 | label.timepoint, |
paul@775 | 237 | label.newevent { |
paul@775 | 238 | display: block; |
paul@775 | 239 | min-height: 100%; |
paul@775 | 240 | } |
paul@775 | 241 | |
paul@279 | 242 | /* Style the labels. */ |
paul@279 | 243 | |
paul@471 | 244 | label.day, |
paul@471 | 245 | label.timepoint, |
paul@471 | 246 | label.newevent, |
paul@471 | 247 | .dt.disabled label, |
paul@471 | 248 | .dt.enabled label, |
paul@471 | 249 | label.add, |
paul@471 | 250 | label.remove, |
paul@471 | 251 | label.removed, |
paul@471 | 252 | label.hidebusy, |
paul@471 | 253 | label.showdays, |
paul@471 | 254 | label.reset { |
paul@471 | 255 | cursor: pointer; |
paul@471 | 256 | } |
paul@471 | 257 | |
paul@315 | 258 | label.add, |
paul@308 | 259 | label.remove, |
paul@308 | 260 | label.removed { |
paul@308 | 261 | float: right; |
paul@701 | 262 | text-align: right; |
paul@701 | 263 | } |
paul@701 | 264 | |
paul@701 | 265 | label.add span.action, |
paul@701 | 266 | label.remove span.action, |
paul@701 | 267 | label.removed span.action { |
paul@701 | 268 | font-size: smaller; |
paul@701 | 269 | display: block; |
paul@308 | 270 | } |
paul@308 | 271 | |
paul@500 | 272 | p label.add, |
paul@500 | 273 | p label.remove, |
paul@500 | 274 | p label.removed { |
paul@500 | 275 | float: none; |
paul@500 | 276 | } |
paul@500 | 277 | |
paul@300 | 278 | .dt.disabled label, |
paul@300 | 279 | .dt.enabled label, |
paul@315 | 280 | label.add, |
paul@308 | 281 | label.remove, |
paul@308 | 282 | label.removed, |
paul@300 | 283 | label.hidebusy, |
paul@396 | 284 | label.showdays, |
paul@396 | 285 | label.reset { |
paul@300 | 286 | color: #009; |
paul@300 | 287 | text-decoration: underline; |
paul@300 | 288 | } |
paul@300 | 289 | |
paul@412 | 290 | .dt.disabled label, |
paul@300 | 291 | .dt.enabled label { |
paul@402 | 292 | display: inline-block; |
paul@412 | 293 | } |
paul@412 | 294 | |
paul@412 | 295 | .dt.enabled label { |
paul@290 | 296 | margin-top: 0.25em; |
paul@290 | 297 | } |
paul@290 | 298 | |
paul@300 | 299 | label.hidebusy, |
paul@396 | 300 | label.showdays, |
paul@396 | 301 | label.reset { |
paul@230 | 302 | padding-left: 0.25em; |
paul@203 | 303 | } |
paul@237 | 304 | |
paul@281 | 305 | label.showdays { |
paul@237 | 306 | border-left: 1em solid #faa; /* th.participantheading background-color */ |
paul@237 | 307 | } |
paul@237 | 308 | |
paul@237 | 309 | label.hidebusy { |
paul@237 | 310 | border-left: 1em solid #af8; /* td.event background-color */ |
paul@237 | 311 | } |
paul@396 | 312 | |
paul@396 | 313 | label.reset { |
paul@806 | 314 | border-left: 1em solid #5f4; |
paul@396 | 315 | } |