metanorma-iso 1.10.6 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) 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 +1327 -0
  19. data/lib/isodoc/iso/html/style-human.css +1010 -0
  20. data/lib/isodoc/iso/html/style-iso.css +1036 -0
  21. data/lib/isodoc/iso/html/wordstyle.css +1701 -0
  22. data/lib/isodoc/iso/html_convert.rb +6 -4
  23. data/lib/isodoc/iso/iso.amendment.xsl +96 -154
  24. data/lib/isodoc/iso/iso.international-standard.xsl +96 -154
  25. data/lib/metanorma/iso/base.rb +70 -0
  26. data/lib/{asciidoctor → metanorma}/iso/basicdoc.rng +0 -0
  27. data/lib/{asciidoctor → metanorma}/iso/biblio.rng +0 -0
  28. data/lib/{asciidoctor → metanorma}/iso/boilerplate-fr.xml +0 -0
  29. data/lib/{asciidoctor → metanorma}/iso/boilerplate.xml +0 -0
  30. data/lib/metanorma/iso/cleanup.rb +176 -0
  31. data/lib/metanorma/iso/converter.rb +18 -0
  32. data/lib/metanorma/iso/front.rb +170 -0
  33. data/lib/metanorma/iso/front_id.rb +225 -0
  34. data/lib/{asciidoctor → metanorma}/iso/isodoc.rng +29 -0
  35. data/lib/{asciidoctor → metanorma}/iso/isostandard-amd.rng +0 -0
  36. data/lib/{asciidoctor → metanorma}/iso/isostandard.rnc +0 -0
  37. data/lib/{asciidoctor → metanorma}/iso/isostandard.rng +0 -0
  38. data/lib/{asciidoctor → metanorma}/iso/reqt.rng +0 -0
  39. data/lib/metanorma/iso/section.rb +49 -0
  40. data/lib/metanorma/iso/validate.rb +172 -0
  41. data/lib/metanorma/iso/validate_image.rb +97 -0
  42. data/lib/metanorma/iso/validate_requirements.rb +111 -0
  43. data/lib/metanorma/iso/validate_section.rb +247 -0
  44. data/lib/metanorma/iso/validate_style.rb +170 -0
  45. data/lib/metanorma/iso/validate_title.rb +105 -0
  46. data/lib/metanorma/iso/version.rb +1 -1
  47. data/lib/metanorma-iso.rb +1 -1
  48. data/metanorma-iso.gemspec +1 -1
  49. data/spec/isodoc/ref_spec.rb +4 -2
  50. data/spec/{asciidoctor → metanorma}/amd_spec.rb +1 -1
  51. data/spec/{asciidoctor → metanorma}/base_spec.rb +1 -1
  52. data/spec/{asciidoctor → metanorma}/blank_spec.rb +1 -1
  53. data/spec/{asciidoctor → metanorma}/blocks_spec.rb +1 -1
  54. data/spec/{asciidoctor → metanorma}/cleanup_spec.rb +1 -1
  55. data/spec/{asciidoctor → metanorma}/inline_spec.rb +1 -1
  56. data/spec/{asciidoctor → metanorma}/lists_spec.rb +1 -1
  57. data/spec/{asciidoctor → metanorma}/refs_spec.rb +1 -1
  58. data/spec/{asciidoctor → metanorma}/section_spec.rb +1 -1
  59. data/spec/{asciidoctor → metanorma}/table_spec.rb +1 -1
  60. data/spec/{asciidoctor → metanorma}/validate_spec.rb +1 -1
  61. data/spec/spec_helper.rb +1 -1
  62. metadata +46 -28
