templates/stop_week.html

changeset 92
16a5c37e4e67
parent 90
36efdea68d03
child 109
88a5110b66ba
--- a/templates/stop_week.html	Fri Apr 20 13:50:02 2018 +0300
+++ b/templates/stop_week.html	Tue Apr 24 23:21:34 2018 +0300
@@ -158,14 +158,31 @@
 		width: 100%;
 		border: 1px solid rgba(0, 0, 0, 0.2);
     }
-    
+
     .routes-legend tr
     {
 		width: 100%;
     }
+
+    .routes-legend .rare-group td
+    {
+		padding-top: 5px;
+		padding-bottom: 5px;
+	}
 	
-	.routes-legend td.description
+	.rare-group .routes:before, .common-route-group .rare-route-variant:before
+	{
+		content: "(";
+	}
+	
+	.rare-group .routes:after, .common-route-group .rare-route-variant:after
 	{
+		content: ")";
+	}
+
+	.rare-group td, .common-route-group .rare-route-variant
+	{
+		font-size: 15pt;
 	}
 	</style>
 </head>
@@ -192,11 +209,9 @@
 		<td colspan='100'>
 		<table class='routes-legend'>
 		{% for entry in description['description'] %}
-		<tr>
+		<tr class="{{entry[0] in description['rare-variant-groups'] and 'rare-group' or 'common-route-group'}}">
 		<td>
-			{% for route in entry[0] %}
-			<span class="route {{route in description['night-routes'] and 'night-route' or ''}}">{{ route }}</span>
-			{% endfor %}
+			<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>
 		</td>
 		<td class="{{all_night_routes(entry, description)}} description">{{ entry[1] }}</td>
 		</tr>

mercurial