-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtemplate.html
More file actions
144 lines (135 loc) · 3.6 KB
/
Copy pathtemplate.html
File metadata and controls
144 lines (135 loc) · 3.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<!DOCTYPE html>
<html>
<head>
<title>{{ title }}</title>
<meta charset="utf-8">
<style type="text/css">
/* Game icons */
@font-face{
font-family: 'netrunner';
src: url('fonts/netrunner.eot');
src: url('fonts/netrunner.woff') format('woff'),
url('fonts/netrunner.ttf') format('truetype'),
url('fonts/netrunner.svg') format('svg');
font-weight: normal;
font-style: normal;
}
.icon {
font-family: 'netrunner';
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-size:120%;
line-height:83.33%;
margin:0px 1px;
}
.icon-credit:before {
content: "\e600";
}
.icon-link:before {
content: "\e601";
}
.icon-haas-bioroid:before {
content: "\e602";
}
.icon-shaper:before {
content: "\e603";
}
.icon-subroutine:before {
content: "\e604";
}
.icon-anarch:before {
content: "\e605";
}
.icon-trash:before {
content: "\e606";
}
.icon-weyland-consortium:before {
content: "\e607";
}
.icon-recurring-credit:before {
content: "\e608";
}
.icon-jinteki:before {
content: "\e609";
}
.icon-1mu:before {
content: "\e60a";
}
.icon-nbn:before {
content: "\e60b";
}
.icon-2mu:before {
content: "\e60c";
}
.icon-asset:before {
content: "\e60d";
}
.icon-3mu:before {
content: "\e60e";
}
.icon-rez:before {
content: "\e60f";
}
.icon-mu:before {
content: "\e610";
}
.icon-click:before {
content: "\e611";
}
.icon-criminal:before {
content: "\e612";
}
/* Title styles */
h1 {
font-weight: normal;
font-size: 20px;
margin: 0 0 5px 30px;
}
/* Card list styles */
p.card {
text-indent: -3em;
padding-left: 3em;
margin: 0;
}
table, tr, td {
margin:0;
padding:0;
border: none;
border-spacing: 0;
}
table td.card-title {
vertical-align: top;
white-space: nowrap;
}
</style>
</head>
<body>
<h1>
{{ title }}
</h1>
{% for card in cards %}
{# Если заголовок из названия карты по-английски и по-русски получаетсяся слишком длинным, то используем параграф для оформления; иначе - таблицу #}
{% if card.title_en_ru|length > 25 %}
<p class="card">
{{ card.title_en_ru }}. {{ card.text_ru }}
</p>
{% else %}
<table>
<tr>
<td class="card-title">
{{ card.title_en_ru }}.
</td>
<td>
{{ card.text_ru }}
</td>
</tr>
</table>
{% endif %}
{% endfor %}
</body>
</html>