metanorma-un 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +7 -0
  2. data/.github/workflows/macos.yml +39 -0
  3. data/.github/workflows/ubuntu.yml +39 -0
  4. data/.github/workflows/windows.yml +42 -0
  5. data/.gitignore +1 -0
  6. data/.hound.yml +3 -0
  7. data/.rubocop.yml +10 -0
  8. data/CODE_OF_CONDUCT.md +74 -0
  9. data/Gemfile +11 -0
  10. data/LICENSE +25 -0
  11. data/README.adoc +141 -0
  12. data/Rakefile +6 -0
  13. data/bin/console +14 -0
  14. data/bin/rspec +17 -0
  15. data/bin/setup +8 -0
  16. data/lib/asciidoctor/un.rb +7 -0
  17. data/lib/asciidoctor/un/basicdoc.rng +1059 -0
  18. data/lib/asciidoctor/un/biblio.rng +1142 -0
  19. data/lib/asciidoctor/un/boilerplate.xml +57 -0
  20. data/lib/asciidoctor/un/converter.rb +209 -0
  21. data/lib/asciidoctor/un/isodoc.rng +1028 -0
  22. data/lib/asciidoctor/un/reqt.rng +171 -0
  23. data/lib/asciidoctor/un/un.rng +242 -0
  24. data/lib/asciidoctor/un/validate.rb +22 -0
  25. data/lib/isodoc/un.rb +10 -0
  26. data/lib/isodoc/un/base_convert.rb +227 -0
  27. data/lib/isodoc/un/html/header.html +225 -0
  28. data/lib/isodoc/un/html/html_unece_intro.html +15 -0
  29. data/lib/isodoc/un/html/html_unece_plenary_titlepage.html +100 -0
  30. data/lib/isodoc/un/html/html_unece_titlepage.html +81 -0
  31. data/lib/isodoc/un/html/htmlstyle.scss +1174 -0
  32. data/lib/isodoc/un/html/logo.jpg +0 -0
  33. data/lib/isodoc/un/html/scripts.html +84 -0
  34. data/lib/isodoc/un/html/scripts.pdf.html +72 -0
  35. data/lib/isodoc/un/html/unece.scss +801 -0
  36. data/lib/isodoc/un/html/word_unece_intro.html +15 -0
  37. data/lib/isodoc/un/html/word_unece_plenary_titlepage.html +160 -0
  38. data/lib/isodoc/un/html/word_unece_titlepage.html +30 -0
  39. data/lib/isodoc/un/html/wordstyle.scss +1141 -0
  40. data/lib/isodoc/un/html_convert.rb +121 -0
  41. data/lib/isodoc/un/metadata.rb +115 -0
  42. data/lib/isodoc/un/pdf_convert.rb +133 -0
  43. data/lib/isodoc/un/word_convert.rb +180 -0
  44. data/lib/metanorma-un.rb +8 -0
  45. data/lib/metanorma/un.rb +12 -0
  46. data/lib/metanorma/un/UN_emblem_blue.svg +193 -0
  47. data/lib/metanorma/un/input.rb +18 -0
  48. data/lib/metanorma/un/processor.rb +43 -0
  49. data/lib/metanorma/un/version.rb +5 -0
  50. data/metanorma-unece.gemspec +48 -0
  51. metadata +334 -0
