metanorma-iho 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. checksums.yaml +7 -0
  2. data/.github/workflows/macos.yml +34 -0
  3. data/.github/workflows/ubuntu.yml +34 -0
  4. data/.github/workflows/windows.yml +36 -0
  5. data/CODE_OF_CONDUCT.md +74 -0
  6. data/Gemfile +11 -0
  7. data/LICENSE +25 -0
  8. data/README.adoc +26 -0
  9. data/Rakefile +6 -0
  10. data/bin/console +14 -0
  11. data/bin/rspec +18 -0
  12. data/bin/setup +8 -0
  13. data/lib/asciidoctor/iho/basicdoc.rng +1059 -0
  14. data/lib/asciidoctor/iho/biblio.rng +1207 -0
  15. data/lib/asciidoctor/iho/boilerplate.xml +30 -0
  16. data/lib/asciidoctor/iho/converter.rb +94 -0
  17. data/lib/asciidoctor/iho/iho.rng +144 -0
  18. data/lib/asciidoctor/iho/isodoc.rng +1061 -0
  19. data/lib/asciidoctor/iho/reqt.rng +171 -0
  20. data/lib/asciidoctor/iho.rb +4 -0
  21. data/lib/isodoc/iho/base_convert.rb +74 -0
  22. data/lib/isodoc/iho/html/header.html +241 -0
  23. data/lib/isodoc/iho/html/html_iho_intro.html +8 -0
  24. data/lib/isodoc/iho/html/html_iho_titlepage.html +89 -0
  25. data/lib/isodoc/iho/html/htmlstyle.scss +757 -0
  26. data/lib/isodoc/iho/html/iho.scss +760 -0
  27. data/lib/isodoc/iho/html/image001.png +0 -0
  28. data/lib/isodoc/iho/html/image002.png +0 -0
  29. data/lib/isodoc/iho/html/image003.png +0 -0
  30. data/lib/isodoc/iho/html/logo.png +0 -0
  31. data/lib/isodoc/iho/html/logo.svg +555 -0
  32. data/lib/isodoc/iho/html/scripts.html +68 -0
  33. data/lib/isodoc/iho/html/scripts.pdf.html +72 -0
  34. data/lib/isodoc/iho/html/word_iho_intro.html +24 -0
  35. data/lib/isodoc/iho/html/word_iho_titlepage.html +888 -0
  36. data/lib/isodoc/iho/html/wordstyle.scss +1156 -0
  37. data/lib/isodoc/iho/html_convert.rb +33 -0
  38. data/lib/isodoc/iho/metadata.rb +26 -0
  39. data/lib/isodoc/iho/pdf_convert.rb +31 -0
  40. data/lib/isodoc/iho/word_convert.rb +46 -0
  41. data/lib/metanorma/iho/processor.rb +37 -0
  42. data/lib/metanorma/iho/version.rb +5 -0
  43. data/lib/metanorma/iho.rb +32 -0
  44. data/lib/metanorma-iho.rb +12 -0
  45. data/metanorma-iho.gemspec +43 -0
  46. data/metanorma.yml +56 -0
  47. metadata +274 -0
