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