metanorma-iso 1.10.6 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +26 -0
  3. data/Makefile +1 -1
  4. data/lib/asciidoctor/iso/base.rb +2 -69
  5. data/lib/asciidoctor/iso/cleanup.rb +2 -175
  6. data/lib/asciidoctor/iso/converter.rb +2 -17
  7. data/lib/asciidoctor/iso/deprecated.rb +5 -0
  8. data/lib/asciidoctor/iso/front.rb +2 -169
  9. data/lib/asciidoctor/iso/front_id.rb +2 -224
  10. data/lib/asciidoctor/iso/section.rb +2 -48
  11. data/lib/asciidoctor/iso/validate.rb +2 -171
  12. data/lib/asciidoctor/iso/validate_image.rb +2 -96
  13. data/lib/asciidoctor/iso/validate_requirements.rb +2 -110
  14. data/lib/asciidoctor/iso/validate_section.rb +2 -246
  15. data/lib/asciidoctor/iso/validate_style.rb +2 -169
  16. data/lib/asciidoctor/iso/validate_title.rb +2 -104
  17. data/lib/isodoc/iso/html/htmlstyle.css +47 -0
  18. data/lib/isodoc/iso/html/isodoc.css +1326 -0
  19. data/lib/isodoc/iso/html/isodoc.scss +0 -1
  20. data/lib/isodoc/iso/html/style-human.css +1015 -0
  21. data/lib/isodoc/iso/html/style-human.scss +8 -2
  22. data/lib/isodoc/iso/html/style-iso.css +1042 -0
  23. data/lib/isodoc/iso/html/style-iso.scss +9 -2
  24. data/lib/isodoc/iso/html/wordstyle.css +1701 -0
  25. data/lib/isodoc/iso/html_convert.rb +6 -4
  26. data/lib/isodoc/iso/iso.amendment.xsl +2142 -1565
  27. data/lib/isodoc/iso/iso.international-standard.xsl +2142 -1565
  28. data/lib/isodoc/iso/word_convert.rb +2 -0
  29. data/lib/metanorma/iso/base.rb +70 -0
  30. data/lib/{asciidoctor → metanorma}/iso/basicdoc.rng +5 -3
  31. data/lib/{asciidoctor → metanorma}/iso/biblio.rng +7 -5
  32. data/lib/{asciidoctor → metanorma}/iso/boilerplate-fr.xml +0 -0
  33. data/lib/{asciidoctor → metanorma}/iso/boilerplate.xml +0 -0
  34. data/lib/metanorma/iso/cleanup.rb +176 -0
  35. data/lib/metanorma/iso/converter.rb +18 -0
  36. data/lib/metanorma/iso/front.rb +170 -0
  37. data/lib/metanorma/iso/front_id.rb +225 -0
  38. data/lib/{asciidoctor → metanorma}/iso/isodoc.rng +98 -1
  39. data/lib/{asciidoctor → metanorma}/iso/isostandard-amd.rng +0 -0
  40. data/lib/{asciidoctor → metanorma}/iso/isostandard.rnc +0 -0
  41. data/lib/{asciidoctor → metanorma}/iso/isostandard.rng +0 -0
  42. data/lib/{asciidoctor → metanorma}/iso/reqt.rng +0 -0
  43. data/lib/metanorma/iso/section.rb +49 -0
  44. data/lib/metanorma/iso/validate.rb +172 -0
  45. data/lib/metanorma/iso/validate_image.rb +97 -0
  46. data/lib/metanorma/iso/validate_requirements.rb +111 -0
  47. data/lib/metanorma/iso/validate_section.rb +248 -0
  48. data/lib/metanorma/iso/validate_style.rb +170 -0
  49. data/lib/metanorma/iso/validate_title.rb +105 -0
  50. data/lib/metanorma/iso/version.rb +1 -1
  51. data/lib/metanorma-iso.rb +1 -1
  52. data/metanorma-iso.gemspec +1 -1
  53. data/spec/isodoc/ref_spec.rb +4 -2
  54. data/spec/isodoc/xref_spec.rb +18 -18
  55. data/spec/{asciidoctor → metanorma}/amd_spec.rb +1 -1
  56. data/spec/{asciidoctor → metanorma}/base_spec.rb +158 -197
  57. data/spec/{asciidoctor → metanorma}/blank_spec.rb +1 -1
  58. data/spec/{asciidoctor → metanorma}/blocks_spec.rb +1 -1
  59. data/spec/{asciidoctor → metanorma}/cleanup_spec.rb +1 -1
  60. data/spec/{asciidoctor → metanorma}/inline_spec.rb +1 -1
  61. data/spec/{asciidoctor → metanorma}/lists_spec.rb +1 -1
  62. data/spec/{asciidoctor → metanorma}/refs_spec.rb +2 -5
  63. data/spec/{asciidoctor → metanorma}/section_spec.rb +1 -1
  64. data/spec/{asciidoctor → metanorma}/table_spec.rb +1 -1
  65. data/spec/{asciidoctor → metanorma}/validate_spec.rb +28 -3
  66. data/spec/spec_helper.rb +1 -1
  67. metadata +46 -30
  68. data/spec/vcr_cassettes/docrels.yml +0 -393
  69. data/spec/vcr_cassettes/sortrefs.yml +0 -599
