paul@212 | 1 | /* Table styling. */ |
paul@212 | 2 | |
paul@230 | 3 | table.calendar, |
paul@302 | 4 | table.conflicts, |
paul@230 | 5 | table.object { |
paul@188 | 6 | border: 2px solid #000; |
paul@188 | 7 | } |
paul@188 | 8 | |
paul@188 | 9 | colgroup#columns-request { |
paul@188 | 10 | background-color: #eef; |
paul@188 | 11 | } |
paul@188 | 12 | |
paul@188 | 13 | colgroup#columns-freebusy { |
paul@188 | 14 | background-color: #fee; |
paul@188 | 15 | } |
paul@188 | 16 | |
paul@193 | 17 | th.requestheading { |
paul@193 | 18 | background-color: #aaf; |
paul@193 | 19 | } |
paul@193 | 20 | |
paul@193 | 21 | th.participantheading{ |
paul@193 | 22 | background-color: #faa; |
paul@193 | 23 | } |
paul@193 | 24 | |
paul@212 | 25 | th.dayheading, |
paul@212 | 26 | th.mainheading { |
paul@188 | 27 | background-color: #f85; |
paul@188 | 28 | } |
paul@188 | 29 | |
paul@212 | 30 | th.timeslot, |
paul@212 | 31 | th.objectheading { |
paul@212 | 32 | white-space: nowrap; |
paul@212 | 33 | } |
paul@212 | 34 | |
paul@212 | 35 | th.timeslot { |
paul@188 | 36 | padding-top: 0; |
paul@325 | 37 | vertical-align: top; |
paul@188 | 38 | } |
paul@188 | 39 | |
paul@241 | 40 | th.timeslot span.endpoint { |
paul@241 | 41 | display: none; |
paul@241 | 42 | font-size: smaller; |
paul@241 | 43 | } |
paul@241 | 44 | |
paul@188 | 45 | td.event { |
paul@275 | 46 | background-color: #ff8; |
paul@275 | 47 | border: 2px solid #000; |
paul@275 | 48 | } |
paul@275 | 49 | |
paul@275 | 50 | td.event.organising { |
paul@188 | 51 | background-color: #af8; |
paul@188 | 52 | } |
paul@189 | 53 | |
paul@195 | 54 | td.event.continued { |
paul@195 | 55 | border-top: 2px dotted #000; |
paul@195 | 56 | } |
paul@195 | 57 | |
paul@195 | 58 | td.event.continues { |
paul@195 | 59 | border-bottom: 2px dotted #000; |
paul@195 | 60 | } |
paul@195 | 61 | |
paul@189 | 62 | td.event:target { |
paul@328 | 63 | border-width: 4px; |
paul@328 | 64 | background-color: #ee2; |
paul@328 | 65 | } |
paul@328 | 66 | |
paul@328 | 67 | td.event.organising:target { |
paul@189 | 68 | background-color: #5f4; |
paul@189 | 69 | } |
paul@190 | 70 | |
paul@190 | 71 | td.event a { |
paul@190 | 72 | color: #009; |
paul@190 | 73 | } |
paul@196 | 74 | |
paul@299 | 75 | .error { |
paul@299 | 76 | background-color: #faa; |
paul@299 | 77 | } |
paul@299 | 78 | |
paul@315 | 79 | .partstat { |
paul@315 | 80 | margin-left: 1em; |
paul@324 | 81 | background-color: #eee; |
paul@324 | 82 | } |
paul@324 | 83 | |
paul@324 | 84 | .partstat, |
paul@324 | 85 | .partstat option { |
paul@315 | 86 | padding: 0.25em; |
paul@315 | 87 | } |
paul@315 | 88 | |
paul@324 | 89 | select.partstat { |
paul@324 | 90 | background-color: #ccc; |
paul@324 | 91 | padding: 0; |
paul@324 | 92 | font-family: inherit; |
paul@324 | 93 | font-size: inherit; |
paul@315 | 94 | } |
paul@315 | 95 | |
paul@357 | 96 | .replaced { |
paul@357 | 97 | text-decoration: line-through; |
paul@357 | 98 | } |
paul@357 | 99 | |
paul@203 | 100 | /* Selection of slots/periods for new events. */ |
paul@203 | 101 | |
paul@249 | 102 | input.newevent.selector { |
paul@196 | 103 | display: none; |
paul@196 | 104 | } |
paul@196 | 105 | |
paul@243 | 106 | th.container, |
paul@236 | 107 | td.container { |
paul@243 | 108 | padding: 0; /* for regions covered by labels */ |
paul@236 | 109 | } |
paul@236 | 110 | |
paul@242 | 111 | th.dayheading:hover, |
paul@242 | 112 | th.dayheading:focus, |
paul@236 | 113 | th.timeslot:hover, |
paul@236 | 114 | th.timeslot:focus, |
paul@236 | 115 | td.container:hover, |
paul@236 | 116 | td.container:focus { |
paul@236 | 117 | background-color: #af8; |
paul@196 | 118 | } |
paul@196 | 119 | |
paul@243 | 120 | label.day, |
paul@243 | 121 | label.newevent.popup { |
paul@243 | 122 | display: block; /* to make labels cover regions */ |
paul@243 | 123 | padding: 0.25em; |
paul@243 | 124 | } |
paul@243 | 125 | |
paul@236 | 126 | label.newevent.popup { |
paul@236 | 127 | visibility: hidden; |
paul@236 | 128 | text-align: center; |
paul@196 | 129 | } |
paul@196 | 130 | |
paul@236 | 131 | td.container:hover label.newevent.popup, |
paul@236 | 132 | td.container:focus label.newevent.popup { |
paul@236 | 133 | visibility: visible; |
paul@196 | 134 | } |
paul@196 | 135 | |
paul@196 | 136 | input.newevent:checked ~ .timepoint { |
paul@243 | 137 | background-color: #5f4; |
paul@196 | 138 | text-decoration: underline; |
paul@196 | 139 | } |
paul@203 | 140 | |
paul@280 | 141 | /* Hiding/showing busy slots/periods or unused days. */ |
paul@279 | 142 | |
paul@279 | 143 | /* Hide the controls. */ |
paul@203 | 144 | |
paul@279 | 145 | input#hidebusy, |
paul@281 | 146 | input#showdays, |
paul@279 | 147 | |
paul@279 | 148 | /* Hide the enable labels when controls are already enabled. */ |
paul@288 | 149 | /* Hide the disable labels when controls are already disabled. */ |
paul@203 | 150 | |
paul@279 | 151 | input#hidebusy:checked ~ .controls label.enable[for=hidebusy], |
paul@288 | 152 | input#showdays:checked ~ .controls label.disable[for=showdays], |
paul@279 | 153 | input#hidebusy:not(:checked) ~ .controls label.disable[for=hidebusy], |
paul@288 | 154 | input#showdays:not(:checked) ~ .controls label.enable[for=showdays], |
paul@203 | 155 | |
paul@279 | 156 | /* Hide calendar rows depending on the selected controls. */ |
paul@279 | 157 | |
paul@279 | 158 | input#hidebusy:checked ~ .calendar tr.slot.busy, |
paul@282 | 159 | input#showdays:not(:checked) ~ .calendar thead.separator.empty, |
paul@308 | 160 | input#showdays:not(:checked) ~ .calendar tbody.points.empty, |
paul@241 | 161 | |
paul@300 | 162 | /* Hiding/showing end datetimes and start/end times. */ |
paul@290 | 163 | |
paul@300 | 164 | input#dttimes-disable, |
paul@300 | 165 | input#dttimes-enable, |
paul@290 | 166 | input#dtend-disable, |
paul@290 | 167 | input#dtend-enable, |
paul@300 | 168 | input#dttimes-disable:checked ~ .object td.objectvalue .time.enabled, |
paul@300 | 169 | input#dttimes-enable:checked ~ .object td.objectvalue .time.disabled, |
paul@300 | 170 | input#dtend-disable:checked ~ .object td.objectvalue.dtend .dt.enabled, |
paul@308 | 171 | input#dtend-enable:checked ~ .object td.objectvalue.dtend .dt.disabled, |
paul@308 | 172 | |
paul@308 | 173 | /* Hiding/showing remove/uninvite labels. */ |
paul@308 | 174 | |
paul@315 | 175 | input.add, |
paul@308 | 176 | input.remove, |
paul@308 | 177 | input.remove:checked ~ label.remove, |
paul@308 | 178 | input.remove:not(:checked) ~ label.removed { |
paul@290 | 179 | display: none; |
paul@290 | 180 | } |
paul@290 | 181 | |
paul@308 | 182 | /* Show slot endpoints when hiding adjacent busy periods. */ |
paul@308 | 183 | |
paul@308 | 184 | input#hidebusy:checked ~ .calendar th.timeslot span.endpoint { |
paul@308 | 185 | display: block; |
paul@308 | 186 | } |
paul@308 | 187 | |
paul@279 | 188 | /* Style the labels. */ |
paul@279 | 189 | |
paul@315 | 190 | label.add, |
paul@308 | 191 | label.remove, |
paul@308 | 192 | label.removed { |
paul@308 | 193 | float: right; |
paul@308 | 194 | } |
paul@308 | 195 | |
paul@300 | 196 | .dt.disabled label, |
paul@300 | 197 | .dt.enabled label, |
paul@315 | 198 | label.add, |
paul@308 | 199 | label.remove, |
paul@308 | 200 | label.removed, |
paul@300 | 201 | label.hidebusy, |
paul@300 | 202 | label.showdays { |
paul@300 | 203 | color: #009; |
paul@300 | 204 | text-decoration: underline; |
paul@300 | 205 | } |
paul@300 | 206 | |
paul@300 | 207 | .dt.enabled label { |
paul@290 | 208 | display: block; |
paul@290 | 209 | margin-top: 0.25em; |
paul@290 | 210 | } |
paul@290 | 211 | |
paul@300 | 212 | label.hidebusy, |
paul@300 | 213 | label.showdays { |
paul@230 | 214 | padding-left: 0.25em; |
paul@203 | 215 | } |
paul@237 | 216 | |
paul@281 | 217 | label.showdays { |
paul@237 | 218 | border-left: 1em solid #faa; /* th.participantheading background-color */ |
paul@237 | 219 | } |
paul@237 | 220 | |
paul@237 | 221 | label.hidebusy { |
paul@237 | 222 | border-left: 1em solid #af8; /* td.event background-color */ |
paul@237 | 223 | } |