156 border-spacing: 0px; |
156 border-spacing: 0px; |
157 border-collapse: separate; |
157 border-collapse: separate; |
158 width: 100%; |
158 width: 100%; |
159 border: 1px solid rgba(0, 0, 0, 0.2); |
159 border: 1px solid rgba(0, 0, 0, 0.2); |
160 } |
160 } |
161 |
161 |
162 .routes-legend tr |
162 .routes-legend tr |
163 { |
163 { |
164 width: 100%; |
164 width: 100%; |
165 } |
165 } |
166 |
166 |
167 .routes-legend td.description |
167 .routes-legend .rare-group td |
168 { |
168 { |
|
169 padding-top: 5px; |
|
170 padding-bottom: 5px; |
|
171 } |
|
172 |
|
173 .rare-group .routes:before, .common-route-group .rare-route-variant:before |
|
174 { |
|
175 content: "("; |
|
176 } |
|
177 |
|
178 .rare-group .routes:after, .common-route-group .rare-route-variant:after |
|
179 { |
|
180 content: ")"; |
|
181 } |
|
182 |
|
183 .rare-group td, .common-route-group .rare-route-variant |
|
184 { |
|
185 font-size: 15pt; |
169 } |
186 } |
170 </style> |
187 </style> |
171 </head> |
188 </head> |
172 {% macro night_class(hour) %} |
189 {% macro night_class(hour) %} |
173 {% if hour < 5 or hour >= 23 %} |
190 {% if hour < 5 or hour >= 23 %} |
190 </tr> |
207 </tr> |
191 <tr> |
208 <tr> |
192 <td colspan='100'> |
209 <td colspan='100'> |
193 <table class='routes-legend'> |
210 <table class='routes-legend'> |
194 {% for entry in description['description'] %} |
211 {% for entry in description['description'] %} |
195 <tr> |
212 <tr class="{{entry[0] in description['rare-variant-groups'] and 'rare-group' or 'common-route-group'}}"> |
196 <td> |
213 <td> |
197 {% for route in entry[0] %} |
214 <span class='routes'>{% for route in entry[0] %}<span class="route {{route in description['night-routes'] and 'night-route' or ''}} {{route in description['rare-variants'] and 'rare-route-variant' or ''}}">{{ route }}</span>{{ route != entry[0][-1] and ' ' or '' }}{% endfor %}</span> |
198 <span class="route {{route in description['night-routes'] and 'night-route' or ''}}">{{ route }}</span> |
|
199 {% endfor %} |
|
200 </td> |
215 </td> |
201 <td class="{{all_night_routes(entry, description)}} description">{{ entry[1] }}</td> |
216 <td class="{{all_night_routes(entry, description)}} description">{{ entry[1] }}</td> |
202 </tr> |
217 </tr> |
203 {% endfor %} |
218 {% endfor %} |
204 </table> |
219 </table> |