Sat, 10 Jun 2017 20:56:38 +0300
Lisätty bussipysäkkien ryhmittely
0 | 1 | <html> |
2 | <head> | |
11
e18ad36fbbf5
Lisätty favicon, korjattu tr()-funktio joka ei olettunut suomen kieleen (vaan kääntämättömään)
Teemu Piippo <teemu@hecknology.net>
parents:
5
diff
changeset
|
3 | <link rel="icon" type="image/png" href="/static/favicon.png" /> |
0 | 4 | <meta charset='UTF-8' /> |
5 | ||
6 | <style> | |
7 | body | |
8 | { | |
4 | 9 | font-family: "Oxygen-Sans", "Latin Modern Sans", Tahoma, FreeSans, Arial, sans-serif; |
0 | 10 | background: white; |
11 | color: black; | |
12 | margin: 0; | |
13 | padding: 0; | |
14 | font-size: 24pt; | |
15 | } | |
16 | a | |
17 | { | |
18 | color: inherit; | |
19 | text-decoration: none; | |
20 | } | |
21 | a:hover | |
22 | { | |
23 | text-decoration: underline; | |
24 | } | |
25 | h1 | |
26 | { | |
27 | padding-top: 10pt; | |
28 | padding-bottom: 10pt; | |
29 | text-align: center; | |
30 | background: #dc9e00; | |
31 | background: linear-gradient(to bottom, #dc9e00 0%,#eaaf19 49%,#dc9e00 92%,#906700 100%); | |
32 | color: white; | |
33 | } | |
34 | #aikataulu | |
35 | { | |
36 | width:100%; | |
37 | margin: auto; | |
38 | } | |
5 | 39 | |
40 | .sarake-aika, .sarake-linja | |
0 | 41 | { |
42 | text-align: center; | |
43 | } | |
5 | 44 | |
45 | .sarake-määränpää | |
46 | { | |
47 | text-align: left; | |
48 | } | |
49 | ||
0 | 50 | td, th, body |
51 | { | |
52 | font-size: 24pt; | |
53 | } | |
54 | ||
55 | .sarake-aika, .sarake-linja | |
56 | { | |
5 | 57 | width: 25%; |
0 | 58 | } |
59 | ||
60 | h1 | |
61 | { | |
62 | font-variant: small-caps; | |
63 | } | |
5 | 64 | |
65 | .sarake-määränpää a | |
66 | { | |
67 | white-space: pre-wrap; | |
68 | } | |
69 | ||
70 | #aikataulu tr td | |
71 | { | |
72 | padding-bottom: 10px; | |
73 | padding-top: 10px; | |
74 | padding-left: 0px; | |
75 | padding-right: 0px; | |
76 | margin: 0px; | |
77 | border-top: 1px solid gray; | |
78 | } | |
79 | ||
80 | #aikataulu tr:nth-child(even) { | |
81 | background-color: #F8F8F8; | |
82 | } | |
83 | ||
84 | #aikataulu tr.yö td | |
4 | 85 | { |
5 | 86 | /* |
87 | background-color: #d8d8ff; | |
88 | color: #008; | |
89 | border-bottom: 1px solid #00A; | |
90 | */ | |
91 | background-color: #004; | |
92 | color: #bef; | |
93 | border-top: 1px solid #008; | |
94 | } | |
95 | ||
96 | #aikataulu tr.yö:nth-child(even) td | |
97 | { | |
98 | background-color: #003; | |
99 | } | |
100 | ||
101 | #pysäkki-info | |
102 | { | |
103 | text-align: center | |
104 | } | |
105 | ||
106 | .pysäkki-sijainti | |
107 | { | |
108 | font-size: smaller; | |
4 | 109 | } |
14 | 110 | |
111 | .sarake-määränpää | |
112 | { | |
113 | text-align: center; | |
114 | } | |
0 | 115 | </style> |
116 | <title>{{viite}} {{nimi}}</title> | |
117 | </head> | |
118 | <body> | |
119 | <h1>{{viite}} {{nimi}}</h1> | |
5 | 120 | <p id="pysäkki-info"> |
121 | {{alue or ""}} | |
122 | — | |
123 | <a class="pysäkki-sijainti" href="{{linkki_karttaan}}" target="_blank">📌 ({{sijainti}})</a> | |
124 | </p> | |
125 | <table id='aikataulu' cellspacing="0"> | |
0 | 126 | <tr> |
127 | <th class='sarake-aika'>Aika</th> | |
128 | <th class='sarake-linja'>Linja</th> | |
129 | <th class='sarake-määränpää'>Määränpää</th> | |
130 | </tr> | |
131 | {% for rivi in aikataulu %} | |
5 | 132 | <tr class="{% if rivi['yö'] %} yö {% endif %}"> |
0 | 133 | <td class='sarake-aika'>{{rivi['aika']}}</td> |
134 | <td class='sarake-linja linja'> | |
135 | <a href="/ajovuoro/{{rivi['ajovuoro']}}">{{rivi['linja']}}</a> | |
136 | </td> | |
137 | <td class='sarake-määränpää'> | |
138 | <a href="/ajovuoro/{{rivi['ajovuoro']}}">{{rivi['kyltti']}}</a> | |
139 | </td> | |
140 | </tr> | |
141 | {% endfor %} | |
142 | </table> | |
143 | </body> | |
4 | 144 | </html> |