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