metanorma-iso 2.1.5 → 2.1.8

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