-
Notifications
You must be signed in to change notification settings - Fork 0
/
print.html
415 lines (347 loc) · 10.6 KB
/
print.html
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
---
---
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="assets/github-markdown.css">
<title>{{ site.title }}</title>
<style>
html, .markdown-body {
font-family: Mulish;
font-size: 11pt;
}
.markdown-body h1, .markdown-body h2, .markdown-body h3 {
font-weight: normal;
position: relative;
}
.markdown-body h1 {
margin-top: 0;
font-size: 1.5cm;
border-bottom: none;
}
.markdown-body h2 {
font-size: 1.5em;
}
.markdown-body h3 {
font-size: 1em;
font-weight: bold;
}
.markdown-body h4 {
font-size: 1em;
font-weight: italic;
}
.markdown-body h4 {
font-weight: bold;
font-weight: normal;
}
article>p, article>ul, article>ol {
position: relative;
max-width: 27rem;
}
article {
clear: both;
}
a:link {
color: inherit;
text-decoration: none;
}
a:link:after {
color: grey;
page-break-inside: avoid;
margin-left: .25em;
break-inside: avoid;
display: block;
right: 0;
width: 6cm;
margin-right: -7cm;
padding: 0.25rem;
line-height: 1.25;
text-align: left;
float: right;
clear: both;
word-break: normal;
text-decoration: none;
}
a[href^="http"]:link {
color: black;
text-decoration: none;
word-wrap: normal;
}
a[href^="http"]:after {
content: "" attr(href) "";
font-size: .75em;
}
a[href^="#"] {
color: black;
text-decoration: none;
}
a[href^="#"]:after {
content: "" target-counter(attr(href), page);
color: black;
background-color: whitesmoke;
display: inline;
width: 0.6cm;
padding: 0.2cm;
text-align: right;
}
img {
max-width: 155% !important;
}
ol, ul {
margin-bottom: 2em;
}
li, p {
clear: both;
}
/* Headings */
.markdown-body [id$="policy-makers-what-you-need-to-do"]:before,
.markdown-body [id$="management-what-you-need-to-do"]:before,
.markdown-body [id$="developers-and-designers-what-you-need-to-do"]:before {
display: block;
position: absolute;
content: 'A';
text-align: center;
width: 1cm;
height: 1cm;
background-color: black;
border: 1px solid black;
color: white;
display: inline-block;
margin-left: -1.2cm;
box-sizing: border-box;
padding: 0.12cm;
font-size: 0.5cm;
font-weight: 900;
}
.markdown-body [id$="policy-makers-what-you-need-to-do"]:before {
background-color: #00EFB5;
border-color: #00EFB5;
content: 'P';
}
.markdown-body [id$="management-what-you-need-to-do"]:before {
background-color: #FF6D1C;
border-color: #FF6D1C;
content: 'M';
}
.markdown-body [id$="developers-and-designers-what-you-need-to-do"]:before {
background-color: #8626FF;
border-color: #8626FF;
content: 'D';
}
/* First page */
h1.title {
font-size: 5em;
font-weight: 700;
margin-bottom: 1cm;
}
ul.first-page-audiences {
max-width: none;
list-style: none;
font-size: 1.25em;
padding-left: 0;
}
.first-page-audiences li, .first-page-audiences lh {
display: block;
margin-bottom: .5cm;
}
.first-page-audiences lh {
margin-bottom: 1cm;
}
.first-page-audiences li {
padding-left: 1.2cm;
}
.first-page-audiences li::before {
margin-top: -.15cm;
}
#section-first-page>img {
width: 100%;
}
/* Print specific */
@media print {
/* html { page-break-before: left } */
@page {
/* A4 with a 3mm bleed on every side */
size: 21.6cm 30.3cm;
margin: 2cm 0;
orphans:4;
widows:4;
}
@page :left {
margin-right: 1cm;
@top-left {
background: whitesmoke;
font-size: 75%;
content: counter(page);
height: 1cm;
width: 1.23cm;
text-align: center;
padding-left: 0.5cm;
}
}
@page :right {
margin-left: 1cm;
@top-right {
background: whitesmoke;
font-size: 75%;
content: counter(page);
height: 1cm;
width: 1.23cm;
text-align: center;
padding-right: 0.5cm;
}
}
figure {
page: image;
}
figure>img {
width: 100%;
height: 100%;
}
@page image {
margin-top: 0 !important;
margin-left: -1.5cm !important;
margin-right: -1.5cm !important;
margin-bottom: 0 !important;
padding: 0 0 0 0 !important;
}
article {
margin: 0 2cm;
break-before: left;
}
article:first-of-type {
break-before: avoid;
}
h1, h2, h3, h4 {
page-break-after: avoid;
}
img {
page-break-inside: avoid;
}
#section-first-page>img {
width: 21.6cm;
margin: 1cm 0 1cm -3.21cm; /* This value for the left margin was done by eye */
}
}
@media screen {
body {
background-color: whitesmoke;
margin: 0; padding: 0;
}
article {
display: block;
background-color: white;
padding: 1cm;
min-height: 29.7cm;
max-width: 50em;
max-width: 21cm;
box-sizing: border-box;
margin: 2cm 0;
}
}
</style>
</head>
<body class="markdown-body">
<article id="section-first-page">
<p>Request for contributions</p>
<h1 class="title">Standard for Public Code</h1>
<ul class="first-page-audiences">
<lh>What public code is and how to implement it for:</lh>
<li id="first-page-policy-makers-what-you-need-to-do">Policy makers</li>
<li id="first-page-management-what-you-need-to-do">Management</li>
<li id="first-page-developers-and-designers-what-you-need-to-do">Developers and designers</li>
</ul>
<img src="assets/hands-shake.svg" alt="hands shaking">
<p>Version {{ site.version }}</p>
<p><img src="/assets/cc-zero-badge.svg" alt="Licensed CC0" height="46"> <img src="/assets/dpg-badge.svg" alt="Digital Public Goods approval badge" width="92" height="46"></p>
<p>github.com/publiccodenet/standard</p>
</article>
<article id="section-authors">
{% for page in site.pages %}{% if page.name == "AUTHORS.md" %}{{page.content | markdownify}}{% endif%}{% endfor %}
</article>
<article id="table-of-contents">
<h1>Table of Contents</h1>
<ol>
<li><a href="#section-authors">Authors</a></li>
<li><a href="#section-introduction">Introduction</a></li>
<li><a href="#section-readers-guide">Readers guide</a></li>
<li><a href="#section-glossary">Glossary</a></li>
<li><a href="#section-criteria">Criteria</a>
{% assign sorted = site.pages | sort:"order" %}
<ol>
{% for page in sorted %}{% if page.dir == "/criteria/" %}{% if page.name != "index.md" %}{% if page.title %}
<li><a href="#section-criteria-{{page.name}}">{{page.title}}</a></li>{% endif%}
{% endif%} {% endif%}{% endfor %}
</ol>
</li>
<li><a href="#section-contributing">Contributing guide</a></li>
<li><a href="#section-code_of_conduct">Code of conduct</a></li>
<li><a href="#section-governance">Governance</a></li>
<li><a href="#section-changelog">Version history</a></li>
<li><a href="#section-license">License</a></li>
<li><a href="#section-contact">Contact</a></li>
</ol>
</article>
<figure>
<img src="/assets/codebase.svg" alt="codebase">
</figure>
<article id="section-introduction">
{% for page in site.pages %}{% if page.name == "introduction.md" %}{{page.content | markdownify}}{% endif%}{% endfor %}
</article>
<article id="section-readers-guide">
{% for page in site.pages %}{% if page.name == "readers-guide.md" %}{{page.content | markdownify}}{% endif%}{% endfor %}
</article>
<article id="section-glossary">
{% for page in site.pages %}{% if page.name == "glossary.md" %}{{page.content | markdownify}}{% endif%}{% endfor %}
</article>
<article id="section-criteria">
<h1>Criteria</h1>
{% assign sorted = site.pages | sort:"order" %}
<ol>
{% for page in sorted %}{% if page.dir == "/criteria/" %}{% if page.name != "index.md" %}{% if page.title %}
<li><a href="#section-criteria-{{page.name}}">{{page.title}}</a></li>{% endif%}
{% endif%} {% endif%}{% endfor %}
</ol>
</article>
<figure>
<img src="/assets/unlock.svg" alt="unlock">
</figure>
{% assign sorted = site.pages | sort:"order" %}
{% for page in sorted %}{% if page.dir == "/criteria/" %}{% if page.name != "index.md" %}{% if page.title %}
<article id="section-criteria-{{page.name}}">
{{page.content | markdownify}}
</article>{% endif%}
{% endif%} {% endif%}{% endfor %}
<article id="section-contributing">
{% for page in site.pages %}{% if page.name == "CONTRIBUTING.md" %}{{page.content | markdownify}}{% endif%}{% endfor %}
</article>
<figure>
<img src="/assets/collaborative-developement.svg" alt="collaborative-developement">
</figure>
<article id="section-code_of_conduct">
{% for page in site.pages %}{% if page.name == "CODE_OF_CONDUCT.md" %}{{page.content | markdownify}}{% endif%}{% endfor %}
</article>
<figure>
<img src="/assets/collaboration.svg" alt="collaboration">
</figure>
<article id="section-governance">
{% for page in site.pages %}{% if page.name == "GOVERNANCE.md" %}{{page.content | markdownify}}{% endif%}{% endfor %}
</article>
<figure>
<img src="/assets/eco-system.svg" alt="ecosystem">
</figure>
<article id="section-changelog">
{% for page in site.pages %}{% if page.name == "CHANGELOG.md" %}{{page.content | markdownify}}{% endif%}{% endfor %}
</article>
<article id="section-license">
<p>This license is the legal contract that allows anyone to do anything they like with the content in this entire document.</p>
{% for page in site.pages %}{% if page.name == "LICENSE.md" %}{{page.content | markdownify}}{% endif%}{% endfor %}
</article>
<article id="section-contact">
<h1>Contact</h1>
<p>For questions and more information about the Foundation for Public Code you can find us at <a href="https://publiccode.net">our website</a>, email us at [email protected], or call us at +31 20 2 444 500</p>
</article>
</body>
</html>