@@ -0,0 +1,757 @@
1
+ /*
2
+ 0 CSS RESET
3
+ */
4
+
5
+ /* http://meyerweb.com/eric/tools/css/reset/
6
+ v2.0 | 20110126
7
+ License: none (public domain)
8
+ */
9
+
10
+ @import 'base_style/all';
11
+
12
+ body {
13
+ @include bodyStyle1(15px, 1.4em, #212529, #ffffff, 300);
14
+ // @include sidebarNavContainer(323px);
15
+ }
16
+
17
+ main {
18
+ margin: 0 3em 0 6em;
19
+ }
20
+
21
+ #toc {
22
+ @include toc(#05164d, #fedc5b, #05164d);
23
+ @include sidebarToc();
24
+
25
+ .toc-active a {
26
+ color: #05164d;
27
+ }
28
+
29
+ li a {
30
+ text-transform: uppercase;
31
+ }
32
+
33
+ ul {
34
+ a:hover {
35
+ box-shadow: none;
36
+ color: #05164d;
37
+ }
38
+ }
39
+ }
40
+
41
+ nav {
42
+ @include sidebarNav(#f7f7f7, 323px, 45px);
43
+ }
44
+
45
+ #toggle {
46
+ @include sidebarNavToggle(white, #05164D)
47
+ }
48
+
49
+ #myBtn {
50
+ @include toTopBtn(white, #1f8ca0);
51
+ text-transform: uppercase;
52
+
53
+ a.anchorjs-link {
54
+ @include anchorLink(#05164d)
55
+ }
56
+ }
57
+
58
+ /*
59
+ 2. Responsive navigation layout
60
+ */
61
+
62
+ @media screen and (min-width: 768px) {
63
+ .container {
64
+ padding-left: 360px;
65
+ }
66
+
67
+ .rule.toc {
68
+ display: none;
69
+ }
70
+
71
+ h1.toc-contents {
72
+ margin-top: 1em;
73
+ }
74
+
75
+ ul#toc-list {
76
+ padding: 0;
77
+ margin: 0;
78
+ }
79
+ }
80
+
81
+ div.figure {
82
+ @include figureBlock();
83
+ }
84
+
85
+ /*
86
+ Document types + stages
87
+ */
88
+
89
+ .document-type-band {
90
+ @include docBand($order: 2, $offset: 180px);
91
+
92
+ .document-type {
93
+ top: 20px;
94
+ }
95
+ }
96
+
97
+ .document-stage-band {
98
+ @include docBand($order: 1, $textLength: 160px, $fontWeight: 300);
99
+ }
100
+
101
+ #governance-band p.document-type {
102
+ height: 230px !important;
103
+ }
104
+
105
+ p.document-stage {
106
+ font-weight: 300;
107
+ height: 160px;
108
+ }
109
+
110
+ #standard-band p {
111
+ height: 270px;
112
+ }
113
+
114
+ #proposal-band p {
115
+ height: 150px;
116
+ }
117
+
118
+ #standard-band,
119
+ #in-force-band {
120
+ background-color: #00AAA9;
121
+ }
122
+
123
+ #standard,
124
+ #in-force {
125
+ border-bottom: solid 3px #00AAA9;
126
+ }
127
+
128
+ #specification
129
+ {
130
+ border-bottom: solid 3px #750697;
131
+ }
132
+
133
+ #specification-band {
134
+ background-color: #750697;
135
+ }
136
+
137
+ #draft-proposal,
138
+ #resolution {
139
+ border-bottom: solid 3px #48a0e7;
140
+ }
141
+
142
+ #draft-proposal-band,
143
+ #resolution-band {
144
+ background-color: #48a0e7;
145
+ }
146
+
147
+ .coverpage-maturity {
148
+ @include coverpageStageBlock();
149
+ }
150
+
151
+ #draft-development,
152
+ #regulation {
153
+ border-bottom: solid 3px #F7803C;
154
+ }
155
+
156
+ #draft-development-band,
157
+ #regulation-band {
158
+ background-color: #F7803C;
159
+ }
160
+
161
+ #draft-testing {
162
+ border-bottom: solid 3px #fd06fd;
163
+ }
164
+
165
+ #draft-testing-band {
166
+ background-color: #fd06fd;
167
+ }
168
+
169
+ #draft-implementation {
170
+ border-bottom: solid 3px #fdf906;
171
+ }
172
+
173
+ #draft-implementation-band {
174
+ background-color: #fdf906;
175
+ }
176
+
177
+ #standard {
178
+ border-bottom: solid 3px #00AAA9;
179
+ }
180
+
181
+ #standard-band {
182
+ background-color: #00AAA9;
183
+ }
184
+
185
+ #retired {
186
+ border-bottom: solid 3px #7e0d13;
187
+ }
188
+
189
+ #retired-band {
190
+ background-color: #7e0d13;
191
+ }
192
+
193
+ /*
194
+ 3. TYPOGRAPHY
195
+ */
196
+
197
+ /*
198
+ 3.1 Titles
199
+ */
200
+
201
+ h1,
202
+ h2,
203
+ h3,
204
+ h4,
205
+ h5,
206
+ h6 {
207
+ font-family: $headerfont;
208
+ color: #05164D;
209
+ font-weight: 300;
210
+ margin-top: 1.6em;
211
+ margin-bottom: 0.3em;
212
+ }
213
+
214
+ h1 {
215
+ font-size: 1.6em;
216
+ text-transform: uppercase;
217
+ margin-top: 2em;
218
+ }
219
+
220
+ h1#content {
221
+ margin-top: 2em;
222
+ }
223
+
224
+ h2 {
225
+ margin-top: 1.3em;
226
+ font-size: 1.3em;
227
+ font-weight: 400;
228
+ }
229
+
230
+ h3 {
231
+ margin-top: 1.1em;
232
+ font-size: 1.1em;
233
+ font-weight: 100;
234
+ }
235
+
236
+ .TermNum,
237
+ .Terms,
238
+ .AltTerms {
239
+ color: #05164D;
240
+ font-weight: 100;
241
+ }
242
+
243
+ h2.TermNum {
244
+ margin-bottom: 0;
245
+ }
246
+
247
+ p.Terms {
248
+ font-size: 1.1em;
249
+ line-height: 1.5em;
250
+ margin: 0;
251
+ }
252
+
253
+ p.AltTerms {
254
+ /*
255
+ font-style: italic;
256
+ */
257
+ font-size: 1.1em;
258
+ margin: 0;
259
+ }
260
+
261
+ .contact-info a:hover {
262
+ color: #05164d;
263
+ text-decoration: underline;
264
+ background: none;
265
+ box-shadow: 0 0 0 0;
266
+ }
267
+
268
+ /*
269
+ 3.2 Links
270
+ */
271
+ @include elementStyles(#05164d, #fedc5b, #05164d);
272
+
273
+ /*
274
+ 3.3 Lists
275
+ */
276
+
277
+ ul,
278
+ ol {
279
+ margin-left: 1.2em;
280
+ }
281
+
282
+ ul li {
283
+ list-style: none;
284
+ }
285
+
286
+ ul>li:before {
287
+ content: "\2014";
288
+ display: inline-block;
289
+ width: 1em;
290
+ margin-left: -1.2em;
291
+ }
292
+
293
+ ul>li p:first-child {
294
+ display: inline;
295
+ }
296
+
297
+ ul>li:first-child {
298
+ margin-top: 1em;
299
+ }
300
+
301
+ #toc-list ul {
302
+ margin-bottom: 0.25em;
303
+ }
304
+
305
+ #toc-list li {
306
+ list-style-type: none;
307
+ }
308
+
309
+ #toc li:before {
310
+ content: " ";
311
+ display: none;
312
+ }
313
+
314
+ /*
315
+ 3.4 Rules
316
+ */
317
+
318
+ .rule {
319
+ @include rule(1px, #0e1a85)
320
+ }
321
+
322
+ /*
323
+ 3.5 Bibliograhy
324
+ */
325
+
326
+ p.Biblio,
327
+ p.NormRef {
328
+ margin-top: 1em;
329
+ margin-left: 2em;
330
+ }
331
+
332
+ /*
333
+ 3.6 Source Code + figures
334
+ */
335
+
336
+ .figure,
337
+ pre,
338
+ .pseudocode {
339
+ @include pseudocodeBlock(#f7f7f7);
340
+ }
341
+
342
+ pre {
343
+ @include monospaceBlockStyle()
344
+ }
345
+
346
+ @include admonitionBlock();
347
+ @include recommendationBlock();
348
+
349
+ .FigureTitle,
350
+ .SourceTitle {
351
+ @include blockTitle()
352
+ }
353
+
354
+ /*
355
+ 3.7 Notes
356
+ */
357
+
358
+ .Note {
359
+ background-color: #fedc5b;
360
+ color: #47430c;
361
+ padding: 1.2em;
362
+ margin: 1em 0 1em 0;
363
+
364
+ p {
365
+ margin: 0;
366
+ }
367
+ }
368
+
369
+ .Admonition {
370
+ background-color: #ffcccc;
371
+ color: #47430c;
372
+ padding: 1.2em;
373
+ margin: 1em 0 1em 0;
374
+
375
+ p {
376
+ margin: 0;
377
+ }
378
+ }
379
+
380
+ /*
381
+ 3.8 Examples
382
+ */
383
+
384
+ .example {
385
+ @include exampleBlock(#e1eef1, #424242, 1.2em);
386
+
387
+ .example-title {
388
+ margin-top: 0;
389
+ }
390
+
391
+ pre,
392
+ .pseudocode {
393
+ background: none;
394
+ }
395
+ }
396
+
397
+ /*
398
+ 3.9 Tables
399
+ */
400
+
401
+ table {
402
+ @include table(1px solid black);
403
+ }
404
+
405
+ p.TableTitle {
406
+ text-align: center;
407
+ margin-top: 2.5em;
408
+ font-weight: 400;
409
+ }
410
+
411
+ /*
412
+ 3.10 Footnotes
413
+ */
414
+
415
+ a.footnote-number {
416
+ vertical-align: super;
417
+ font-size: 0.8em;
418
+ }
419
+
420
+ .footnote {
421
+ font-size: 0.9em;
422
+ }
423
+
424
+ /*
425
+ 3.11 Blockquotes
426
+ */
427
+
428
+ .Quote {
429
+ @include blockquoteBlock(#f7f7f7);
430
+ }
431
+
432
+ /*
433
+ 3.12 Formulas
434
+ */
435
+
436
+ .formula {
437
+ @include formulaBlock(#f7f7f7)
438
+ }
439
+
440
+ /*
441
+ 3.13 Contact Info
442
+ */
443
+
444
+ .contact-info {
445
+ padding: 2em;
446
+ margin-top: 5em;
447
+ width: 250px;
448
+
449
+ text-align: left;
450
+ border: #05164D solid 2px;
451
+ color: #05164D !important;
452
+ border-radius: 25px;
453
+
454
+ }
455
+
456
+ .contact-info a,
457
+ .contact-info a:hover {
458
+ color: #05164D;
459
+ }
460
+
461
+ .contact-info p,
462
+ .contact-info a {
463
+ @include monospaceBlockStyle();
464
+ font-weight: 400;
465
+ }
466
+
467
+ .contact-info .name {
468
+ font-weight: 700;
469
+ font-size: 1.2em;
470
+ margin-bottom: 0;
471
+ }
472
+
473
+ .contact-info .address {
474
+ font-size: 1em;
475
+ line-height: 1.3em;
476
+ margin-top: 0;
477
+ }
478
+
479
+ /*
480
+ Keywords
481
+ */
482
+
483
+ span.keyword {
484
+ font-weight: 600;
485
+ }
486
+
487
+ /*
488
+ Paragraphs
489
+ */
490
+
491
+ p {
492
+ margin-top: 1em;
493
+ margin-bottom: 1em;
494
+ }
495
+
496
+ h2 p {
497
+ display: inline;
498
+ }
499
+
500
+
501
+ /*
502
+ 4.0 Page header
503
+ */
504
+
505
+ /*
506
+ 4.1 Top Logo
507
+ */
508
+
509
+ .icon-svg {
510
+ width: 100%;
511
+ color: #5ecf86;
512
+ }
513
+
514
+ .wrapper-top {
515
+ background: #05164D;
516
+ color: #ffffff;
517
+ padding: 2em 0;
518
+ width: 100%;
519
+ }
520
+
521
+ .wrapper-top-bottom {
522
+ width: 0;
523
+ height: 0;
524
+ border-top: 100px solid #05164D;
525
+ border-right: 100px solid transparent;
526
+ position: absolute;
527
+ }
528
+
529
+ .doc-number {
530
+ font-size: 0.5em;
531
+ font-family: $bodyfont;
532
+ }
533
+
534
+ .coverpage-title {
535
+ padding-bottom: 0.5em;
536
+ font-family: $headerfont;
537
+ font-size: 1.2em;
538
+ line-height: 1.5em;
539
+ font-weight: 100;
540
+ padding-left: 1em;
541
+ padding-right: 1em;
542
+ text-transform: uppercase;
543
+ }
544
+
545
+ .WordSection11 {
546
+ padding: 0 2em 0 3em;
547
+ }
548
+
549
+ .info-section {
550
+ padding: 0 2em 0 5em;
551
+ }
552
+
553
+ .prefatory-section {
554
+ padding: 0 3em 0 6em;
555
+ }
556
+
557
+
558
+ .zzSTDTitle1,
559
+ .MsoCommentText {
560
+ display: none;
561
+ }
562
+
563
+
564
+ .coverpage {
565
+ text-align: center;
566
+ padding-left: 1.5em;
567
+
568
+ img {
569
+ height: auto;
570
+ width: 400px;
571
+ }
572
+ }
573
+
574
+ .coverpage-logo span,
575
+ .coverpage-tc-name span {
576
+ font-family: $bodyfont;
577
+ text-transform: none;
578
+ font-weight: 300;
579
+ }
580
+
581
+ .coverpage-tc-name {
582
+ font-size: 1.2em;
583
+ line-height: 1.2em;
584
+ margin: 0.25em 0;
585
+ }
586
+
587
+ /*
588
+ 4.2 Document Identity
589
+ */
590
+
591
+ .coverpage-doc-identity {
592
+ font-size: 2em;
593
+ line-height: 2em;
594
+ }
595
+
596
+ .coverpage-title .title-second {
597
+ display: none;
598
+ }
599
+
600
+ .coverpage-stage-block {
601
+ font-family: $bodyfont;
602
+ font-weight: 600;
603
+ font-size: 1.25em;
604
+ margin: 2em 0em 2em 0em;
605
+ text-transform: uppercase;
606
+ }
607
+
608
+ /*
609
+ 4.3 Draft Warning
610
+ */
611
+
612
+ .coverpage-warning {
613
+ border: #f36f36 solid 2px;
614
+ color: #f36f36 !important;
615
+ margin: 1em 2em;
616
+ color: #05164d;
617
+ padding: 2em 1em 1em 1em;
618
+ border-radius: 25px;
619
+ }
620
+
621
+ .coverpage-warning .title {
622
+ font-family: $headerfont;
623
+ font-weight: 300;
624
+ text-transform: uppercase;
625
+ font-size: 1.2em;
626
+ }
627
+
628
+
629
+ /*
630
+ 4.4 Copyright
631
+ */
632
+
633
+ .boilerplate-copyright {
634
+ padding: 1em;
635
+ font-size: 0.9em;
636
+ text-align: left;
637
+ }
638
+
639
+
640
+ /* .copyright .name, .copyright .address {color: #05164d;} */
641
+
642
+
643
+
644
+ /*
645
+ 5.0 Other styles
646
+ */
647
+
648
+
649
+
650
+ /*
651
+ To top button
652
+ */
653
+
654
+ @page {
655
+ margin: 2cm 1cm;
656
+ }
657
+
658
+ @media print {
659
+
660
+
661
+ .document-info,
662
+ nav,
663
+ .copyright {
664
+ page-break-before: always;
665
+ }
666
+
667
+ nav {
668
+ page-break-after: always;
669
+ }
670
+
671
+ h1,
672
+ h2,
673
+ h3,
674
+ h4 {
675
+ page-break-after: avoid;
676
+ margin-top: 1.2em;
677
+ }
678
+
679
+ .note,
680
+ .figure,
681
+ pre,
682
+ .pseudocode,
683
+ table {
684
+ page-break-inside: avoid;
685
+ }
686
+
687
+ .info-section {
688
+ display: none;
689
+ }
690
+
691
+ .coverpage {
692
+ height: 23cm;
693
+ }
694
+
695
+ .wrapper-top {
696
+ top: 0;
697
+ padding-top: 4cm;
698
+ padding-bottom: 4cm;
699
+ }
700
+
701
+ .wrapper-top-bottom {
702
+ margin-top: -5px;
703
+ }
704
+
705
+ button#myBtn {
706
+ background-color: white;
707
+ }
708
+
709
+ .container {
710
+ padding-left: 0;
711
+ }
712
+
713
+ h1.content {
714
+ margin-top: 2em;
715
+ line-height: 2.5em;
716
+ }
717
+
718
+ h1 {
719
+ font-size: 1.5em;
720
+ line-height: 1.5;
721
+ }
722
+
723
+ h2 {
724
+ font-size: 1.2em
725
+ }
726
+
727
+ h3 {
728
+ font-size: 1em;
729
+ }
730
+
731
+ .Note {
732
+ background-color: #fedc5b;
733
+ color: #47430c;
734
+ padding: 5px;
735
+ margin: 2em 0 1em 0;
736
+ }
737
+
738
+ .Note p {
739
+ padding: 0 5px 0 5px;
740
+ }
741
+
742
+ .Admonition {
743
+ background-color: #ffcccc;
744
+ color: #47430c;
745
+ padding: 5px;
746
+ margin: 2em 0 1em 0;
747
+ }
748
+
749
+ .Admonition p {
750
+ padding: 0 5px 0 5px;
751
+ }
752
+
753
+ .wrapper-top-bottom {
754
+ display: none;
755
+ }
756
+
757
+ }