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 vertical-align: top; 33 white-space: nowrap; 34 } 35 36 th.timeslot { 37 padding-top: 0; 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 background-color: #5f4; 64 border-width: 4px; 65 } 66 67 td.event a { 68 color: #009; 69 } 70 71 .error { 72 background-color: #faa; 73 } 74 75 .partstat { 76 margin-left: 1em; 77 padding: 0.25em; 78 } 79 80 span.partstat { 81 background-color: #aaa; 82 } 83 84 /* Selection of slots/periods for new events. */ 85 86 input.newevent.selector { 87 display: none; 88 } 89 90 th.container, 91 td.container { 92 padding: 0; /* for regions covered by labels */ 93 } 94 95 th.dayheading:hover, 96 th.dayheading:focus, 97 th.timeslot:hover, 98 th.timeslot:focus, 99 td.container:hover, 100 td.container:focus { 101 background-color: #af8; 102 } 103 104 label.day, 105 label.newevent.popup { 106 display: block; /* to make labels cover regions */ 107 padding: 0.25em; 108 } 109 110 label.newevent.popup { 111 visibility: hidden; 112 text-align: center; 113 } 114 115 td.container:hover label.newevent.popup, 116 td.container:focus label.newevent.popup { 117 visibility: visible; 118 } 119 120 input.newevent:checked ~ .timepoint { 121 background-color: #5f4; 122 text-decoration: underline; 123 } 124 125 /* Hiding/showing busy slots/periods or unused days. */ 126 127 /* Hide the controls. */ 128 129 input#hidebusy, 130 input#showdays, 131 132 /* Hide the enable labels when controls are already enabled. */ 133 /* Hide the disable labels when controls are already disabled. */ 134 135 input#hidebusy:checked ~ .controls label.enable[for=hidebusy], 136 input#showdays:checked ~ .controls label.disable[for=showdays], 137 input#hidebusy:not(:checked) ~ .controls label.disable[for=hidebusy], 138 input#showdays:not(:checked) ~ .controls label.enable[for=showdays], 139 140 /* Hide calendar rows depending on the selected controls. */ 141 142 input#hidebusy:checked ~ .calendar tr.slot.busy, 143 input#showdays:not(:checked) ~ .calendar thead.separator.empty, 144 input#showdays:not(:checked) ~ .calendar tbody.points.empty, 145 146 /* Hiding/showing end datetimes and start/end times. */ 147 148 input#dttimes-disable, 149 input#dttimes-enable, 150 input#dtend-disable, 151 input#dtend-enable, 152 input#dttimes-disable:checked ~ .object td.objectvalue .time.enabled, 153 input#dttimes-enable:checked ~ .object td.objectvalue .time.disabled, 154 input#dtend-disable:checked ~ .object td.objectvalue.dtend .dt.enabled, 155 input#dtend-enable:checked ~ .object td.objectvalue.dtend .dt.disabled, 156 157 /* Hiding/showing remove/uninvite labels. */ 158 159 input.add, 160 input.remove, 161 input.remove:checked ~ label.remove, 162 input.remove:not(:checked) ~ label.removed { 163 display: none; 164 } 165 166 /* Show slot endpoints when hiding adjacent busy periods. */ 167 168 input#hidebusy:checked ~ .calendar th.timeslot span.endpoint { 169 display: block; 170 } 171 172 /* Style the labels. */ 173 174 label.add, 175 label.remove, 176 label.removed { 177 float: right; 178 } 179 180 .dt.disabled label, 181 .dt.enabled label, 182 label.add, 183 label.remove, 184 label.removed, 185 label.hidebusy, 186 label.showdays { 187 color: #009; 188 text-decoration: underline; 189 } 190 191 .dt.enabled label { 192 display: block; 193 margin-top: 0.25em; 194 } 195 196 label.hidebusy, 197 label.showdays { 198 padding-left: 0.25em; 199 } 200 201 label.showdays { 202 border-left: 1em solid #faa; /* th.participantheading background-color */ 203 } 204 205 label.hidebusy { 206 border-left: 1em solid #af8; /* td.event background-color */ 207 }