templates/pysäkki.html

changeset 4
312c432bb9e6
parent 0
fc48613c73e5
child 5
a65b680f1774
--- a/templates/pysäkki.html	Sun Apr 23 11:01:51 2017 +0300
+++ b/templates/pysäkki.html	Fri May 19 21:15:12 2017 +0300
@@ -5,7 +5,7 @@
 	<style>
 	body
 	{
-		font-family: "Latin Modern Sans", Tahoma, FreeSans, Arial, sans-serif;
+		font-family: "Oxygen-Sans", "Latin Modern Sans", Tahoma, FreeSans, Arial, sans-serif;
 		background: white;
 		color: black;
 		margin: 0;
@@ -53,6 +53,15 @@
 	{
 		font-variant: small-caps;
 	}
+
+	.yölinja
+	{
+		background-color: #AAF;
+		color: #00A;
+		padding-left: 6px;
+		padding-right: 6px;
+		border: 1px solid #00A;
+	}
 	</style>
 	<title>{{viite}} {{nimi}}</title>
 </head>
@@ -68,7 +77,13 @@
 		<tr>
 			<td class='sarake-aika'>{{rivi['aika']}}</td>
 			<td class='sarake-linja linja'>
+				{% if rivi['yö'] %}
+				<span class="yölinja">
+				{% endif %}
 				<a href="/ajovuoro/{{rivi['ajovuoro']}}">{{rivi['linja']}}</a>
+				{% if rivi['yö'] %}
+				</span>
+				{% endif %}
 			</td>
 			<td class='sarake-määränpää'>
 				<a href="/ajovuoro/{{rivi['ajovuoro']}}">{{rivi['kyltti']}}</a>
@@ -77,4 +92,4 @@
 		{% endfor %}
 	</table>
 </body>
-</html>
\ No newline at end of file
+</html>

mercurial