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