@@ -0,0 +1,15 @@
1
+ {% if doctype == "Recommendation" %}
2
+ <div>
3
+ <div id="boilerplate-legal-destination"/>
4
+ <div id="boilerplate-copyright-destination"/>
5
+ </div>
6
+ {% endif %}
7
+
8
+ <nav>
9
+ <h1 id="content">Contents</h1>
10
+ <div id="toc"></div>
11
+
12
+ </nav>
13
+
14
+
15
+ <div class="rule toc"></div>
@@ -0,0 +1,100 @@
1
+ <div class="document-stage-band" id='{{ stage | downcase | replace: " ", "-" }}-band'>
2
+ <p class="document-stage">{{ stage }}</p>
3
+ </div>
4
+
5
+ <div class="document-type-band" id='{{ doctype | downcase | replace: " ", "-" }}-band'>
6
+ <p class="document-type">UNECE {{ doctype }}</p>
7
+ </div>
8
+
9
+
10
+
11
+ <div id='toggle'> <span>&#x2022;</span> </div>
12
+
13
+ <header>
14
+
15
+ <!--<div class="WordSection1">-->
16
+ <div class="coverpage">
17
+ <div class="wrapper-top">
18
+
19
+ <div class="coverpage-doc-identity">
20
+ <div class="doc-number">
21
+ <span class="docnumber">{{ formatted_docnumber }}</span>
22
+ <span class="docyear">{{ draftinfo }}</span>
23
+ </div>
24
+
25
+ <div class="doc-number">
26
+ <p>{{ session_number }} session</p>
27
+ <p>{{ session_date }}</p>
28
+ {% if session_itemnumber.size == 1 %}
29
+ <p>Agenda item {{ session_itemnumber[0] }}</p>
30
+ {% endif %}
31
+ {% if session_itemnumber.size > 1 %}
32
+ <p>Agenda items {{ session_itemnumber | join: ", " }}</p>
33
+ {% endif %}
34
+ <p>{{ docnumber }}{% if item_footnote %}[{{item_footnote}}]{% endif %}
35
+ {% if session_itemname.size > 0 %}
36
+ <p> {{ session_itemname | join: "<br/>" }}</p>
37
+ {% endif %}
38
+ {% if session_subitemname.size > 0 %}
39
+ <p>{{ session_subitemname | join: "<br/>" }}</p>
40
+ {% endif %}
41
+ </div>
42
+ </div>
43
+
44
+ <div class="coverpage-title">
45
+ <span class="title-first">{{ doctitle }}</span>
46
+ <!--<span class="title-second">{{ docsubtitle }}</span>-->
47
+ </div>
48
+ </div>
49
+
50
+ <div class="coverpage-logo">
51
+ <span>UNECE {{ docyear }}</span>
52
+ </div>
53
+
54
+ <div class="coverpage-tc-name">
55
+ <span>{{ tc }}</span>
56
+ </div>
57
+ </div>
58
+
59
+ <div class="wrapper-top-bottom"></div>
60
+
61
+ <div class="WordSection11">
62
+ <div class="coverpage-stage-block" >
63
+ <span class="coverpage-stage" id="{{ doctype | replace: ' ', '-' | downcase }}">UNECE {{ doctype }}</span>
64
+ </div>
65
+
66
+ <div class="coverpage-stage-block" >
67
+ <p><span class="coverpage-maturity" id="{{ stage | replace: ' ', '-' | downcase }}">{% if unpublished %}{{ stage }}{% endif %}</span></p>
68
+ {% if submissionlanguage %}
69
+ <p><span class="coverpage-maturity">Original: {{ submissionlanguage | join: "/" }}</span></p>
70
+ {% endif %}
71
+ {% if doclanguage %}
72
+ <p><span class="coverpage-maturity">{{ doclanguage | join: ", " }} only</span></p>
73
+ {% endif %}
74
+ </div>
75
+
76
+ {% if doctype == "Policy And Procedures" or doctype == "Proposal" %}
77
+ <div class="coverpage-stage-block" >{{ revdate }}</div>
78
+ {% endif %}
79
+
80
+ <div class="info-section">
81
+ <div class="copyright">
82
+ <p class="year">
83
+ &copy; {{ docyear }} United Nations.
84
+ </p>
85
+
86
+ <div class="message">
87
+ <div id="boilerplate-license-destination"/>
88
+ </div>
89
+
90
+ <div class="contact-info">
91
+ <div id="boilerplate-feedback-destination"/>
92
+ </div>
93
+ </div>
94
+
95
+ <div class="rule"></div>
96
+ </div>
97
+ </div>
98
+
99
+
100
+ </header>
@@ -0,0 +1,81 @@
1
+ <div class="document-stage-band" id='{{ stage | downcase | replace: " ", "-" }}-band'>
2
+ <p class="document-stage">{{ stage }}</p>
3
+ </div>
4
+
5
+ <div class="document-type-band" id='{{ doctype | downcase | replace: " ", "-" }}-band'>
6
+ <p class="document-type">UNECE {{ doctype }}</p>
7
+ </div>
8
+
9
+
10
+
11
+ <div id='toggle'> <span>&#x2022;</span> </div>
12
+
13
+ <header>
14
+
15
+ <!--<div class="WordSection1">-->
16
+ <div class="coverpage">
17
+ <div class="wrapper-top">
18
+
19
+ <div class="coverpage-doc-identity">
20
+ <div class="doc-number">
21
+ <span class="docnumber">{{ formatted_docnumber }}</span>
22
+ <span class="docyear">{{ draftinfo }}</span>
23
+ </div>
24
+
25
+ <div class="coverpage-title">
26
+ <span class="title-first">{{ doctitle }}</span>
27
+ <!--<span class="title-second">{{ docsubtitle }}</span>-->
28
+ </div>
29
+ </div>
30
+
31
+ <div class="coverpage-logo">
32
+ <span>UNECE {{ docyear }}</span>
33
+ </div>
34
+
35
+ <div class="coverpage-tc-name">
36
+ <span>{{ tc }}</span>
37
+ </div>
38
+ </div>
39
+
40
+ <div class="wrapper-top-bottom"></div>
41
+
42
+ <div class="WordSection11">
43
+ <div class="coverpage-stage-block" >
44
+ <span class="coverpage-stage" id="{{ doctype | replace: ' ', '-' | downcase }}">UNECE {{ doctype }}</span>
45
+ </div>
46
+
47
+ <div class="coverpage-stage-block" >
48
+ <p><span class="coverpage-maturity" id="{{ stage | replace: ' ', '-' | downcase }}">{% if unpublished %}{{ stage }}{% endif %}</span></p>
49
+ {% if submissionlanguage %}
50
+ <p><span class="coverpage-maturity">Original: {{ submissionlanguage | join: "/" }}</span></p>
51
+ {% endif %}
52
+ {% if doclanguage %}
53
+ <p><span class="coverpage-maturity">{{ doclanguage | join: ", " }} only</span></p>
54
+ {% endif %}
55
+ </div>
56
+
57
+ {% if doctype == "Policy And Procedures" or doctype == "Proposal" %}
58
+ <div class="coverpage-stage-block" >{{ revdate }}</div>
59
+ {% endif %}
60
+
61
+ <div class="info-section">
62
+ <div class="copyright">
63
+ <p class="year">
64
+ &copy; {{ docyear }} United Nations.
65
+ </p>
66
+
67
+ <div class="message">
68
+ <div id="boilerplate-license-destination"/>
69
+ </div>
70
+
71
+ <div class="contact-info">
72
+ <div id="boilerplate-feedback-destination"/>
73
+ </div>
74
+ </div>
75
+
76
+ <div class="rule"></div>
77
+ </div>
78
+ </div>
79
+
80
+
81
+ </header>
@@ -0,0 +1,1174 @@
1
+ /*
2
+ 0 CSS RESET
3
+ */
4
+
5
+ /* http://meyerweb.com/eric/tools/css/reset/
6
+ v2.0 | 20110126
7
+ License: none (public domain)
8
+ */
9
+
10
+ html, body, div, span, applet, object, iframe,
11
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
12
+ a, abbr, acronym, address, big, cite, code,
13
+ del, dfn, em, img, ins, kbd, q, s, samp,
14
+ small, strike, strong, sub, sup, tt, var,
15
+ b, u, i, center,
16
+ ol, ul, li,
17
+ fieldset, form, label, legend,
18
+ table, caption, tbody, tfoot, thead, tr, th, td,
19
+ article, aside, canvas, details, embed,
20
+ figure, figcaption, footer, header, hgroup,
21
+ menu, nav, output, ruby, section, summary,
22
+ time, mark, audio, video {
23
+ margin: 0;
24
+ padding: 0;
25
+ }
26
+
27
+ html, body, div, span, applet, object, iframe,
28
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
29
+ a, abbr, acronym, address, big, cite, code,
30
+ del, dfn, em, img, ins, kbd, q, s, samp,
31
+ small, strike, strong, sub, sup, tt, var,
32
+ b, u, i, center,
33
+ dl, dt, dd, ol, ul, li,
34
+ fieldset, form, label, legend,
35
+ table, caption, tbody, tfoot, thead, tr, th, td,
36
+ article, aside, canvas, details, embed,
37
+ figure, figcaption, footer, header, hgroup,
38
+ menu, nav, output, ruby, section, summary,
39
+ time, mark, audio, video {
40
+ border: 0;
41
+ font-size: 100%;
42
+ }
43
+
44
+ html, body, div, span, applet, object, iframe,
45
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
46
+ a, abbr, acronym, address, big, cite, code,
47
+ del, dfn, em, img, ins, kbd, q, s, samp,
48
+ small, strike, strong, tt, var,
49
+ b, u, i, center,
50
+ dl, dd, ol, ul, li,
51
+ fieldset, form, label, legend,
52
+ table, caption, tbody, tfoot, thead, tr, th, td,
53
+ article, aside, canvas, details, embed,
54
+ figure, figcaption, footer, header, hgroup,
55
+ menu, nav, output, ruby, section, summary,
56
+ time, mark, audio, video {
57
+ vertical-align: baseline;
58
+ }
59
+
60
+
61
+ html, body, div, span, applet, object, iframe,
62
+ p, blockquote,
63
+ a, abbr, acronym, address, big, cite,
64
+ del, dfn, em, img, ins, q, s,
65
+ small, strike, strong, sub, sup, var,
66
+ b, u, i, center,
67
+ dl, dt, dd, ol, ul, li,
68
+ fieldset, form, label, legend,
69
+ table, caption, tbody, tfoot, thead, tr, th, td,
70
+ article, aside, canvas, details, embed,
71
+ figure, figcaption, footer, header, hgroup,
72
+ menu, nav, output, ruby, section, summary,
73
+ time, mark, audio, video {
74
+ font-family: $bodyfont;
75
+ }
76
+
77
+ code, pre, tt, kbd, samp {
78
+ font-family: $monospacefont;
79
+ font-variant-ligatures: none;
80
+ }
81
+
82
+ code *, pre *, tt *, kbd *, samp * {
83
+ font-family: $monospacefont !important;
84
+ font-variant-ligatures: none;
85
+ }
86
+
87
+ h1, h2, h3, h4, h5, h6, .h2Annex {
88
+ font-family: $headerfont;
89
+ }
90
+
91
+ dl {
92
+ display: grid;
93
+ grid-template-columns: max-content auto;
94
+ }
95
+
96
+ dt {
97
+ grid-column-start: 1;
98
+ }
99
+
100
+ dd {
101
+ grid-column-start: 2;
102
+ }
103
+
104
+ dd p, dt p {
105
+ margin-top: 0px;
106
+ }
107
+
108
+ /* HTML5 display-role reset for older browsers */
109
+ article, aside, details, figcaption, figure,
110
+ footer, header, hgroup, menu, nav, section {
111
+ display: block;
112
+ }
113
+ body {
114
+ line-height: 1;
115
+ }
116
+
117
+ blockquote, q {
118
+ quotes: none;
119
+ }
120
+ blockquote:before, blockquote:after,
121
+ q:before, q:after {
122
+ content: '';
123
+ content: none;
124
+ }
125
+ table {
126
+ border-collapse: collapse;
127
+ border-spacing: 0;
128
+ }
129
+
130
+
131
+ /*
132
+ 1. HTML & Body
133
+ */
134
+
135
+ /* http://www.un.org/styleguide/ color */
136
+ $un-blue: #00ADEF;
137
+
138
+ /* http://www.99colors.net/name/united-nations-blue */
139
+ $un-classic-blue: #5b92e5;
140
+
141
+ /* http://www.un.org/styleguide/ label text */
142
+ $un-label: #4D4D4D;
143
+
144
+ /* http://www.un.org/styleguide/ brand-bar */
145
+ $un-gray: #f2f2f2;
146
+
147
+ $un-black: #000;
148
+
149
+ /* http://www.un.org/styleguide/ p */
150
+ $un-text: #333;
151
+
152
+ /* RT: I made this up */
153
+ $un-link: #00ADEF;
154
+
155
+ body {
156
+ margin: 0;
157
+ margin-left: auto;
158
+ margin-right: auto;
159
+ max-width: 100%;
160
+ color: $un-text;
161
+ font-weight: 400;
162
+ font-size: 15px;
163
+ line-height: 1.4em;
164
+ background-color: #ffffff;
165
+ }
166
+
167
+ p {
168
+ line-height: 1.6;
169
+ }
170
+
171
+ main {
172
+ margin: 0 3em 0 6em;
173
+ }
174
+
175
+ #toc{
176
+ font-family: $bodyfont;
177
+ font-weight: 400;
178
+ }
179
+
180
+ /*
181
+ 2. Responsive navigation layout
182
+ */
183
+
184
+
185
+ @media screen and (min-width: 768px) {
186
+ nav {
187
+ position: fixed;
188
+ top: 0;
189
+ bottom: 0;
190
+ left: 0;
191
+ width: 323px;
192
+ font-size: 0.9em;
193
+ overflow: auto;
194
+ padding: 0 0 0 45px;
195
+ margin-right: 30px;
196
+ background-color: #f2f2f2;
197
+ }
198
+
199
+ #toggle {
200
+ position: fixed;
201
+ height: 100%;
202
+ width: 30px;
203
+ background-color: $un-blue;
204
+ color: white!important;
205
+ cursor: pointer;
206
+ z-index: 100;
207
+ }
208
+
209
+ #toggle span {
210
+ text-align: center;
211
+ width: 100%;
212
+ position: absolute;
213
+ top: 50%;
214
+ transform: translate(0, -50%);
215
+
216
+ }
217
+
218
+ .container {
219
+ padding-left: 360px;
220
+ }
221
+
222
+ .rule.toc {
223
+ display: none;
224
+ }
225
+
226
+ h1.toc-contents {
227
+ margin-top: 1em;
228
+ }
229
+
230
+ ul#toc-list {
231
+ padding:0;
232
+ margin:0;
233
+ }
234
+ }
235
+
236
+ @media screen and (max-width: 768px) {
237
+ #toc {
238
+ padding: 0 1.5em 0 1.5em;
239
+ overflow: visible;
240
+ }
241
+ }
242
+
243
+ div.figure > img {
244
+ margin-left: auto;
245
+ margin-right: auto;
246
+ display: block;
247
+ max-width: 100%;
248
+ height: auto;
249
+ }
250
+
251
+ #toc ul {
252
+ margin: 0;
253
+ padding: 0;
254
+ list-style: none;
255
+ }
256
+
257
+ #toc li a {
258
+ padding: 5px 10px;
259
+ }
260
+
261
+ #toc a {
262
+ color: $un-text;
263
+ text-decoration: none;
264
+ display: block;
265
+ }
266
+
267
+ #toc a:hover {
268
+ /* color: white;*/
269
+ box-shadow: none;
270
+ }
271
+
272
+ #toc .h2 {
273
+ padding-left: 30px;
274
+ }
275
+
276
+ #toc .h3 {
277
+ padding-left: 50px;
278
+ }
279
+
280
+ #toc .toc-active a {
281
+ color: white;
282
+ }
283
+
284
+ #toc .toc-active,
285
+ #toc li:hover {
286
+ background: linear-gradient(280deg, $un-blue, $un-classic-blue);
287
+ box-shadow: inset -5px 0px 10px -5px $un-blue!important;
288
+ }
289
+
290
+ #toc li:hover a {
291
+ color: white;
292
+ background: none;
293
+ box-shadow: none;
294
+ }
295
+
296
+ #toc li a {
297
+ /* text-transform: uppercase;*/
298
+ }
299
+
300
+ /*
301
+ Document types + stages
302
+ */
303
+
304
+ .document-type-band {
305
+ left:0;
306
+ top:180px;
307
+ height: 100%;
308
+ position: fixed;
309
+ display: block;
310
+ z-index: 99;
311
+ /*box-shadow: -5px 0px 10px #1d1d1d*/
312
+
313
+ }
314
+
315
+ .document-stage-band {
316
+ left:0;
317
+ top:0;
318
+ height: 100%;
319
+ position: fixed;
320
+ display: block;
321
+ z-index: 98;
322
+ box-shadow: -5px 0px 10px #1d1d1d
323
+ }
324
+
325
+ .document-type {
326
+ position: relative;
327
+ width: 25px;
328
+ }
329
+
330
+ .document-stage {
331
+ position: relative;
332
+ width: 25px;
333
+ }
334
+
335
+ p.document-type, p.document-stage {
336
+ color: white;
337
+ text-transform: uppercase;
338
+ font-size: 0.9em;
339
+ font-weight: 400;
340
+ letter-spacing: 0.05em;
341
+ margin:0;
342
+ margin-left: 6px;
343
+ writing-mode:tb-rl;
344
+ -webkit-transform:rotate(180deg);
345
+ -moz-transform:rotate(180deg);
346
+ -o-transform: rotate(180deg);
347
+ white-space:nowrap;
348
+ display:block;
349
+ bottom:0;
350
+ }
351
+
352
+ p.document-type {
353
+ font-weight: 400;
354
+ height: 150;
355
+ }
356
+
357
+ #governance-band p.document-type {
358
+ font-weight: 400;
359
+ height: 230px!important;
360
+ }
361
+
362
+ p.document-stage {
363
+ font-weight: 300;
364
+ height:160px;
365
+ }
366
+
367
+ #standard-band p{
368
+ height: 270px;
369
+ }
370
+
371
+ #proposal-band p {
372
+ height: 150px;
373
+ }
374
+
375
+
376
+ #standard-band, #published-band {
377
+ background-color: #9ABD48;
378
+ }
379
+
380
+ #standard, #published {
381
+ border-bottom: solid 3px #9ABD48;
382
+ }
383
+
384
+ #governance, #policy-and-procedures {
385
+ border-bottom: solid 3px #750697;
386
+ }
387
+
388
+ #governance-band, #policy-and-procedures-band {
389
+ background-color: #750697;
390
+ }
391
+
392
+ #guide {
393
+ border-bottom: solid 3px #48a0e7;
394
+ }
395
+
396
+ #guide-band {
397
+ background-color: #48a0e7;
398
+ }
399
+
400
+ .coverpage-maturity {
401
+ font-family: $bodyfont;
402
+ font-weight: 400;
403
+ font-size: 1em;
404
+ margin: 0 0 2em 0;
405
+ text-transform: uppercase;
406
+ }
407
+
408
+ #working-draft, #proposal {
409
+ border-bottom: solid 3px #F7803C;
410
+ }
411
+
412
+ #working-draft-band, #proposal-band {
413
+ background-color: #F7803C;
414
+ }
415
+
416
+ #committee-draft {
417
+ border-bottom: solid 3px #fd06fd;
418
+ }
419
+
420
+ #committee-draft-band {
421
+ background-color: #fd06fd;
422
+ }
423
+
424
+ #draft-standard {
425
+ border-bottom: solid 3px #fdf906;
426
+ }
427
+
428
+ #draft-standard-band {
429
+ background-color: #fdf906;
430
+ }
431
+
432
+ #standard {
433
+ border-bottom: solid 3px #9ABD48;
434
+ }
435
+
436
+ #standard-band {
437
+ background-color: #9ABD48;
438
+ }
439
+
440
+ #obsolete {
441
+ border-bottom: solid 3px #7e0d13;
442
+ }
443
+
444
+ #obsolete-band {
445
+ background-color: #7e0d13;
446
+ }
447
+
448
+ /*
449
+ 3. TYPOGRAPHY
450
+ */
451
+
452
+ /*
453
+ 3.1 Titles
454
+ */
455
+
456
+ h1, h2, h3, h4, h5, h6, .h2Annex {
457
+ font-family: $headerfont;
458
+ color: $un-blue;
459
+ font-weight: 700;
460
+ line-height: 1.1;
461
+ margin-top: 1.6em;
462
+ margin-bottom: 0.3em;
463
+ }
464
+
465
+ h1, h2, h3 {
466
+ margin-top: 18px;
467
+ margin-bottom: 9px;
468
+ }
469
+
470
+ h1 {
471
+ font-size: 33px;
472
+ font-weight: 500;
473
+ margin: 0.67em 0;
474
+ letter-spacing: -0.02em;
475
+ color: $un-label;
476
+ }
477
+
478
+
479
+ h2 {
480
+ font-size: 27px;
481
+ color: $un-label;
482
+ }
483
+
484
+ h3 {
485
+ font-size: 24px;
486
+ margin-top: 26px;
487
+ color: black;
488
+ }
489
+
490
+ h4 {
491
+ font-size: 18.2px;
492
+ margin-bottom: 2px;
493
+ color: $un-label;
494
+ letter-spacing: 0.03em;
495
+ }
496
+
497
+ h5 {
498
+ font-size: 16.25px;
499
+ color: black;
500
+ margin-bottom: 2px;
501
+ }
502
+
503
+ h6 {
504
+ font-size: 13px;
505
+ color: $un-label;
506
+ letter-spacing: 0.05em;
507
+ }
508
+
509
+
510
+ /* h1 {
511
+ font-size: 1.6em;
512
+ text-transform: uppercase;
513
+ margin-top: 2em;
514
+ }
515
+
516
+ h1#content {
517
+ margin-top: 2em;
518
+ }
519
+
520
+ h2 {
521
+ margin-top: 1.3em;
522
+ font-size: 1.3em;
523
+ font-weight: 400;
524
+ }
525
+
526
+ h3 {
527
+ margin-top: 1.1em;
528
+ font-size: 1.1em;
529
+ font-weight: 100;
530
+ }*/
531
+
532
+ .TermNum, .Terms, .AltTerms {
533
+ color: $un-blue;
534
+ font-weight: 100;
535
+ }
536
+
537
+ h2.TermNum {
538
+ margin-bottom: 0;
539
+ }
540
+
541
+ p.Terms {
542
+ font-size: 1.1em;
543
+ line-height: 1.5em;
544
+ margin: 0;
545
+ }
546
+
547
+ p.AltTerms {
548
+ /*
549
+ font-style: italic;
550
+ */
551
+ font-size: 1.1em;
552
+ margin: 0;
553
+ }
554
+
555
+ /*
556
+ 3.2 Links
557
+ */
558
+
559
+ a, a:visited{
560
+ text-decoration: none;
561
+ color: $un-link;
562
+ }
563
+
564
+ a:hover {
565
+ color: white;
566
+ background: $un-blue;
567
+ box-shadow: 3px 0 0 $un-blue, -3px 0 0 $un-blue;
568
+ /* padding: 2px 0 2px 0; */
569
+ }
570
+
571
+ ::selection {
572
+ background: $un-blue; /* WebKit/Blink Browsers */
573
+ color: white;
574
+ }
575
+
576
+ ::-moz-selection {
577
+ background: $un-blue; /* Gecko Browsers */
578
+ color: white;
579
+ }
580
+
581
+ .contact-info a:hover {
582
+ color: $un-link;
583
+ text-decoration: underline;
584
+ background: none;
585
+ box-shadow: 0 0 0 0;
586
+ }
587
+
588
+
589
+
590
+ /*
591
+ 3.3 Lists
592
+ */
593
+
594
+ ul, ol {
595
+ margin-left: 1.2em;
596
+ }
597
+
598
+ ul > li p:first-child {
599
+ display: inline;
600
+ }
601
+
602
+ ul > li:first-child {
603
+ margin-top: 1em;
604
+ }
605
+
606
+ #toc-list ul {
607
+ margin-bottom: 0.25em;
608
+ }
609
+
610
+ #toc-list li {
611
+ list-style-type: none;
612
+ }
613
+
614
+ #toc li:before {
615
+ content: " ";
616
+ display: none;
617
+ }
618
+
619
+ main ul > li {
620
+ list-style-type: disc;
621
+ list-style-position: outside;
622
+ margin-bottom: 0.5em;
623
+ margin-left: 1em;
624
+ }
625
+
626
+
627
+ /*
628
+ 3.4 Rules
629
+ */
630
+
631
+ .rule {
632
+ width: 100%;
633
+ height: 1px;
634
+ background-color: #eee;
635
+ margin: 2em 0;
636
+ }
637
+
638
+ /*
639
+ 3.5 Bibliograhy
640
+ */
641
+
642
+ p.Biblio, p.NormRef {
643
+ margin-top: 1em;
644
+ margin-left: 2em;
645
+ }
646
+
647
+ /*
648
+ 3.6 Source Code + figures
649
+ */
650
+
651
+ .Sourcecode {
652
+ font-family: $monospacefont;
653
+ font-variant-ligatures: none;
654
+ }
655
+
656
+ .figure, .Sourcecode, .pseudocode {
657
+ background-color: $un-gray;
658
+ font-size: 0.8em;
659
+ line-height: 1.6em;
660
+ padding: 1.5em;
661
+ margin: 2em 0 1em 0;
662
+ overflow: auto;
663
+ }
664
+
665
+ .FigureTitle, .SourceTitle, .AdmonitionTitle, .RecommendationTitle {
666
+ font-weight: 700;
667
+ font-size: 1em;
668
+ text-align: center;
669
+ }
670
+
671
+ div.Admonition {
672
+ border: 2px solid black;
673
+ padding: 6pt;
674
+ }
675
+
676
+ /*
677
+ 3.7 Notes
678
+ */
679
+
680
+ .Note {
681
+ background-color: #fff495;
682
+ color: #47430c;
683
+ padding: 1.2em;
684
+ margin: 1em 0 1em 0;
685
+
686
+ p {
687
+ margin: 0;
688
+ }
689
+ }
690
+
691
+ .Admonition {
692
+ background-color: #ffcccc;
693
+ color: #47430c;
694
+ padding: 1.2em;
695
+ margin: 1em 0 1em 0;
696
+
697
+ p {
698
+ margin: 0;
699
+ }
700
+ }
701
+
702
+
703
+ /*
704
+ 3.8 Examples
705
+ */
706
+
707
+ .example {
708
+ background-color: #e1eef1;
709
+ padding: 1.2em;
710
+ margin: 2em 0 1em 0;
711
+ padding-left: 2em;
712
+ }
713
+
714
+ .example .example-title {
715
+ font-weight: 700;
716
+ text-transform: uppercase;
717
+ text-align: center;
718
+ margin-top:0;
719
+ margin-left:-1.5em;
720
+ }
721
+
722
+ .example .Sourcecode, .example .pseudocode {
723
+ background: none;
724
+ }
725
+
726
+ /*
727
+ 3.9 Tables
728
+ */
729
+
730
+ table {
731
+ border-collapse: collapse;
732
+ width: 100%;
733
+ font-weight: 300;
734
+ margin: 1em 0 2em 0;
735
+ margin-left: auto;
736
+ margin-right: auto;
737
+ padding-right: 2em;
738
+ }
739
+
740
+ table, th, td {
741
+ border: 1px solid black;
742
+ font-size: 0.95em;
743
+ }
744
+
745
+ td, th {
746
+ padding: 1em;
747
+ }
748
+
749
+ td.header {
750
+ font-weight: 400;
751
+ }
752
+
753
+ p.TableTitle {
754
+ text-align: center;
755
+ margin-top: 2.5em;
756
+ font-weight: 400;
757
+ }
758
+
759
+ /*
760
+ 3.10 Footnotes
761
+ */
762
+
763
+ a.footnote-number {
764
+ vertical-align: super;
765
+ font-size: 0.8em;
766
+ }
767
+
768
+ .footnote {
769
+ font-size: 0.9em;
770
+ }
771
+
772
+
773
+ /*
774
+ 3.11 Blockquotes
775
+ */
776
+
777
+ .Quote {
778
+ background-color: #f2f2f2;
779
+ font-style: italic;
780
+ width: 80%;
781
+ padding: 1.5em;
782
+ margin-top: 2em;
783
+ margin-left: auto;
784
+ margin-right: auto;
785
+ }
786
+
787
+
788
+ /*
789
+ 3.12 Formulas
790
+ */
791
+
792
+ .formula {
793
+ background-color: #f2f2f2;
794
+ padding: 1.5em;
795
+ margin-top: 2em;
796
+ text-align: center;
797
+ }
798
+
799
+ /*
800
+ 3.13 Contact Info
801
+ */
802
+
803
+ .contact-info {
804
+ /* padding: 2em;*/
805
+ margin-top: 5em;
806
+ text-align: left;
807
+ }
808
+
809
+ .contact-info a,
810
+ .contact-info a:hover {
811
+ color: $un-blue;
812
+ }
813
+
814
+ .contact-info p,
815
+ .contact-info a {
816
+ /* font-family: $monospacefont;
817
+ font-variant-ligatures: none; */
818
+ font-weight: 400;
819
+ }
820
+
821
+ /* http://www.un.org/styleguide/ labels */
822
+ .contact-info #boilerplate-feedback-name {
823
+ /* font-weight: 700;
824
+ font-size: 1.2em;
825
+ margin-bottom:0;*/
826
+ padding-left: 1px;
827
+ color: $un-label;
828
+ font-size: 18.2px;
829
+ text-transform: uppercase;
830
+ margin-top: 0;
831
+ letter-spacing: 0.03em;
832
+ border-bottom: $un-blue solid 3px;
833
+ padding-bottom: 7px;
834
+ margin-bottom: 9px;
835
+ }
836
+
837
+ .contact-info #boilerplate-feedback-address {
838
+ font-size: 1em;
839
+ line-height: 1.3em;
840
+ margin-top:0;
841
+ }
842
+
843
+ /*
844
+ Keywords
845
+ */
846
+
847
+ span.keyword {
848
+ font-weight: 600;
849
+ }
850
+
851
+ /*
852
+ Paragraphs
853
+ */
854
+
855
+ p {
856
+ margin-top: 1em;
857
+ margin-bottom: 1em;
858
+ }
859
+
860
+ h2 p {
861
+ display: inline;
862
+ }
863
+
864
+
865
+ /*
866
+ 4.0 Page header
867
+ */
868
+
869
+ /*
870
+ 4.1 Top Logo
871
+ */
872
+
873
+ .icon-svg {
874
+ width: 100%;
875
+ color: #5ecf86;
876
+ }
877
+
878
+ .wrapper-top {
879
+ background: linear-gradient(85deg, $un-blue, $un-classic-blue);
880
+ color: #ffffff;
881
+ padding: 2em 0;
882
+ width: 100%;
883
+ }
884
+
885
+ .wrapper-top-bottom {
886
+ width: 0;
887
+ height: 0;
888
+ border-top: 100px solid $un-blue;
889
+ border-right: 100px solid transparent;
890
+ position: absolute;
891
+ }
892
+
893
+ .doc-number {
894
+ font-size: 0.5em;
895
+ font-family: $bodyfont;
896
+ }
897
+
898
+ .coverpage-title {
899
+ padding-bottom: 0.5em;
900
+ font-family: $headerfont;
901
+ font-size: 1.2em;
902
+ line-height: 1.5em;
903
+ font-weight: 100;
904
+ padding-left: 1em;
905
+ padding-right: 1em;
906
+ text-transform: uppercase;
907
+ }
908
+
909
+ .WordSection11 {
910
+ padding: 0 2em 0 3em;
911
+ }
912
+
913
+ .info-section {
914
+ padding: 0 2em;
915
+ }
916
+
917
+ .prefatory-section {
918
+ padding: 0 3em 0 6em;
919
+ }
920
+
921
+
922
+ .zzSTDTitle1, .MsoCommentText {
923
+ display: none;
924
+ }
925
+
926
+
927
+ .coverpage {
928
+ text-align: center;
929
+ padding-left: 1.5em;
930
+ }
931
+
932
+ .coverpage-logo span, .coverpage-tc-name span {
933
+ font-family: $bodyfont;
934
+ text-transform: none;
935
+ font-weight: 300;
936
+ }
937
+
938
+ .coverpage-tc-name {
939
+ font-size: 1.2em;
940
+ line-height: 1.2em;
941
+ margin: 0.25em 0;
942
+ }
943
+
944
+ /*
945
+ 4.2 Document Identity
946
+ */
947
+
948
+ .coverpage-doc-identity {
949
+ font-size: 2em;
950
+ line-height: 2em;
951
+ }
952
+
953
+ .coverpage-title .title-second {
954
+ display: none;
955
+ }
956
+
957
+ .coverpage-stage-block {
958
+ font-family: $bodyfont;
959
+ font-weight: 600;
960
+ font-size: 1.25em;
961
+ margin: 2em 0em 2em 0em;
962
+ text-transform: uppercase;
963
+ }
964
+
965
+ /*
966
+ 4.3 Draft Warning
967
+ */
968
+
969
+ .coverpage-warning {
970
+ border: #f36f36 solid 2px;
971
+ color: #f36f36 !important;
972
+ margin: 1em 2em;
973
+ padding: 2em 1em 1em 1em;
974
+ border-radius: 25px;
975
+ }
976
+
977
+ .coverpage-warning .title {
978
+ font-family: $headerfont;
979
+ font-weight: 300;
980
+ text-transform: uppercase;
981
+ font-size: 1.2em;
982
+ }
983
+
984
+
985
+ /*
986
+ 4.4 Copyright
987
+ */
988
+
989
+ .boilerplate-copyright {
990
+ padding: 1em;
991
+ font-size: 0.9em;
992
+ text-align: left;
993
+ }
994
+
995
+
996
+ .boilerplate-copyright p {
997
+ text-align: center;
998
+ }
999
+
1000
+ #boilerplate-ECEhdr {
1001
+ border: solid;
1002
+ }
1003
+
1004
+ /* .copyright .name, .copyright .address {color: $un-link;} */
1005
+
1006
+
1007
+
1008
+ /*
1009
+ 5.0 Other styles
1010
+ */
1011
+
1012
+
1013
+
1014
+ /*
1015
+ To top button
1016
+ */
1017
+
1018
+ #myBtn {
1019
+ font-family: $monospacefont;
1020
+ font-variant-ligatures: none;
1021
+ display: none;
1022
+ position: fixed;
1023
+ bottom: 20px;
1024
+ right: 30px;
1025
+ z-index: 99;
1026
+ font-size: 12px;
1027
+ border: none;
1028
+ outline: none;
1029
+ background-color: #1f8ca0;
1030
+ opacity: 0.15;
1031
+ color: white;
1032
+ cursor: pointer;
1033
+ padding: 10px 15px 10px 15px;
1034
+ border-radius: 4px;
1035
+ text-transform: uppercase;
1036
+ }
1037
+
1038
+ #myBtn:hover {
1039
+ opacity: 1;
1040
+ }
1041
+
1042
+ a.anchorjs-link:hover {
1043
+ background: none;
1044
+ color: $un-link;
1045
+ box-shadow: none;
1046
+ }
1047
+
1048
+ @page {
1049
+ margin: 2cm 1cm;
1050
+ }
1051
+
1052
+ @media print {
1053
+
1054
+ .document-info, nav, .copyright {
1055
+ page-break-before: always;
1056
+ }
1057
+
1058
+ nav {
1059
+ page-break-after: always;
1060
+ }
1061
+
1062
+ h1, h2, h3, h4 {
1063
+ page-break-after: avoid;
1064
+ margin-top: 1.2em;
1065
+ }
1066
+
1067
+ .note, .figure, .Sourcecode, .pseudocode, table {
1068
+ page-break-inside: avoid;
1069
+ }
1070
+
1071
+ .info-section {
1072
+ display: none;
1073
+ }
1074
+
1075
+ .coverpage {
1076
+ height: 23cm;
1077
+ }
1078
+
1079
+ .wrapper-top {
1080
+ top: 0;
1081
+ padding-top: 4cm;
1082
+ padding-bottom: 4cm;
1083
+ }
1084
+
1085
+ .wrapper-top-bottom {
1086
+ margin-top: -5px;
1087
+ }
1088
+
1089
+
1090
+ #toggle, .document-stage-band,
1091
+ .document-type-band, button#myBtn {
1092
+ display: none;
1093
+ }
1094
+
1095
+ button#myBtn {
1096
+ background-color: white;
1097
+ }
1098
+
1099
+ .container {
1100
+ padding-left: 0;
1101
+ }
1102
+
1103
+ nav {
1104
+ position: relative;
1105
+ width: auto;
1106
+ font-size: 0.9em;
1107
+ overflow: auto;
1108
+ padding: 0;
1109
+ margin-right: 0;
1110
+ background-color: white;
1111
+ }
1112
+
1113
+ #toc .toc-active a {
1114
+ color: #4D7EA5;
1115
+ }
1116
+
1117
+ #toc .toc-active, #toc li:hover {
1118
+ background: white;
1119
+ box-shadow: none !important; }
1120
+
1121
+ #toc li:hover a {
1122
+ color: black; }
1123
+
1124
+
1125
+ h1.content {
1126
+ margin-top: 2em;
1127
+ line-height: 2.5em;
1128
+ }
1129
+
1130
+ h1 {
1131
+ font-size: 1.5em;
1132
+ line-height: 1.5;
1133
+ }
1134
+
1135
+ h2 {
1136
+ font-size: 1.2em
1137
+ }
1138
+
1139
+ h3 {
1140
+ font-size: 1em;
1141
+ }
1142
+
1143
+
1144
+ .Note {
1145
+ background-color: #fff495;
1146
+ color: #47430c;
1147
+ padding: 5px;
1148
+ margin: 2em 0 1em 0; }
1149
+
1150
+ .Note p {
1151
+ padding: 0 5px 0 5px;
1152
+ }
1153
+
1154
+ .Admonition {
1155
+ background-color: #ffcccc;
1156
+ color: #47430c;
1157
+ padding: 5px;
1158
+ margin: 2em 0 1em 0; }
1159
+
1160
+ .Admonition p {
1161
+ padding: 0 5px 0 5px;
1162
+ }
1163
+
1164
+
1165
+ nav {
1166
+ line-height: 1;
1167
+ }
1168
+
1169
+ .wrapper-top-bottom {
1170
+ display: none;
1171
+ }
1172
+
1173
+ }
1174
+