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,1015 @@
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-weight: 300;
241
+ line-height: 1.3;
242
+ color: -internal-root-color;
243
+ background-color: #ffffff; }
244
+ body main {
245
+ margin: 0 3em 0 6em; }
246
+ body main {
247
+ margin: 0; }
248
+
249
+ /* HTML5 display-role reset for older browsers */
250
+ article,
251
+ aside,
252
+ details,
253
+ figcaption,
254
+ figure,
255
+ footer,
256
+ header,
257
+ hgroup,
258
+ menu,
259
+ nav,
260
+ section {
261
+ display: block; }
262
+
263
+ blockquote,
264
+ q {
265
+ quotes: none; }
266
+
267
+ blockquote:before,
268
+ blockquote:after,
269
+ q:before,
270
+ q:after {
271
+ content: '';
272
+ content: none; }
273
+
274
+ /* New CSS */
275
+ body {
276
+ margin-left: 298px;
277
+ margin-right: 2em; }
278
+
279
+ main {
280
+ padding-left: 4em;
281
+ padding-right: 2em; }
282
+
283
+ .title-section,
284
+ .prefatory-section {
285
+ padding-left: 4em;
286
+ padding-top: 2em; }
287
+
288
+ .prefatory-section {
289
+ margin-bottom: 5em; }
290
+
291
+ .doctitle-en,
292
+ .doctitle-fr {
293
+ margin-top: 2em;
294
+ text-align: left; }
295
+
296
+ .doctitle-en {
297
+ background-color: black;
298
+ padding-left: 3em;
299
+ margin-left: -3em;
300
+ padding-top: 2em;
301
+ padding-bottom: 2em; }
302
+
303
+ .doctitle-en span {
304
+ font-size: 1.5em;
305
+ line-height: 1.5em;
306
+ font-weight: 900;
307
+ display: block;
308
+ color: white; }
309
+
310
+ .doctitle-fr span {
311
+ font-size: 1.2em;
312
+ line-height: 1.2em;
313
+ font-style: italic;
314
+ display: block; }
315
+
316
+ .doctitle-part {
317
+ margin-top: 1em; }
318
+
319
+ span.title {
320
+ text-transform: uppercase;
321
+ font-size: 1em;
322
+ font-weight: 800; }
323
+
324
+ .coverpage_docstage {
325
+ margin-top: 2em;
326
+ margin-bottom: 2em; }
327
+
328
+ .coverpage_warning {
329
+ font-size: 0.9em;
330
+ font-style: italic;
331
+ padding-bottom: 1em; }
332
+
333
+ .coverpage_docnumber,
334
+ .coverpage_techcommittee {
335
+ text-align: right;
336
+ font-size: 0.9em;
337
+ line-height: 0.5em; }
338
+
339
+ .boilerplate-copyright #boilerplate-name {
340
+ font-weight: 900;
341
+ padding-top: 1em; }
342
+
343
+ .boilerplate-copyright p {
344
+ margin-top: 1em;
345
+ line-height: 1.1em;
346
+ display: block;
347
+ font-size: 0.9em; }
348
+
349
+ /* TYPOGRAPHY */
350
+ h1, .h1 {
351
+ font-weight: 900; }
352
+
353
+ h2,
354
+ h3,
355
+ h4,
356
+ h5,
357
+ h6,
358
+ .h2, .h3, .h4, .h5, .h6 {
359
+ font-weight: 700; }
360
+
361
+ h1, .h1 {
362
+ font-size: 1.5em;
363
+ line-height: 2em;
364
+ margin-top: 2em;
365
+ margin-bottom: 1em; }
366
+
367
+ h2, .h2 {
368
+ font-size: 1.2em;
369
+ line-height: 1.5em;
370
+ margin-top: 2em;
371
+ margin-bottom: 1em; }
372
+
373
+ h1,
374
+ h2,
375
+ h3,
376
+ h4,
377
+ h5,
378
+ h6,
379
+ .h1, .h2, .h3, .h4, .h5, .h6 {
380
+ line-height: 1.2; }
381
+
382
+ /* override for amendments */
383
+ {% if doctype == "Amendment" or doctype == "Technical Corrigendum" %}
384
+ h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
385
+ font-weight: normal;
386
+ font-size: initial;
387
+ font-style: italic;
388
+ line-height: 2em;
389
+ margin-top: 2em;
390
+ margin-bottom: 1em; }
391
+
392
+ {% endif %}
393
+ h2 p, .h2 p {
394
+ display: inline; }
395
+
396
+ p {
397
+ margin-top: 1em;
398
+ margin-bottom: 1em;
399
+ line-height: 1.2em; }
400
+
401
+ p.zzSTDTitle1 {
402
+ font-weight: 700;
403
+ font-size: 1.5em; }
404
+
405
+ p.zzSTDTitle2 {
406
+ font-size: 1.5em; }
407
+
408
+ span.obligation {
409
+ font-weight: 400; }
410
+
411
+ a {
412
+ color: black;
413
+ text-decoration-color: black; }
414
+
415
+ h2 p, .h2 p {
416
+ display: inline; }
417
+
418
+ ul > li {
419
+ list-style: none; }
420
+
421
+ ul > li > p:first-child:before {
422
+ content: "\2014";
423
+ display: inline-block;
424
+ width: 1em;
425
+ margin-left: -1.5em;
426
+ margin-right: 0.5em; }
427
+
428
+ li p {
429
+ /* display: inline-block; */
430
+ margin-bottom: 0.6em;
431
+ line-height: 1.2; }
432
+
433
+ #toc li:before {
434
+ content: " ";
435
+ display: none; }
436
+
437
+ p.AltTerms {
438
+ margin-bottom: 0;
439
+ font-style: italic;
440
+ margin-left: 2em; }
441
+
442
+ p.Terms {
443
+ margin-top: 0em; }
444
+
445
+ /* Navigation*/
446
+ #toc, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) {
447
+ font-family: {{bodyfont}};
448
+ font-weight: 400; }
449
+ #toc ul, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) ul {
450
+ margin: 0;
451
+ padding: 0;
452
+ list-style: none; }
453
+ #toc ul li a, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) ul li a {
454
+ padding: 5px 10px; }
455
+ #toc ul a, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) ul a {
456
+ text-decoration: none;
457
+ display: block; }
458
+ #toc ul a:hover, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) ul a:hover {
459
+ box-shadow: none;
460
+ color: white; }
461
+ #toc .h2, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) .h2 {
462
+ padding-left: 30px; }
463
+ #toc .h3, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) .h3 {
464
+ padding-left: 50px; }
465
+ #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 {
466
+ background: #1d1d1d;
467
+ box-shadow: inset -5px 0px 10px -5px #1d1d1d !important; }
468
+ #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 {
469
+ color: white; }
470
+ @media print {
471
+ #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 {
472
+ background: white;
473
+ box-shadow: none !important; }
474
+ #toc li:hover a, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) li:hover a {
475
+ color: black; } }
476
+ @media screen and (max-width: 768px) {
477
+ #toc, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) {
478
+ padding: 0 1.5em;
479
+ overflow: visible; } }
480
+ #toc li:before, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) li:before {
481
+ content: " ";
482
+ display: none; }
483
+
484
+ #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) {
485
+ margin-top: 0;
486
+ margin-bottom: 0;
487
+ font-size: 100%; }
488
+
489
+ nav {
490
+ line-height: 1.2em; }
491
+ @media screen and (min-width: 768px) {
492
+ nav {
493
+ position: fixed;
494
+ top: 0;
495
+ bottom: 0;
496
+ left: 0;
497
+ width: 278px;
498
+ font-size: 0.9em;
499
+ overflow: auto;
500
+ padding: 0 0 0 20px;
501
+ background-color: #f7f7f7; } }
502
+ @media print {
503
+ nav {
504
+ position: relative;
505
+ width: auto;
506
+ font-size: 0.9em;
507
+ overflow: auto;
508
+ padding: 0;
509
+ margin-right: 0;
510
+ background-color: white; } }
511
+ #toggle {
512
+ margin-left: -4em;
513
+ margin-top: -2em; }
514
+ @media screen and (min-width: 768px) {
515
+ #toggle {
516
+ position: fixed;
517
+ height: 100%;
518
+ width: 30px;
519
+ background-color: black;
520
+ color: white !important;
521
+ cursor: pointer;
522
+ z-index: 100; }
523
+ #toggle span {
524
+ text-align: center;
525
+ width: 100%;
526
+ position: absolute;
527
+ top: 50%;
528
+ transform: translate(0, -50%); } }
529
+ @media screen and (max-width: 768px) {
530
+ #toggle {
531
+ display: none; } }
532
+ @media print {
533
+ #toggle {
534
+ display: none; } }
535
+ @media screen and (min-width: 768px) {
536
+ .container {
537
+ padding-left: 360px; }
538
+ .rule.toc {
539
+ display: none; }
540
+ h1.toc-contents {
541
+ margin-top: 1em; }
542
+ ul#toc-list, ul#toc-list > :is(.h1, .h2, .h3, .h4, .h5, .h6) {
543
+ padding: 0;
544
+ margin: 0; } }
545
+
546
+ @media screen and (max-width: 768px) {
547
+ body {
548
+ margin-left: 2em; }
549
+ main {
550
+ padding: 0; }
551
+ .title-section,
552
+ .prefatory-section {
553
+ padding-left: 0;
554
+ padding-top: 0;
555
+ width: 100%; } }
556
+
557
+ .figure,
558
+ pre,
559
+ .pseudocode {
560
+ background-color: #f7f7f7;
561
+ font-size: {{monospacefontsize}};
562
+ line-height: 1.6em;
563
+ padding: 1.5em;
564
+ margin: 2em 0 1em 0;
565
+ overflow: auto;
566
+ font-size: {{normalfontsize}}; }
567
+ .figure .SourceTitle,
568
+ pre .SourceTitle,
569
+ .pseudocode .SourceTitle {
570
+ font-weight: 700;
571
+ font-size: 1em;
572
+ text-align: center; }
573
+
574
+ div.figure {
575
+ line-height: 1.6em;
576
+ padding: 1.5em;
577
+ margin: 2em 0 1em 0;
578
+ overflow: auto; }
579
+ div.figure .FigureTitle, div.figure .figure-title {
580
+ font-weight: 700;
581
+ font-size: 1em;
582
+ text-align: center; }
583
+ div.figure > img {
584
+ margin-left: auto;
585
+ margin-right: auto;
586
+ display: block;
587
+ max-width: 100%;
588
+ height: auto; }
589
+
590
+ /*
591
+ Document types + stages
592
+ */
593
+ .document-type-band {
594
+ left: 0;
595
+ top: 180px;
596
+ height: 100%;
597
+ position: fixed;
598
+ display: block;
599
+ z-index: 102; }
600
+ .document-type-band > :first-child {
601
+ position: relative;
602
+ width: 25px;
603
+ font-weight: 400;
604
+ color: white;
605
+ text-transform: uppercase;
606
+ font-size: 0.9em;
607
+ font-weight: 400;
608
+ letter-spacing: 0.05em;
609
+ margin: 0;
610
+ margin-left: 6px;
611
+ writing-mode: tb-rl;
612
+ -webkit-transform: rotate(180deg);
613
+ -moz-transform: rotate(180deg);
614
+ -o-transform: rotate(180deg);
615
+ white-space: nowrap;
616
+ display: block;
617
+ bottom: 0; }
618
+ @media print {
619
+ .document-type-band {
620
+ display: none; } }
621
+ .document-type-band .document-type {
622
+ top: 20px; }
623
+
624
+ .document-stage-band {
625
+ left: 0;
626
+ top: 0;
627
+ height: 100%;
628
+ position: fixed;
629
+ display: block;
630
+ z-index: 101;
631
+ box-shadow: -5px 0px 10px #1d1d1d; }
632
+ .document-stage-band > :first-child {
633
+ position: relative;
634
+ width: 25px;
635
+ font-weight: 400;
636
+ height: 100%;
637
+ color: white;
638
+ text-transform: uppercase;
639
+ font-size: 0.9em;
640
+ font-weight: 400;
641
+ letter-spacing: 0.05em;
642
+ margin: 0;
643
+ margin-left: 6px;
644
+ writing-mode: tb-rl;
645
+ -webkit-transform: rotate(180deg);
646
+ -moz-transform: rotate(180deg);
647
+ -o-transform: rotate(180deg);
648
+ white-space: nowrap;
649
+ display: block;
650
+ bottom: 0; }
651
+ @media print {
652
+ .document-stage-band {
653
+ display: none; } }
654
+ p.document-stage {
655
+ position: relative;
656
+ width: 25px;
657
+ font-weight: 400;
658
+ height: 210px;
659
+ color: white;
660
+ text-transform: uppercase;
661
+ font-size: 0.9em;
662
+ font-weight: 400;
663
+ letter-spacing: 0.05em;
664
+ margin: 0;
665
+ margin-left: 6px;
666
+ writing-mode: tb-rl;
667
+ -webkit-transform: rotate(180deg);
668
+ -moz-transform: rotate(180deg);
669
+ -o-transform: rotate(180deg);
670
+ white-space: nowrap;
671
+ display: block;
672
+ bottom: 0;
673
+ writing-mode: vertical-rl; }
674
+
675
+ #governance-band p.document-type {
676
+ font-weight: 400;
677
+ height: 230px !important; }
678
+
679
+ p.document-stage {
680
+ font-weight: 300;
681
+ height: 160px; }
682
+
683
+ #standard-band {
684
+ background-color: #0ac442; }
685
+
686
+ #standard {
687
+ border-bottom: solid 3px #0ac442; }
688
+
689
+ #governance {
690
+ border-bottom: solid 3px #750697; }
691
+
692
+ #governance-band {
693
+ background-color: #750697; }
694
+
695
+ #guide {
696
+ border-bottom: solid 3px #48a0e7; }
697
+
698
+ #guide-band {
699
+ background-color: #48a0e7; }
700
+
701
+ .coverpage-maturity {
702
+ font-family: 'Overpass', sans-serif;
703
+ font-weight: 400;
704
+ font-size: 1em;
705
+ margin: 0 0 2em 0;
706
+ text-transform: uppercase; }
707
+
708
+ #working-draft {
709
+ border-bottom: solid 3px #fda706; }
710
+
711
+ #working-draft-band {
712
+ background-color: #fda706; }
713
+
714
+ #committee-draft {
715
+ border-bottom: solid 3px #fd06fd; }
716
+
717
+ #committee-draft-band {
718
+ background-color: #fd06fd; }
719
+
720
+ #draft-standard {
721
+ border-bottom: solid 3px #fdf906; }
722
+
723
+ #draft-standard {
724
+ border-bottom: solid 3px #fdf906; }
725
+
726
+ #standard {
727
+ border-bottom: solid 3px #0ac442; }
728
+
729
+ #standard-band {
730
+ background-color: #0ac442; }
731
+
732
+ #obsolete {
733
+ border-bottom: solid 3px #7e0d13; }
734
+
735
+ #obsolete-band {
736
+ background-color: #7e0d13; }
737
+
738
+ /* 3 Other styles */
739
+ /*
740
+ 3.2 Links
741
+ */
742
+ a {
743
+ color: black;
744
+ text-decoration-color: black; }
745
+
746
+ /*
747
+ 3.3 Lists
748
+ */
749
+ ul,
750
+ ol {
751
+ margin-left: 2em; }
752
+
753
+ #toc-list ul {
754
+ margin-bottom: 0.25em; }
755
+
756
+ #toc-list ol li {
757
+ list-style-type: none; }
758
+
759
+ /*
760
+ 3.4 Rules
761
+ */
762
+ .rule {
763
+ width: 100%;
764
+ height: 1px;
765
+ background-color: #0e1a85;
766
+ margin: 2em 0; }
767
+
768
+ /*
769
+ 3.5 Bibliograhy
770
+ */
771
+ p.Biblio,
772
+ p.NormRef {
773
+ margin-top: 1em;
774
+ margin-left: 2em; }
775
+
776
+ /*
777
+ 3.6 Source Code + figures
778
+ */
779
+ .figure,
780
+ pre,
781
+ .pseudocode {
782
+ background-color: #f7f7f7;
783
+ font-size: {{monospacefontsize}};
784
+ line-height: 1.6em;
785
+ padding: 1.5em;
786
+ margin: 2em 0 1em 0;
787
+ overflow: auto;
788
+ font-size: {{normalfontsize}}; }
789
+ .figure .SourceTitle,
790
+ pre .SourceTitle,
791
+ .pseudocode .SourceTitle {
792
+ font-weight: 700;
793
+ font-size: 1em;
794
+ text-align: center; }
795
+
796
+ pre {
797
+ font-family: {{monospacefont}};
798
+ font-variant-ligatures: none; }
799
+
800
+ .AdmonitionTitle {
801
+ font-weight: 700;
802
+ font-size: 1em;
803
+ text-align: center; }
804
+
805
+ .RecommendationTitle {
806
+ font-weight: 700;
807
+ font-size: 1em;
808
+ text-align: center; }
809
+
810
+ .figure-title,
811
+ .FigureTitle,
812
+ .SourceTitle,
813
+ .AdmonitionTitle,
814
+ .RecommendationTitle {
815
+ font-weight: 700;
816
+ font-size: 1em;
817
+ text-align: center; }
818
+
819
+ /*
820
+ 3.7 Notes
821
+ */
822
+ .Note,
823
+ .note {
824
+ background-color: #fff495;
825
+ color: #47430c;
826
+ padding: 0.5em;
827
+ margin: 1.5em 0 1.5em 0;
828
+ text-align: left; }
829
+
830
+ .Note p,
831
+ .note p {
832
+ margin: 0; }
833
+
834
+ .Admonition {
835
+ background-color: #ffcccc;
836
+ color: #47430c;
837
+ padding: 0.5em;
838
+ margin: 1.5em 0 1.5em 0;
839
+ text-align: left; }
840
+
841
+ .Admonition p {
842
+ margin: 0; }
843
+
844
+ /*
845
+ 3.8 Examples
846
+ */
847
+ .example {
848
+ background-color: #e1eef1;
849
+ padding: 0.5em;
850
+ margin: 2em 0 1em 0;
851
+ text-align: left;
852
+ color: #424242;
853
+ padding-left: 2em;
854
+ color: black;
855
+ padding-left: 2em; }
856
+ .example p {
857
+ margin: 0; }
858
+ .example .example-title {
859
+ font-weight: 700;
860
+ text-transform: uppercase;
861
+ margin-left: -1.5em; }
862
+ .example .example-title {
863
+ margin-left: -1.5em; }
864
+ .example pre,
865
+ .example .pseudocode {
866
+ background: none; }
867
+
868
+ /*
869
+ 3.9 Tables
870
+ */
871
+ table {
872
+ width: 100%;
873
+ font-weight: 300;
874
+ margin: 1em 0 2em 0;
875
+ margin-left: auto;
876
+ margin-right: auto;
877
+ padding-right: 2em;
878
+ text-align: center; }
879
+ table, table th, table td {
880
+ border: 1px solid black;
881
+ font-size: 0.95em; }
882
+ table th, table td {
883
+ padding: 1em; }
884
+ table td.header {
885
+ font-weigth: 400; }
886
+
887
+ td,
888
+ th {
889
+ padding: 1em !important; }
890
+
891
+ p.TableTitle {
892
+ text-align: center;
893
+ margin-top: 2.5em;
894
+ font-weight: 800;
895
+ font-size: 1.1em; }
896
+
897
+ .TableFootnote {
898
+ text-align: left !important; }
899
+
900
+ /*
901
+ 3.10 Footnotes
902
+ */
903
+ a.footnote-number,
904
+ a.TableFootnoteRef,
905
+ span.TableFootnoteRef {
906
+ vertical-align: super;
907
+ font-size: 0.8em; }
908
+
909
+ .footnote {
910
+ font-size: {{footnotefontsize}}; }
911
+
912
+ sup a {
913
+ vertical-align: super;
914
+ font-size: 0.8em; }
915
+
916
+ #footnote_box {
917
+ font-size: {{footnotefontsize}};
918
+ background: white;
919
+ padding: 0 10px;
920
+ margin: 10px;
921
+ border: 1px solid #888;
922
+ -moz-box-shadow: 0px 0px 5px #888;
923
+ -webkit-box-shadow: 0px 0px 5px #888;
924
+ box-shadow: 0px 0px 5px #888; }
925
+
926
+ ol.footnotes-list,
927
+ aside.footnote {
928
+ margin-left: 1em; }
929
+
930
+ ol.footnotes-list li,
931
+ aside.footnote {
932
+ font-size: {{footnotefontsize}};
933
+ vertical-align: top;
934
+ list-style: decimal;
935
+ margin-bottom: 1em; }
936
+
937
+ ol.footnotes-list:first-child {
938
+ margin-top: 2em; }
939
+
940
+ ol.footnotes-list p,
941
+ aside.footnote {
942
+ display: inline; }
943
+
944
+ ol > li > p:before {
945
+ content: "";
946
+ display: none; }
947
+
948
+ /*
949
+ 3.11 Blockquotes
950
+ */
951
+ .Quote {
952
+ background-color: #f7f7f7;
953
+ font-style: italic;
954
+ width: 80%;
955
+ padding: 1.5em;
956
+ margin-top: 2em;
957
+ margin-left: auto;
958
+ margin-right: auto; }
959
+
960
+ /*
961
+ 3.12 Formulas
962
+ */
963
+ .formula {
964
+ background-color: #f7f7f7;
965
+ padding: 1.5em;
966
+ margin-top: 2em;
967
+ text-align: center;
968
+ margin-left: 20%;
969
+ margin-right: 20%;
970
+ font-size: {{smallerfontsize}}; }
971
+
972
+ dl.formula_dl {
973
+ background-color: #f7f7f7;
974
+ margin-left: 20%;
975
+ margin-right: 20%;
976
+ font-size: {{smallerfontsize}}; }
977
+
978
+ /*
979
+ Keywords
980
+ */
981
+ span.keyword {
982
+ font-weight: 600; }
983
+
984
+ .Admonition,
985
+ .admonition {
986
+ background-color: #ffb3b3;
987
+ /* color: #47430c;*/
988
+ padding: 0.5em;
989
+ margin: 1.5em 0 1.5em 0;
990
+ text-align: left; }
991
+
992
+ .Admonition p,
993
+ .admonition p {
994
+ margin: 0; }
995
+
996
+ /* Collapse TOC */
997
+ .collapse-group {
998
+ display: flex;
999
+ align-items: center;
1000
+ position: relative; }
1001
+
1002
+ .collapse-button {
1003
+ position: absolute;
1004
+ right: 0;
1005
+ display: inline-block;
1006
+ height: 20px;
1007
+ width: 20px;
1008
+ cursor: pointer;
1009
+ 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>'); }
1010
+
1011
+ .collapse {
1012
+ display: none; }
1013
+
1014
+ .expand {
1015
+ transform: rotateZ(-180deg); }