metanorma-jis 0.0.1

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