@@ -0,0 +1,1036 @@
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 {
394
+ font-family: {{bodyfont}};
395
+ font-weight: 400; }
396
+ #toc ul {
397
+ margin: 0;
398
+ padding: 0;
399
+ list-style: none; }
400
+ #toc ul li a {
401
+ padding: 5px 10px; }
402
+ #toc ul a {
403
+ text-decoration: none;
404
+ display: block; }
405
+ #toc ul a:hover {
406
+ box-shadow: none;
407
+ color: black; }
408
+ #toc .h2 {
409
+ padding-left: 30px; }
410
+ #toc .h3 {
411
+ padding-left: 50px; }
412
+ #toc .toc-active, #toc li:hover {
413
+ background: #f7f7f7;
414
+ box-shadow: inset -5px 0px 10px -5px #f7f7f7 !important; }
415
+ #toc .toc-active a, #toc li:hover a {
416
+ color: black; }
417
+ @media print {
418
+ #toc .toc-active, #toc li:hover {
419
+ background: white;
420
+ box-shadow: none !important; }
421
+ #toc li:hover a {
422
+ color: black; } }
423
+ @media screen and (max-width: 768px) {
424
+ #toc {
425
+ padding: 0 1.5em;
426
+ overflow: visible; } }
427
+ #toc .toc-active,
428
+ #toc li:hover {
429
+ box-shadow: 0px 1px 0px 0px black !important;
430
+ background: none; }
431
+ #toc li:before {
432
+ content: " ";
433
+ display: none; }
434
+
435
+ nav {
436
+ line-height: 1.2em; }
437
+ @media screen and (min-width: 768px) {
438
+ nav {
439
+ position: fixed;
440
+ top: 0;
441
+ bottom: 0;
442
+ left: 0;
443
+ width: 278px;
444
+ font-size: 0.9em;
445
+ overflow: auto;
446
+ padding: 0 0 0 20px;
447
+ background-color: #f7f7f7; } }
448
+ @media print {
449
+ nav {
450
+ position: relative;
451
+ width: auto;
452
+ font-size: 0.9em;
453
+ overflow: auto;
454
+ padding: 0;
455
+ margin-right: 0;
456
+ background-color: white; } }
457
+ #toggle {
458
+ border-right: solid black 1px;
459
+ margin-left: -4em;
460
+ margin-top: -2em; }
461
+ @media screen and (min-width: 768px) {
462
+ #toggle {
463
+ position: fixed;
464
+ height: 100%;
465
+ width: 30px;
466
+ background-color: #f7f7f7;
467
+ color: black !important;
468
+ cursor: pointer;
469
+ z-index: 100; }
470
+ #toggle span {
471
+ text-align: center;
472
+ width: 100%;
473
+ position: absolute;
474
+ top: 50%;
475
+ transform: translate(0, -50%); } }
476
+ @media screen and (max-width: 768px) {
477
+ #toggle {
478
+ display: none; } }
479
+ @media print {
480
+ #toggle {
481
+ display: none; } }
482
+ @media screen and (min-width: 768px) {
483
+ .container {
484
+ padding-left: 360px; }
485
+ .rule.toc {
486
+ display: none; }
487
+ h1.toc-contents {
488
+ margin-top: 1em; }
489
+ ul#toc-list {
490
+ padding: 0;
491
+ margin: 0; } }
492
+
493
+ @media screen and (max-width: 768px) {
494
+ body {
495
+ margin-left: 2em; }
496
+ main {
497
+ padding: 0; }
498
+ .title-section, .prefatory-section {
499
+ padding-left: 0;
500
+ padding-top: 0;
501
+ width: 100%; } }
502
+
503
+ .figure,
504
+ pre,
505
+ .pseudocode {
506
+ background-color: #f7f7f7;
507
+ font-size: {{monospacefontsize}};
508
+ line-height: 1.6em;
509
+ padding: 1.5em;
510
+ margin: 2em 0 1em 0;
511
+ overflow: auto;
512
+ font-size: {{normalfontsize}}; }
513
+ .figure .SourceTitle,
514
+ pre .SourceTitle,
515
+ .pseudocode .SourceTitle {
516
+ font-weight: 700;
517
+ font-size: 1em;
518
+ text-align: center; }
519
+
520
+ div.figure {
521
+ line-height: 1.6em;
522
+ padding: 1.5em;
523
+ margin: 2em 0 1em 0;
524
+ overflow: auto; }
525
+ div.figure .FigureTitle, div.figure .figure-title {
526
+ font-weight: 700;
527
+ font-size: 1em;
528
+ text-align: center; }
529
+ div.figure > img {
530
+ margin-left: auto;
531
+ margin-right: auto;
532
+ display: block;
533
+ max-width: 100%;
534
+ height: auto; }
535
+
536
+ /*
537
+ Document types + stages
538
+ */
539
+ .document-type-band {
540
+ left: 0;
541
+ top: 180px;
542
+ height: 100%;
543
+ position: fixed;
544
+ display: block;
545
+ z-index: 102; }
546
+ .document-type-band > :first-child {
547
+ position: relative;
548
+ width: 25px;
549
+ font-weight: 400;
550
+ color: white;
551
+ text-transform: uppercase;
552
+ font-size: 0.9em;
553
+ font-weight: 400;
554
+ letter-spacing: 0.05em;
555
+ margin: 0;
556
+ margin-left: 6px;
557
+ writing-mode: tb-rl;
558
+ -webkit-transform: rotate(180deg);
559
+ -moz-transform: rotate(180deg);
560
+ -o-transform: rotate(180deg);
561
+ white-space: nowrap;
562
+ display: block;
563
+ bottom: 0; }
564
+ @media print {
565
+ .document-type-band {
566
+ display: none; } }
567
+ .document-type-band .document-type {
568
+ top: 20px; }
569
+
570
+ .document-stage-band {
571
+ left: 0;
572
+ top: 0;
573
+ height: 100%;
574
+ position: fixed;
575
+ display: block;
576
+ z-index: 101;
577
+ box-shadow: -5px 0px 10px #1d1d1d; }
578
+ .document-stage-band > :first-child {
579
+ position: relative;
580
+ width: 25px;
581
+ font-weight: 400;
582
+ height: 100%;
583
+ color: white;
584
+ text-transform: uppercase;
585
+ font-size: 0.9em;
586
+ font-weight: 400;
587
+ letter-spacing: 0.05em;
588
+ margin: 0;
589
+ margin-left: 6px;
590
+ writing-mode: tb-rl;
591
+ -webkit-transform: rotate(180deg);
592
+ -moz-transform: rotate(180deg);
593
+ -o-transform: rotate(180deg);
594
+ white-space: nowrap;
595
+ display: block;
596
+ bottom: 0; }
597
+ @media print {
598
+ .document-stage-band {
599
+ display: none; } }
600
+ p.document-stage {
601
+ position: relative;
602
+ width: 25px;
603
+ font-weight: 400;
604
+ height: 210px;
605
+ color: white;
606
+ text-transform: uppercase;
607
+ font-size: 0.9em;
608
+ font-weight: 400;
609
+ letter-spacing: 0.05em;
610
+ margin: 0;
611
+ margin-left: 6px;
612
+ writing-mode: tb-rl;
613
+ -webkit-transform: rotate(180deg);
614
+ -moz-transform: rotate(180deg);
615
+ -o-transform: rotate(180deg);
616
+ white-space: nowrap;
617
+ display: block;
618
+ bottom: 0;
619
+ writing-mode: vertical-rl; }
620
+
621
+ #governance-band p.document-type {
622
+ font-weight: 400;
623
+ height: 230px !important; }
624
+
625
+ p.document-stage {
626
+ font-weight: 300;
627
+ height: 160px; }
628
+
629
+ #standard-band {
630
+ background-color: #0ac442; }
631
+
632
+ #standard {
633
+ border-bottom: solid 3px #0ac442; }
634
+
635
+ #governance {
636
+ border-bottom: solid 3px #750697; }
637
+
638
+ #governance-band {
639
+ background-color: #750697; }
640
+
641
+ #guide {
642
+ border-bottom: solid 3px #48a0e7; }
643
+
644
+ #guide-band {
645
+ background-color: #48a0e7; }
646
+
647
+ .coverpage-maturity {
648
+ font-family: 'Overpass', sans-serif;
649
+ font-weight: 400;
650
+ font-size: 1em;
651
+ margin: 0 0 2em 0;
652
+ text-transform: uppercase; }
653
+
654
+ #working-draft {
655
+ border-bottom: solid 3px #fda706; }
656
+
657
+ #working-draft-band {
658
+ background-color: #fda706; }
659
+
660
+ #committee-draft {
661
+ border-bottom: solid 3px #fd06fd; }
662
+
663
+ #committee-draft-band {
664
+ background-color: #fd06fd; }
665
+
666
+ #draft-standard {
667
+ border-bottom: solid 3px #fdf906; }
668
+
669
+ #draft-standard {
670
+ border-bottom: solid 3px #fdf906; }
671
+
672
+ #standard {
673
+ border-bottom: solid 3px #0ac442; }
674
+
675
+ #standard-band {
676
+ background-color: #0ac442; }
677
+
678
+ #obsolete {
679
+ border-bottom: solid 3px #7e0d13; }
680
+
681
+ #obsolete-band {
682
+ background-color: #7e0d13; }
683
+
684
+ /* 3 Other styles */
685
+ /*
686
+ 3.2 Links
687
+ */
688
+ a {
689
+ color: black;
690
+ text-decoration-color: black; }
691
+
692
+ /*
693
+ 3.3 Lists
694
+ */
695
+ ul, ol {
696
+ margin-left: 2em; }
697
+
698
+ #toc-list ul {
699
+ margin-bottom: 0.25em; }
700
+
701
+ #toc-list ol li {
702
+ list-style-type: none; }
703
+
704
+ /* https://github.com/metanorma/metanorma-iso/issues/319 : force a) parentheses for ordered lists */
705
+ ol[type="alphabet"] {
706
+ counter-reset: alphabet; }
707
+
708
+ ol[type="arabic"] {
709
+ counter-reset: arabic; }
710
+
711
+ ol[type="roman"] {
712
+ counter-reset: roman; }
713
+
714
+ ol[type="alphabet_upper"] {
715
+ counter-reset: alphabet_upper; }
716
+
717
+ ol[type="roman_upper"] {
718
+ counter-reset: roman_upper; }
719
+
720
+ ol[type="alphabet"] ol[type="alphabet"] {
721
+ counter-reset: alphabet2; }
722
+
723
+ ol[type="arabic"] ol[type="arabic"] {
724
+ counter-reset: arabic2; }
725
+
726
+ ol[type="roman"] ol[type="roman"] {
727
+ counter-reset: roman2; }
728
+
729
+ ol[type="alphabet_upper"] ol[type="alphabet_upper"] {
730
+ counter-reset: alphabet_upper2; }
731
+
732
+ ol[type="roman_upper"] ol[type="roman_upper"] {
733
+ counter-reset: roman_upper2; }
734
+
735
+ ol {
736
+ counter-reset: alphabet; }
737
+
738
+ ol > li {
739
+ list-style: none;
740
+ position: relative; }
741
+
742
+ ol > li:before {
743
+ position: absolute;
744
+ left: -1.4em; }
745
+
746
+ ol[type="roman"] > li:before {
747
+ left: -2.0em; }
748
+
749
+ ol[type="roman_upper"] > li:before {
750
+ left: -2.3em; }
751
+
752
+ ol[type="alphabet"] > li:before {
753
+ counter-increment: alphabet;
754
+ content: counter(alphabet, lower-alpha) ") "; }
755
+
756
+ ol[type="arabic"] > li:before {
757
+ counter-increment: arabic;
758
+ content: counter(arabic, decimal) ") "; }
759
+
760
+ ol[type="roman"] > li:before {
761
+ counter-increment: roman;
762
+ content: counter(roman, lower-roman) ") "; }
763
+
764
+ ol[type="alphabet_upper"] > li:before {
765
+ counter-increment: alphabet_upper;
766
+ content: counter(alphabet_upper, upper-alpha) ") "; }
767
+
768
+ ol[type="roman_upper"] > li:before {
769
+ counter-increment: roman_upper;
770
+ content: counter(roman_upper, upper-roman) ") "; }
771
+
772
+ ol > li:before {
773
+ counter-increment: alphabet;
774
+ content: counter(alphabet, lower-alpha) ") "; }
775
+
776
+ ol[type="alphabet"] ol[type="alphabet"] > li:before {
777
+ counter-increment: alphabet2;
778
+ content: counter(alphabet2, lower-alpha) ") "; }
779
+
780
+ ol[type="arabic"] ol[type="arabic"] > li:before {
781
+ counter-increment: arabic2;
782
+ content: counter(arabic2, decimal) ") "; }
783
+
784
+ ol[type="roman"] ol[type="roman"] > li:before {
785
+ counter-increment: roman2;
786
+ content: counter(roman2, lower-roman) ") "; }
787
+
788
+ ol[type="alphabet_upper"] ol[type="alphabet_upper"] > li:before {
789
+ counter-increment: alphabet_upper2;
790
+ content: counter(alphabet_upper2, upper-alpha) ") "; }
791
+
792
+ ol[type="roman_upper"] ol[type="roman_upper"] > li:before {
793
+ counter-increment: roman_upper2;
794
+ content: counter(roman_upper2, upper-roman) ") "; }
795
+
796
+ /*
797
+ 3.4 Rules
798
+ */
799
+ .rule {
800
+ width: 100%;
801
+ height: 1px;
802
+ background-color: #0e1a85;
803
+ margin: 2em 0; }
804
+
805
+ /*
806
+ 3.5 Bibliograhy
807
+ */
808
+ p.Biblio, p.NormRef {
809
+ margin-top: 1em;
810
+ margin-left: 2em; }
811
+
812
+ /*
813
+ 3.6 Source Code + figures
814
+ */
815
+ .figure,
816
+ pre,
817
+ .pseudocode {
818
+ background-color: #f7f7f7;
819
+ font-size: {{monospacefontsize}};
820
+ line-height: 1.6em;
821
+ padding: 1.5em;
822
+ margin: 2em 0 1em 0;
823
+ overflow: auto;
824
+ font-size: {{normalfontsize}}; }
825
+ .figure .SourceTitle,
826
+ pre .SourceTitle,
827
+ .pseudocode .SourceTitle {
828
+ font-weight: 700;
829
+ font-size: 1em;
830
+ text-align: center; }
831
+
832
+ pre {
833
+ font-family: {{monospacefont}};
834
+ font-variant-ligatures: none; }
835
+
836
+ .AdmonitionTitle {
837
+ font-weight: 700;
838
+ font-size: 1em;
839
+ text-align: center; }
840
+
841
+ .RecommendationTitle {
842
+ font-weight: 700;
843
+ font-size: 1em;
844
+ text-align: center; }
845
+
846
+ .figure-title, .FigureTitle, .SourceTitle, .AdmonitionTitle, .RecommendationTitle {
847
+ font-weight: 700;
848
+ font-size: 1em;
849
+ text-align: center; }
850
+
851
+ /*
852
+ 3.7 Notes
853
+ */
854
+ .Note, .note {
855
+ background-color: #fff495;
856
+ color: #47430c;
857
+ padding: 0.5em;
858
+ margin: 1.5em 0 1.5em 0;
859
+ text-align: left; }
860
+
861
+ .Note p, .note p {
862
+ margin: 0; }
863
+
864
+ .Admonition {
865
+ background-color: #ffcccc;
866
+ color: #47430c;
867
+ padding: 0.5em;
868
+ margin: 1.5em 0 1.5em 0;
869
+ text-align: left; }
870
+
871
+ .Admonition p {
872
+ margin: 0; }
873
+
874
+ /*
875
+ 3.8 Examples
876
+ */
877
+ .example {
878
+ background-color: #e1eef1;
879
+ padding: 0.5em;
880
+ margin: 2em 0 1em 0;
881
+ text-align: left;
882
+ color: #424242;
883
+ padding-left: 2em;
884
+ color: black;
885
+ padding-left: 0.5em; }
886
+ .example p {
887
+ margin: 0; }
888
+ .example .example-title {
889
+ font-weight: 700;
890
+ text-transform: uppercase;
891
+ margin-left: -1.5em; }
892
+ .example .example-title {
893
+ margin-top: 0; }
894
+ .example pre,
895
+ .example .pseudocode {
896
+ background: none; }
897
+
898
+ /*
899
+ 3.9 Tables
900
+ */
901
+ table {
902
+ width: 100%;
903
+ font-weight: 300;
904
+ margin: 1em 0 2em 0;
905
+ margin-left: auto;
906
+ margin-right: auto;
907
+ padding-right: 2em;
908
+ text-align: center; }
909
+ table, table th, table td {
910
+ border: 1px solid black;
911
+ font-size: 0.95em; }
912
+ table th, table td {
913
+ padding: 1em; }
914
+ table td.header {
915
+ font-weigth: 400; }
916
+
917
+ td,
918
+ th {
919
+ padding: 1em !important; }
920
+
921
+ p.TableTitle {
922
+ text-align: center;
923
+ margin-top: 2.5em;
924
+ font-weight: 800;
925
+ font-size: 1.1em; }
926
+
927
+ .TableFootnote {
928
+ text-align: left !important; }
929
+
930
+ /*
931
+ 3.10 Footnotes
932
+ */
933
+ a.footnote-number, a.TableFootnoteRef, span.TableFootnoteRef {
934
+ vertical-align: super;
935
+ font-size: 0.8em; }
936
+
937
+ .footnote {
938
+ font-size: {{footnotefontsize}}; }
939
+
940
+ sup a {
941
+ vertical-align: super;
942
+ font-size: 0.8em; }
943
+
944
+ #footnote_box {
945
+ font-size: {{footnotefontsize}};
946
+ background: white;
947
+ padding: 0 10px;
948
+ margin: 10px;
949
+ border: 1px solid #888;
950
+ -moz-box-shadow: 0px 0px 5px #888;
951
+ -webkit-box-shadow: 0px 0px 5px #888;
952
+ box-shadow: 0px 0px 5px #888; }
953
+
954
+ ol.footnotes-list, aside.footnote {
955
+ margin-left: 1em; }
956
+
957
+ ol.footnotes-list li, aside.footnote {
958
+ font-size: {{footnotefontsize}};
959
+ vertical-align: top;
960
+ list-style: decimal;
961
+ margin-bottom: 1em; }
962
+
963
+ ol.footnotes-list:first-child {
964
+ margin-top: 2em; }
965
+
966
+ ol.footnotes-list p, aside.footnote p {
967
+ display: inline; }
968
+
969
+ ol > li > p:before {
970
+ content: "";
971
+ display: none; }
972
+
973
+ /*
974
+ 3.11 Blockquotes
975
+ */
976
+ .Quote {
977
+ background-color: #f7f7f7;
978
+ font-style: italic;
979
+ width: 80%;
980
+ padding: 1.5em;
981
+ margin-top: 2em;
982
+ margin-left: auto;
983
+ margin-right: auto; }
984
+
985
+ /*
986
+ 3.12 Formulas
987
+ */
988
+ .formula {
989
+ background-color: #f7f7f7;
990
+ padding: 1.5em;
991
+ margin-top: 2em;
992
+ text-align: center;
993
+ margin-left: 20%;
994
+ margin-right: 20%; }
995
+
996
+ dl.formula_dl {
997
+ background-color: #f7f7f7;
998
+ margin-left: 20%;
999
+ margin-right: 20%; }
1000
+
1001
+ /*
1002
+ Keywords
1003
+ */
1004
+ span.keyword {
1005
+ font-weight: 600; }
1006
+
1007
+ .Admonition, .admonition {
1008
+ background-color: #ffb3b3;
1009
+ /* color: #47430c;*/
1010
+ padding: 0.5em;
1011
+ margin: 1.5em 0 1.5em 0;
1012
+ text-align: left; }
1013
+
1014
+ .Admonition p, .admonition p {
1015
+ margin: 0; }
1016
+
1017
+ /* Collapse TOC */
1018
+ .collapse-group {
1019
+ display: flex;
1020
+ align-items: center;
1021
+ position: relative; }
1022
+
1023
+ .collapse-button {
1024
+ position: absolute;
1025
+ right: 0;
1026
+ display: inline-block;
1027
+ height: 20px;
1028
+ width: 20px;
1029
+ cursor: pointer;
1030
+ 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>'); }
1031
+
1032
+ .collapse {
1033
+ display: none; }
1034
+
1035
+ .expand {
1036
+ transform: rotateZ(-180deg); }