@@ -0,0 +1,1042 @@
1
+ /*
2
+ 0 CSS RESET
3
+ */
4
+ /* http://meyerweb.com/eric/tools/css/reset/
5
+ v2.0 | 20110126
6
+ License: none (public domain)
7
+ */
8
+ html, body, div, span, applet, object, iframe,
9
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
10
+ a, abbr, acronym, address, big, cite, code,
11
+ del, dfn, em, img, ins, kbd, q, s, samp,
12
+ small, strike, strong, sub, sup, tt, var,
13
+ b, u, i, center,
14
+ ol, ul, li,
15
+ fieldset, form, label, legend,
16
+ table, caption, tbody, tfoot, thead, tr, th, td,
17
+ article, aside, canvas, details, embed,
18
+ figure, figcaption, footer, header, hgroup,
19
+ menu, output, ruby, section, summary,
20
+ time, mark, audio, video {
21
+ margin: 0;
22
+ padding: 0; }
23
+
24
+ html, body, div, span, applet, object, iframe,
25
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
26
+ a, abbr, acronym, address, big, cite, code,
27
+ del, dfn, em, img, ins, kbd, q, s, samp,
28
+ small, strike, strong, sub, sup, tt, var,
29
+ b, u, i, center,
30
+ dl, dt, dd, ol, ul, li,
31
+ fieldset, form, label, legend,
32
+ table, caption, tbody, tfoot, thead, tr, th, td,
33
+ article, aside, canvas, details, embed,
34
+ figure, figcaption, footer, header, hgroup,
35
+ menu, nav, output, ruby, section, summary,
36
+ time, mark, audio, video {
37
+ border: 0;
38
+ font-size: 100%; }
39
+
40
+ html, body, div, span, applet, object, iframe,
41
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
42
+ a, abbr, acronym, address, big, cite, code,
43
+ del, dfn, em, img, ins, kbd, q, s, samp,
44
+ small, strike, strong, tt, var,
45
+ b, u, i, center,
46
+ dl, dd, ol, ul, li,
47
+ fieldset, form, label, legend,
48
+ table, caption, tbody, tfoot, thead, tr, th, td,
49
+ article, aside, canvas, details, embed,
50
+ figure, figcaption, footer, header, hgroup,
51
+ menu, nav, output, ruby, section, summary,
52
+ time, mark, audio, video {
53
+ vertical-align: baseline; }
54
+
55
+ html, body, div, span, applet, object, iframe,
56
+ p, blockquote,
57
+ a, abbr, acronym, address, big, cite,
58
+ del, dfn, em, img, ins, q, s,
59
+ small, strike, strong, sub, sup, var,
60
+ b, u, i, center,
61
+ dl, dt, dd, ol, ul, li,
62
+ fieldset, form, label, legend,
63
+ table, caption, tbody, tfoot, thead, tr, th, td,
64
+ article, aside, canvas, details, embed,
65
+ figure, figcaption, footer, header, hgroup,
66
+ menu, nav, output, ruby, section, summary,
67
+ time, mark, audio, video {
68
+ font-family: {{bodyfont}}; }
69
+
70
+ code, pre, tt, kbd, samp {
71
+ font-family: {{monospacefont}};
72
+ font-variant-ligatures: none; }
73
+
74
+ code *, pre *, tt *, kbd *, samp * {
75
+ font-family: {{monospacefont}} !important;
76
+ font-variant-ligatures: none; }
77
+
78
+ p code, dt code, li code, label code, legend code, caption code, th code, td code,
79
+ p tt, dt tt, li tt, label tt, legend tt, caption tt, th tt, td tt,
80
+ p kbd, dt kbd, li kbd, label kbd, legend kbd, caption kbd, th kbd, td kbd,
81
+ p samp, dt samp, li samp, label samp, legend samp, caption samp, th samp, td samp {
82
+ font-size: {{monospacefontsize}}; }
83
+
84
+ article, aside, details, figcaption, figure,
85
+ footer, header, hgroup, menu, nav, section {
86
+ display: block; }
87
+
88
+ table {
89
+ border-collapse: collapse;
90
+ border-spacing: 0; }
91
+
92
+ h1, h2, h3, h4, h5, h6 {
93
+ font-family: {{headerfont}}; }
94
+
95
+ .h1, .h2, .h3, .h4, .h5, .h6 {
96
+ font-family: {{headerfont}}; }
97
+
98
+ blockquote, q {
99
+ quotes: none; }
100
+ blockquote:before, blockquote:after, q:before, q:after {
101
+ content: '';
102
+ content: none; }
103
+
104
+ .h2Annex {
105
+ font-family: {{headerfont}}; }
106
+
107
+ dl {
108
+ display: grid;
109
+ grid-template-columns: max-content auto; }
110
+ dl dt p, dl dd p {
111
+ margin-top: 0; }
112
+ dl dt {
113
+ grid-column-start: 1; }
114
+ dl dd {
115
+ grid-column-start: 2; }
116
+
117
+ b, strong {
118
+ font-weight: bold; }
119
+
120
+ div.document-stage-band, div.document-type-band {
121
+ background-color: #333333; }
122
+
123
+ a.FootnoteRef + a.FootnoteRef:before {
124
+ content: ", ";
125
+ vertical-align: super; }
126
+
127
+ .addition {
128
+ color: blue; }
129
+
130
+ .deletion {
131
+ color: red;
132
+ text-decoration: line-through; }
133
+
134
+ #standard-band {
135
+ background-color: #0AC442; }
136
+
137
+ #standard {
138
+ border-bottom: solid 3px #0AC442; }
139
+
140
+ #directive-band {
141
+ background-color: #540D6E; }
142
+
143
+ #directive {
144
+ border-bottom: solid 3px #540D6E; }
145
+
146
+ #guide-band {
147
+ background-color: #D183C9; }
148
+
149
+ #guide {
150
+ border-bottom: solid 3px #D183C9; }
151
+
152
+ #specification-band {
153
+ background-color: #65AFFF; }
154
+
155
+ #specification {
156
+ border-bottom: solid 3px #65AFFF; }
157
+
158
+ #report-band {
159
+ background-color: #3A405A; }
160
+
161
+ #report {
162
+ border-bottom: solid 3px #3A405A; }
163
+
164
+ #amendment-band {
165
+ background-color: #F26430; }
166
+
167
+ #amendment {
168
+ border-bottom: solid 3px #F26430; }
169
+
170
+ #corrigendum-band {
171
+ background-color: #C84630; }
172
+
173
+ #corrigendum {
174
+ border-bottom: solid 3px #C84630; }
175
+
176
+ #administrative-band {
177
+ background-color: #BFAE48; }
178
+
179
+ #administrative {
180
+ border-bottom: solid 3px #BFAE48; }
181
+
182
+ #advisory-band {
183
+ background-color: #BD9391; }
184
+
185
+ #advisory {
186
+ border-bottom: solid 3px #BD9391; }
187
+
188
+ #proposal-band {
189
+ background-color: #39A0ED; }
190
+
191
+ #proposal {
192
+ border-bottom: solid 3px #39A0ED; }
193
+
194
+ #working-draft-band {
195
+ background-color: #2D7393; }
196
+
197
+ #working-draft {
198
+ border-bottom: solid 3px #2D7393; }
199
+
200
+ #committee-draft-band {
201
+ background-color: #2A6B7C; }
202
+
203
+ #committee-draft {
204
+ border-bottom: solid 3px #2A6B7C; }
205
+
206
+ #draft-standard-band {
207
+ background-color: #1C7F7A; }
208
+
209
+ #draft-standard {
210
+ border-bottom: solid 3px #1C7F7A; }
211
+
212
+ #final-draft-band {
213
+ background-color: #53C170; }
214
+
215
+ #final-draft {
216
+ border-bottom: solid 3px #53C170; }
217
+
218
+ #published-band {
219
+ background-color: #069E2D; }
220
+
221
+ #published {
222
+ border-bottom: solid 3px #069E2D; }
223
+
224
+ #withdrawn-band {
225
+ background-color: #004E64; }
226
+
227
+ #withdrawn {
228
+ border-bottom: solid 3px #004E64; }
229
+
230
+ #cancelled-band {
231
+ background-color: #2E382E; }
232
+
233
+ #cancelled {
234
+ border-bottom: solid 3px #2E382E; }
235
+
236
+ body {
237
+ margin-left: auto;
238
+ margin-right: auto;
239
+ max-width: 100%;
240
+ font-size: 16px;
241
+ font-weight: 300;
242
+ line-height: 1.4em;
243
+ color: -internal-root-color;
244
+ background-color: #ffffff; }
245
+ body main {
246
+ margin: 0 3em 0 6em; }
247
+ body main {
248
+ margin: 0; }
249
+
250
+ /* HTML5 display-role reset for older browsers */
251
+ article, aside, details, figcaption, figure,
252
+ footer, header, hgroup, menu, nav, section {
253
+ display: block; }
254
+
255
+ body {
256
+ line-height: 1.3; }
257
+
258
+ blockquote, q {
259
+ quotes: none; }
260
+
261
+ blockquote:before, blockquote:after,
262
+ q:before, q:after {
263
+ content: '';
264
+ content: none; }
265
+
266
+ /* New CSS */
267
+ body {
268
+ margin-left: 298px;
269
+ margin-right: 2em; }
270
+
271
+ main {
272
+ padding-left: 4em;
273
+ padding-right: 2em; }
274
+
275
+ .title-section, .prefatory-section {
276
+ padding-left: 4em;
277
+ padding-top: 2em; }
278
+
279
+ .coverpage_docnumber, .coverpage_techcommittee {
280
+ text-align: right;
281
+ font-size: 0.9em;
282
+ line-height: 0.5em; }
283
+
284
+ .doctitle-en, .doctitle-fr {
285
+ margin-top: 2em;
286
+ text-align: left; }
287
+
288
+ .doctitle-en {
289
+ padding-left: 3em;
290
+ margin-left: -3em;
291
+ /*padding-top: 2em;*/
292
+ padding-bottom: 2em; }
293
+
294
+ .doctitle-en span {
295
+ font-size: 2em;
296
+ line-height: 1.5em; }
297
+
298
+ .doctitle-fr span {
299
+ font-size: 1.5em;
300
+ line-height: 1.2em;
301
+ font-style: italic; }
302
+
303
+ .doctitle-part {
304
+ margin-top: 1em; }
305
+
306
+ span.title, span.subtitle, span.part {
307
+ font-weight: 800; }
308
+
309
+ span.partlabel {
310
+ display: block; }
311
+
312
+ .coverpage_docstage {
313
+ margin-top: 2em;
314
+ margin-bottom: 2em; }
315
+
316
+ .coverpage_warning {
317
+ font-size: 0.9em;
318
+ font-style: italic;
319
+ padding-bottom: 1em; }
320
+
321
+ .boilerplate-copyright p {
322
+ margin-top: 1em;
323
+ display: block;
324
+ font-size: 0.9em; }
325
+
326
+ /* TYPOGRAPHY */
327
+ h1, .h1 {
328
+ font-size: 1.5em;
329
+ line-height: 2em;
330
+ margin-top: 2em;
331
+ margin-bottom: 1em; }
332
+
333
+ h2, .h2 {
334
+ font-size: 1.2em;
335
+ line-height: 1.5em;
336
+ margin-top: 2em;
337
+ margin-bottom: 1em; }
338
+
339
+ h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
340
+ line-height: 1.2; }
341
+
342
+ {% if doctype == "Amendment" or doctype == "Technical Corrigendum" %}
343
+ h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
344
+ font-weight: normal;
345
+ font-size: initial;
346
+ font-style: italic; }
347
+
348
+ {% endif %}
349
+ p {
350
+ margin-top: 1em;
351
+ margin-bottom: 1em; }
352
+
353
+ p.zzSTDTitle1 {
354
+ font-weight: 700;
355
+ font-size: 1.5em; }
356
+
357
+ p.zzSTDTitle2 {
358
+ font-size: 1.5em; }
359
+
360
+ span.obligation {
361
+ font-weight: 400; }
362
+
363
+ a {
364
+ color: black;
365
+ text-decoration-color: black; }
366
+
367
+ h2 p, .h2 p {
368
+ display: inline; }
369
+
370
+ ul > li {
371
+ list-style: none; }
372
+
373
+ ul > li > p:first-child:before {
374
+ content: "\2014";
375
+ display: inline-block;
376
+ width: 1em;
377
+ margin-left: -1.5em;
378
+ margin-right: 0.5em; }
379
+
380
+ li p {
381
+ margin-bottom: 0.6em;
382
+ line-height: 1.2; }
383
+
384
+ p.AltTerms {
385
+ margin-bottom: 0;
386
+ font-style: italic;
387
+ margin-left: 2em; }
388
+
389
+ p.Terms {
390
+ margin-top: 0em; }
391
+
392
+ /* Navigation*/
393
+ #toc, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) {
394
+ font-family: {{bodyfont}};
395
+ font-weight: 400; }
396
+ #toc ul, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) ul {
397
+ margin: 0;
398
+ padding: 0;
399
+ list-style: none; }
400
+ #toc ul li a, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) ul li a {
401
+ padding: 5px 10px; }
402
+ #toc ul a, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) ul a {
403
+ text-decoration: none;
404
+ display: block; }
405
+ #toc ul a:hover, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) ul a:hover {
406
+ box-shadow: none;
407
+ color: black; }
408
+ #toc .h2, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) .h2 {
409
+ padding-left: 30px; }
410
+ #toc .h3, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) .h3 {
411
+ padding-left: 50px; }
412
+ #toc .toc-active, #toc li:hover, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) .toc-active, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) li:hover {
413
+ background: #f7f7f7;
414
+ box-shadow: inset -5px 0px 10px -5px #f7f7f7 !important; }
415
+ #toc .toc-active a, #toc li:hover a, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) .toc-active a, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) li:hover a {
416
+ color: black; }
417
+ @media print {
418
+ #toc .toc-active, #toc li:hover, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) .toc-active, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) li:hover {
419
+ background: white;
420
+ box-shadow: none !important; }
421
+ #toc li:hover a, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) li:hover a {
422
+ color: black; } }
423
+ @media screen and (max-width: 768px) {
424
+ #toc, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) {
425
+ padding: 0 1.5em;
426
+ overflow: visible; } }
427
+ #toc .toc-active,
428
+ #toc li:hover, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) .toc-active,
429
+ #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) li:hover {
430
+ box-shadow: 0px 1px 0px 0px black !important;
431
+ background: none; }
432
+ #toc li:before, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) li:before {
433
+ content: " ";
434
+ display: none; }
435
+
436
+ #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) {
437
+ margin-top: 0;
438
+ margin-bottom: 0;
439
+ font-size: 100%; }
440
+
441
+ nav {
442
+ line-height: 1.2em; }
443
+ @media screen and (min-width: 768px) {
444
+ nav {
445
+ position: fixed;
446
+ top: 0;
447
+ bottom: 0;
448
+ left: 0;
449
+ width: 278px;
450
+ font-size: 0.9em;
451
+ overflow: auto;
452
+ padding: 0 0 0 20px;
453
+ background-color: #f7f7f7; } }
454
+ @media print {
455
+ nav {
456
+ position: relative;
457
+ width: auto;
458
+ font-size: 0.9em;
459
+ overflow: auto;
460
+ padding: 0;
461
+ margin-right: 0;
462
+ background-color: white; } }
463
+ #toggle {
464
+ border-right: solid black 1px;
465
+ margin-left: -4em;
466
+ margin-top: -2em; }
467
+ @media screen and (min-width: 768px) {
468
+ #toggle {
469
+ position: fixed;
470
+ height: 100%;
471
+ width: 30px;
472
+ background-color: #f7f7f7;
473
+ color: black !important;
474
+ cursor: pointer;
475
+ z-index: 100; }
476
+ #toggle span {
477
+ text-align: center;
478
+ width: 100%;
479
+ position: absolute;
480
+ top: 50%;
481
+ transform: translate(0, -50%); } }
482
+ @media screen and (max-width: 768px) {
483
+ #toggle {
484
+ display: none; } }
485
+ @media print {
486
+ #toggle {
487
+ display: none; } }
488
+ @media screen and (min-width: 768px) {
489
+ .container {
490
+ padding-left: 360px; }
491
+ .rule.toc {
492
+ display: none; }
493
+ h1.toc-contents {
494
+ margin-top: 1em; }
495
+ ul#toc-list, ul#toc-list > :is(.h1, .h2, .h3, .h4, .h5, .h6) {
496
+ padding: 0;
497
+ margin: 0; } }
498
+
499
+ @media screen and (max-width: 768px) {
500
+ body {
501
+ margin-left: 2em; }
502
+ main {
503
+ padding: 0; }
504
+ .title-section, .prefatory-section {
505
+ padding-left: 0;
506
+ padding-top: 0;
507
+ width: 100%; } }
508
+
509
+ .figure,
510
+ pre,
511
+ .pseudocode {
512
+ background-color: #f7f7f7;
513
+ font-size: {{monospacefontsize}};
514
+ line-height: 1.6em;
515
+ padding: 1.5em;
516
+ margin: 2em 0 1em 0;
517
+ overflow: auto;
518
+ font-size: {{normalfontsize}}; }
519
+ .figure .SourceTitle,
520
+ pre .SourceTitle,
521
+ .pseudocode .SourceTitle {
522
+ font-weight: 700;
523
+ font-size: 1em;
524
+ text-align: center; }
525
+
526
+ div.figure {
527
+ line-height: 1.6em;
528
+ padding: 1.5em;
529
+ margin: 2em 0 1em 0;
530
+ overflow: auto; }
531
+ div.figure .FigureTitle, div.figure .figure-title {
532
+ font-weight: 700;
533
+ font-size: 1em;
534
+ text-align: center; }
535
+ div.figure > img {
536
+ margin-left: auto;
537
+ margin-right: auto;
538
+ display: block;
539
+ max-width: 100%;
540
+ height: auto; }
541
+
542
+ /*
543
+ Document types + stages
544
+ */
545
+ .document-type-band {
546
+ left: 0;
547
+ top: 180px;
548
+ height: 100%;
549
+ position: fixed;
550
+ display: block;
551
+ z-index: 102; }
552
+ .document-type-band > :first-child {
553
+ position: relative;
554
+ width: 25px;
555
+ font-weight: 400;
556
+ color: white;
557
+ text-transform: uppercase;
558
+ font-size: 0.9em;
559
+ font-weight: 400;
560
+ letter-spacing: 0.05em;
561
+ margin: 0;
562
+ margin-left: 6px;
563
+ writing-mode: tb-rl;
564
+ -webkit-transform: rotate(180deg);
565
+ -moz-transform: rotate(180deg);
566
+ -o-transform: rotate(180deg);
567
+ white-space: nowrap;
568
+ display: block;
569
+ bottom: 0; }
570
+ @media print {
571
+ .document-type-band {
572
+ display: none; } }
573
+ .document-type-band .document-type {
574
+ top: 20px; }
575
+
576
+ .document-stage-band {
577
+ left: 0;
578
+ top: 0;
579
+ height: 100%;
580
+ position: fixed;
581
+ display: block;
582
+ z-index: 101;
583
+ box-shadow: -5px 0px 10px #1d1d1d; }
584
+ .document-stage-band > :first-child {
585
+ position: relative;
586
+ width: 25px;
587
+ font-weight: 400;
588
+ height: 100%;
589
+ color: white;
590
+ text-transform: uppercase;
591
+ font-size: 0.9em;
592
+ font-weight: 400;
593
+ letter-spacing: 0.05em;
594
+ margin: 0;
595
+ margin-left: 6px;
596
+ writing-mode: tb-rl;
597
+ -webkit-transform: rotate(180deg);
598
+ -moz-transform: rotate(180deg);
599
+ -o-transform: rotate(180deg);
600
+ white-space: nowrap;
601
+ display: block;
602
+ bottom: 0; }
603
+ @media print {
604
+ .document-stage-band {
605
+ display: none; } }
606
+ p.document-stage {
607
+ position: relative;
608
+ width: 25px;
609
+ font-weight: 400;
610
+ height: 210px;
611
+ color: white;
612
+ text-transform: uppercase;
613
+ font-size: 0.9em;
614
+ font-weight: 400;
615
+ letter-spacing: 0.05em;
616
+ margin: 0;
617
+ margin-left: 6px;
618
+ writing-mode: tb-rl;
619
+ -webkit-transform: rotate(180deg);
620
+ -moz-transform: rotate(180deg);
621
+ -o-transform: rotate(180deg);
622
+ white-space: nowrap;
623
+ display: block;
624
+ bottom: 0;
625
+ writing-mode: vertical-rl; }
626
+
627
+ #governance-band p.document-type {
628
+ font-weight: 400;
629
+ height: 230px !important; }
630
+
631
+ p.document-stage {
632
+ font-weight: 300;
633
+ height: 160px; }
634
+
635
+ #standard-band {
636
+ background-color: #0ac442; }
637
+
638
+ #standard {
639
+ border-bottom: solid 3px #0ac442; }
640
+
641
+ #governance {
642
+ border-bottom: solid 3px #750697; }
643
+
644
+ #governance-band {
645
+ background-color: #750697; }
646
+
647
+ #guide {
648
+ border-bottom: solid 3px #48a0e7; }
649
+
650
+ #guide-band {
651
+ background-color: #48a0e7; }
652
+
653
+ .coverpage-maturity {
654
+ font-family: 'Overpass', sans-serif;
655
+ font-weight: 400;
656
+ font-size: 1em;
657
+ margin: 0 0 2em 0;
658
+ text-transform: uppercase; }
659
+
660
+ #working-draft {
661
+ border-bottom: solid 3px #fda706; }
662
+
663
+ #working-draft-band {
664
+ background-color: #fda706; }
665
+
666
+ #committee-draft {
667
+ border-bottom: solid 3px #fd06fd; }
668
+
669
+ #committee-draft-band {
670
+ background-color: #fd06fd; }
671
+
672
+ #draft-standard {
673
+ border-bottom: solid 3px #fdf906; }
674
+
675
+ #draft-standard {
676
+ border-bottom: solid 3px #fdf906; }
677
+
678
+ #standard {
679
+ border-bottom: solid 3px #0ac442; }
680
+
681
+ #standard-band {
682
+ background-color: #0ac442; }
683
+
684
+ #obsolete {
685
+ border-bottom: solid 3px #7e0d13; }
686
+
687
+ #obsolete-band {
688
+ background-color: #7e0d13; }
689
+
690
+ /* 3 Other styles */
691
+ /*
692
+ 3.2 Links
693
+ */
694
+ a {
695
+ color: black;
696
+ text-decoration-color: black; }
697
+
698
+ /*
699
+ 3.3 Lists
700
+ */
701
+ ul, ol {
702
+ margin-left: 2em; }
703
+
704
+ #toc-list ul {
705
+ margin-bottom: 0.25em; }
706
+
707
+ #toc-list ol li {
708
+ list-style-type: none; }
709
+
710
+ /* https://github.com/metanorma/metanorma-iso/issues/319 : force a) parentheses for ordered lists */
711
+ ol[type="alphabet"] {
712
+ counter-reset: alphabet; }
713
+
714
+ ol[type="arabic"] {
715
+ counter-reset: arabic; }
716
+
717
+ ol[type="roman"] {
718
+ counter-reset: roman; }
719
+
720
+ ol[type="alphabet_upper"] {
721
+ counter-reset: alphabet_upper; }
722
+
723
+ ol[type="roman_upper"] {
724
+ counter-reset: roman_upper; }
725
+
726
+ ol[type="alphabet"] ol[type="alphabet"] {
727
+ counter-reset: alphabet2; }
728
+
729
+ ol[type="arabic"] ol[type="arabic"] {
730
+ counter-reset: arabic2; }
731
+
732
+ ol[type="roman"] ol[type="roman"] {
733
+ counter-reset: roman2; }
734
+
735
+ ol[type="alphabet_upper"] ol[type="alphabet_upper"] {
736
+ counter-reset: alphabet_upper2; }
737
+
738
+ ol[type="roman_upper"] ol[type="roman_upper"] {
739
+ counter-reset: roman_upper2; }
740
+
741
+ ol {
742
+ counter-reset: alphabet; }
743
+
744
+ ol > li {
745
+ list-style: none;
746
+ position: relative; }
747
+
748
+ ol > li:before {
749
+ position: absolute;
750
+ left: -1.4em; }
751
+
752
+ ol[type="roman"] > li:before {
753
+ left: -2.0em; }
754
+
755
+ ol[type="roman_upper"] > li:before {
756
+ left: -2.3em; }
757
+
758
+ ol[type="alphabet"] > li:before {
759
+ counter-increment: alphabet;
760
+ content: counter(alphabet, lower-alpha) ") "; }
761
+
762
+ ol[type="arabic"] > li:before {
763
+ counter-increment: arabic;
764
+ content: counter(arabic, decimal) ") "; }
765
+
766
+ ol[type="roman"] > li:before {
767
+ counter-increment: roman;
768
+ content: counter(roman, lower-roman) ") "; }
769
+
770
+ ol[type="alphabet_upper"] > li:before {
771
+ counter-increment: alphabet_upper;
772
+ content: counter(alphabet_upper, upper-alpha) ") "; }
773
+
774
+ ol[type="roman_upper"] > li:before {
775
+ counter-increment: roman_upper;
776
+ content: counter(roman_upper, upper-roman) ") "; }
777
+
778
+ ol > li:before {
779
+ counter-increment: alphabet;
780
+ content: counter(alphabet, lower-alpha) ") "; }
781
+
782
+ ol[type="alphabet"] ol[type="alphabet"] > li:before {
783
+ counter-increment: alphabet2;
784
+ content: counter(alphabet2, lower-alpha) ") "; }
785
+
786
+ ol[type="arabic"] ol[type="arabic"] > li:before {
787
+ counter-increment: arabic2;
788
+ content: counter(arabic2, decimal) ") "; }
789
+
790
+ ol[type="roman"] ol[type="roman"] > li:before {
791
+ counter-increment: roman2;
792
+ content: counter(roman2, lower-roman) ") "; }
793
+
794
+ ol[type="alphabet_upper"] ol[type="alphabet_upper"] > li:before {
795
+ counter-increment: alphabet_upper2;
796
+ content: counter(alphabet_upper2, upper-alpha) ") "; }
797
+
798
+ ol[type="roman_upper"] ol[type="roman_upper"] > li:before {
799
+ counter-increment: roman_upper2;
800
+ content: counter(roman_upper2, upper-roman) ") "; }
801
+
802
+ /*
803
+ 3.4 Rules
804
+ */
805
+ .rule {
806
+ width: 100%;
807
+ height: 1px;
808
+ background-color: #0e1a85;
809
+ margin: 2em 0; }
810
+
811
+ /*
812
+ 3.5 Bibliograhy
813
+ */
814
+ p.Biblio, p.NormRef {
815
+ margin-top: 1em;
816
+ margin-left: 2em; }
817
+
818
+ /*
819
+ 3.6 Source Code + figures
820
+ */
821
+ .figure,
822
+ pre,
823
+ .pseudocode {
824
+ background-color: #f7f7f7;
825
+ font-size: {{monospacefontsize}};
826
+ line-height: 1.6em;
827
+ padding: 1.5em;
828
+ margin: 2em 0 1em 0;
829
+ overflow: auto;
830
+ font-size: {{normalfontsize}}; }
831
+ .figure .SourceTitle,
832
+ pre .SourceTitle,
833
+ .pseudocode .SourceTitle {
834
+ font-weight: 700;
835
+ font-size: 1em;
836
+ text-align: center; }
837
+
838
+ pre {
839
+ font-family: {{monospacefont}};
840
+ font-variant-ligatures: none; }
841
+
842
+ .AdmonitionTitle {
843
+ font-weight: 700;
844
+ font-size: 1em;
845
+ text-align: center; }
846
+
847
+ .RecommendationTitle {
848
+ font-weight: 700;
849
+ font-size: 1em;
850
+ text-align: center; }
851
+
852
+ .figure-title, .FigureTitle, .SourceTitle, .AdmonitionTitle, .RecommendationTitle {
853
+ font-weight: 700;
854
+ font-size: 1em;
855
+ text-align: center; }
856
+
857
+ /*
858
+ 3.7 Notes
859
+ */
860
+ .Note, .note {
861
+ background-color: #fff495;
862
+ color: #47430c;
863
+ padding: 0.5em;
864
+ margin: 1.5em 0 1.5em 0;
865
+ text-align: left; }
866
+
867
+ .Note p, .note p {
868
+ margin: 0; }
869
+
870
+ .Admonition {
871
+ background-color: #ffcccc;
872
+ color: #47430c;
873
+ padding: 0.5em;
874
+ margin: 1.5em 0 1.5em 0;
875
+ text-align: left; }
876
+
877
+ .Admonition p {
878
+ margin: 0; }
879
+
880
+ /*
881
+ 3.8 Examples
882
+ */
883
+ .example {
884
+ background-color: #e1eef1;
885
+ padding: 0.5em;
886
+ margin: 2em 0 1em 0;
887
+ text-align: left;
888
+ color: #424242;
889
+ padding-left: 2em;
890
+ color: black;
891
+ padding-left: 0.5em; }
892
+ .example p {
893
+ margin: 0; }
894
+ .example .example-title {
895
+ font-weight: 700;
896
+ text-transform: uppercase;
897
+ margin-left: -1.5em; }
898
+ .example .example-title {
899
+ margin-top: 0; }
900
+ .example pre,
901
+ .example .pseudocode {
902
+ background: none; }
903
+
904
+ /*
905
+ 3.9 Tables
906
+ */
907
+ table {
908
+ width: 100%;
909
+ font-weight: 300;
910
+ margin: 1em 0 2em 0;
911
+ margin-left: auto;
912
+ margin-right: auto;
913
+ padding-right: 2em;
914
+ text-align: center; }
915
+ table, table th, table td {
916
+ border: 1px solid black;
917
+ font-size: 0.95em; }
918
+ table th, table td {
919
+ padding: 1em; }
920
+ table td.header {
921
+ font-weigth: 400; }
922
+
923
+ td,
924
+ th {
925
+ padding: 1em !important; }
926
+
927
+ p.TableTitle {
928
+ text-align: center;
929
+ margin-top: 2.5em;
930
+ font-weight: 800;
931
+ font-size: 1.1em; }
932
+
933
+ .TableFootnote {
934
+ text-align: left !important; }
935
+
936
+ /*
937
+ 3.10 Footnotes
938
+ */
939
+ a.footnote-number, a.TableFootnoteRef, span.TableFootnoteRef {
940
+ vertical-align: super;
941
+ font-size: 0.8em; }
942
+
943
+ .footnote {
944
+ font-size: {{footnotefontsize}}; }
945
+
946
+ sup a {
947
+ vertical-align: super;
948
+ font-size: 0.8em; }
949
+
950
+ #footnote_box {
951
+ font-size: {{footnotefontsize}};
952
+ background: white;
953
+ padding: 0 10px;
954
+ margin: 10px;
955
+ border: 1px solid #888;
956
+ -moz-box-shadow: 0px 0px 5px #888;
957
+ -webkit-box-shadow: 0px 0px 5px #888;
958
+ box-shadow: 0px 0px 5px #888; }
959
+
960
+ ol.footnotes-list, aside.footnote {
961
+ margin-left: 1em; }
962
+
963
+ ol.footnotes-list li, aside.footnote {
964
+ font-size: {{footnotefontsize}};
965
+ vertical-align: top;
966
+ list-style: decimal;
967
+ margin-bottom: 1em; }
968
+
969
+ ol.footnotes-list:first-child {
970
+ margin-top: 2em; }
971
+
972
+ ol.footnotes-list p, aside.footnote p {
973
+ display: inline; }
974
+
975
+ ol > li > p:before {
976
+ content: "";
977
+ display: none; }
978
+
979
+ /*
980
+ 3.11 Blockquotes
981
+ */
982
+ .Quote {
983
+ background-color: #f7f7f7;
984
+ font-style: italic;
985
+ width: 80%;
986
+ padding: 1.5em;
987
+ margin-top: 2em;
988
+ margin-left: auto;
989
+ margin-right: auto; }
990
+
991
+ /*
992
+ 3.12 Formulas
993
+ */
994
+ .formula {
995
+ background-color: #f7f7f7;
996
+ padding: 1.5em;
997
+ margin-top: 2em;
998
+ text-align: center;
999
+ margin-left: 20%;
1000
+ margin-right: 20%; }
1001
+
1002
+ dl.formula_dl {
1003
+ background-color: #f7f7f7;
1004
+ margin-left: 20%;
1005
+ margin-right: 20%; }
1006
+
1007
+ /*
1008
+ Keywords
1009
+ */
1010
+ span.keyword {
1011
+ font-weight: 600; }
1012
+
1013
+ .Admonition, .admonition {
1014
+ background-color: #ffb3b3;
1015
+ /* color: #47430c;*/
1016
+ padding: 0.5em;
1017
+ margin: 1.5em 0 1.5em 0;
1018
+ text-align: left; }
1019
+
1020
+ .Admonition p, .admonition p {
1021
+ margin: 0; }
1022
+
1023
+ /* Collapse TOC */
1024
+ .collapse-group {
1025
+ display: flex;
1026
+ align-items: center;
1027
+ position: relative; }
1028
+
1029
+ .collapse-button {
1030
+ position: absolute;
1031
+ right: 0;
1032
+ display: inline-block;
1033
+ height: 20px;
1034
+ width: 20px;
1035
+ cursor: pointer;
1036
+ background-image: url('data:image/svg+xml,<svg focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="rgba(0,0,0,.54)" d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"></path></svg>'); }
1037
+
1038
+ .collapse {
1039
+ display: none; }
1040
+
1041
+ .expand {
1042
+ transform: rotateZ(-180deg); }