metanorma-iso 1.3.20 → 1.3.21

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.
@@ -7,104 +7,15 @@
7
7
  License: none (public domain)
8
8
  */
9
9
 
10
- html, body, div, span, applet, object, iframe,
11
- h1, h2, h3, h4, h5, h6, p, blockquote, pre,
12
- a, abbr, acronym, address, big, cite, code,
13
- del, dfn, em, img, ins, kbd, q, s, samp,
14
- small, strike, strong, sub, sup, tt, var,
15
- b, u, i, center,
16
- ol, ul, li,
17
- fieldset, form, label, legend,
18
- table, caption, tbody, tfoot, thead, tr, th, td,
19
- article, aside, canvas, details, embed,
20
- figure, figcaption, footer, header, hgroup,
21
- menu, nav, output, ruby, section, summary,
22
- time, mark, audio, video {
23
- margin: 0;
24
- padding: 0;
25
- }
26
-
27
- html, body, div, span, applet, object, iframe,
28
- h1, h2, h3, h4, h5, h6, p, blockquote, pre,
29
- a, abbr, acronym, address, big, cite, code,
30
- del, dfn, em, img, ins, kbd, q, s, samp,
31
- small, strike, strong, sub, sup, tt, var,
32
- b, u, i, center,
33
- dl, dt, dd, ol, ul, li,
34
- fieldset, form, label, legend,
35
- table, caption, tbody, tfoot, thead, tr, th, td,
36
- article, aside, canvas, details, embed,
37
- figure, figcaption, footer, header, hgroup,
38
- menu, nav, output, ruby, section, summary,
39
- time, mark, audio, video {
40
- border: 0;
41
- font-size: 100%;
42
- }
43
-
44
- html, body, div, span, applet, object, iframe,
45
- h1, h2, h3, h4, h5, h6, p, blockquote, pre,
46
- a, abbr, acronym, address, big, cite, code,
47
- del, dfn, em, img, ins, kbd, q, s, samp,
48
- small, strike, strong, tt, var,
49
- b, u, i, center,
50
- dl, dd, ol, ul, li,
51
- fieldset, form, label, legend,
52
- table, caption, tbody, tfoot, thead, tr, th, td,
53
- article, aside, canvas, details, embed,
54
- figure, figcaption, footer, header, hgroup,
55
- menu, nav, output, ruby, section, summary,
56
- time, mark, audio, video {
57
- vertical-align: baseline;
58
- }
59
-
60
- html, body, div, span, applet, object, iframe,
61
- p, blockquote,
62
- a, abbr, acronym, address, big, cite,
63
- del, dfn, em, img, ins, q, s,
64
- small, strike, strong, sub, sup, var,
65
- b, u, i, center,
66
- dl, dt, dd, ol, ul, li,
67
- fieldset, form, label, legend,
68
- table, caption, tbody, tfoot, thead, tr, th, td,
69
- article, aside, canvas, details, embed,
70
- figure, figcaption, footer, header, hgroup,
71
- menu, nav, output, ruby, section, summary,
72
- time, mark, audio, video {
73
- font-family: $bodyfont;
74
- }
75
-
76
- code, pre, tt, kbd, samp {
77
- font-family: $monospacefont;
78
- font-variant-ligatures: none;
79
- }
80
-
81
- code *, pre *, tt *, kbd *, samp * {
82
- font-family: $monospacefont !important;
83
- font-variant-ligatures: none;
84
- }
85
-
86
- dl {
87
- display: grid;
88
- grid-template-columns: max-content auto;
89
- }
90
-
91
- dt {
92
- grid-column-start: 1;
93
- }
94
-
95
- dd {
96
- grid-column-start: 2;
97
- }
10
+ @import 'base_style/all';
98
11
 
99
- dd p, dt p {
100
- margin-top: 0px;
101
- }
102
-
103
- h1, h2, h3, h4, h5, h6, .h2Annex {
104
- font-family: $headerfont;
12
+ body {
13
+ @include bodyStyle1(16px, 1.4em, -internal-root-color, #ffffff, 300);
14
+ main {
15
+ margin: 0;
16
+ }
105
17
  }
106
18
 
107
-
108
19
  /* HTML5 display-role reset for older browsers */
109
20
  article, aside, details, figcaption, figure,
110
21
  footer, header, hgroup, menu, nav, section {
@@ -121,10 +32,6 @@ q:before, q:after {
121
32
  content: '';
122
33
  content: none;
123
34
  }
124
- table {
125
- border-collapse: collapse;
126
- border-spacing: 0;
127
- }
128
35
 
129
36
  /* New CSS */
130
37
 
@@ -159,7 +66,7 @@ main {
159
66
  margin-left: -3em;
160
67
  /*padding-top: 2em;*/
161
68
  padding-bottom: 2em;
162
-
69
+
163
70
  }
164
71
 
165
72
  .doctitle-en span {
@@ -178,14 +85,6 @@ main {
178
85
  margin-top: 1em;
179
86
  }
180
87
 
181
- /*
182
- span.title {
183
- text-transform: uppercase;
184
- font-size: 1em;
185
- font-weight: 800;
186
- }
187
- */
188
-
189
88
  span.title, span.subtitle, span.part {
190
89
  font-weight: 800;
191
90
  }
@@ -250,39 +149,27 @@ a {
250
149
  text-decoration-color: black;
251
150
  }
252
151
 
253
- nav a {
254
- text-decoration: none;
255
- color: black;
256
- }
257
-
258
152
  h2 p {
259
153
  display: inline;
260
154
  }
261
155
 
262
-
263
- ul > li {
156
+
157
+ ul > li {
264
158
  list-style: none;
265
- }
266
-
159
+ }
160
+
267
161
  ul > li > p:first-child:before {
268
- content: "\2014";
269
- display: inline-block;
270
- width: 1em;
271
- margin-left: -1.5em;
272
- margin-right: 0.5em;
273
- }
274
-
275
- li p {
276
- /* display: inline-block; */
277
- margin-bottom: 0.6em;
278
- line-height: 1.2;
279
- }
280
-
281
-
282
- #toc li:before {
283
- content: " ";
284
- display: none;
285
- }
162
+ content: "\2014";
163
+ display: inline-block;
164
+ width: 1em;
165
+ margin-left: -1.5em;
166
+ margin-right: 0.5em;
167
+ }
168
+
169
+ li p {
170
+ margin-bottom: 0.6em;
171
+ line-height: 1.2;
172
+ }
286
173
 
287
174
  p.AltTerms {
288
175
  margin-bottom: 0;
@@ -295,49 +182,37 @@ p.Terms {
295
182
  margin-top: 0em;
296
183
  }
297
184
 
298
- /* already added to isodoc/base */
299
- strong, b {
300
- font-weight: bold;
301
- }
302
-
303
185
  /* Navigation*/
304
186
 
305
- @media screen and (min-width: 768px) {
306
- nav {
307
- position: fixed;
308
- top: 0;
309
- bottom: 0;
310
- left: 0;
311
- width: 278px;
312
- font-size: 0.9em;
313
- overflow: auto;
314
- padding: 0 0 0 20px;
315
- background-color:#f7f7f7;
316
- line-height: 1.2em;
317
- }
187
+ #toc {
188
+ @include toc(null, #f7f7f7, black);
189
+ @include sidebarToc();
318
190
 
319
- #toggle {
320
- position: fixed;
321
- height: 100%;
322
- width: 30px;
323
- border-right: solid black 1px;
324
- background-color: #f7f7f7;
325
- color: black!important;
326
- cursor: pointer;
327
- margin-left: -4em;
328
- margin-top: -2em;
191
+ .toc-active,
192
+ li:hover {
193
+ box-shadow: 0px 1px 0px 0px black !important;
194
+ background: none;
329
195
  }
330
196
 
331
- #toggle span {
332
- text-align: center;
333
- width: 100%;
334
- position: absolute;
335
- top: 50%;
336
- transform: translate(0, -50%);
337
-
197
+ li:before {
198
+ content: " ";
199
+ display: none;
338
200
  }
201
+ }
202
+
203
+ nav {
204
+ @include sidebarNav(#f7f7f7, 278px, 20px);
205
+ line-height: 1.2em;
206
+ }
339
207
 
208
+ #toggle {
209
+ @include sidebarNavToggle(black, #f7f7f7);
210
+ border-right: solid black 1px;
211
+ margin-left: -4em;
212
+ margin-top: -2em;
213
+ }
340
214
 
215
+ @media screen and (min-width: 768px) {
341
216
  .container {
342
217
  padding-left: 360px;
343
218
  }
@@ -357,17 +232,6 @@ strong, b {
357
232
  }
358
233
 
359
234
  @media screen and (max-width: 768px) {
360
- #toc {
361
- padding: 0 1.5em 0 1.5em;
362
- overflow: visible;
363
- }
364
-
365
- #toggle {
366
- display: none;
367
- margin-left: -4em;
368
- margin-top: -2em;
369
- }
370
-
371
235
  body {
372
236
  margin-left: 2em;
373
237
  }
@@ -382,61 +246,16 @@ strong, b {
382
246
  width: 100%;
383
247
  }
384
248
  }
385
-
386
- div.figure > img {
387
- margin-left: auto;
388
- margin-right: auto;
389
- display: block;
390
- max-width: 100%;
391
- height: auto;
392
- }
393
-
394
249
 
395
-
396
- #toc ul {
397
- margin: 0;
398
- padding: 0;
399
- list-style: none;
400
- }
401
-
402
- #toc li a {
403
- padding: 5px 10px;
404
- }
405
-
406
- #toc a {
407
- text-decoration: none;
408
- display: block;
409
- }
410
-
411
- #toc a:hover {
412
- box-shadow: none;
413
- color: black;
414
- }
415
-
416
- #toc .h2 {
417
- padding-left: 30px;
418
- }
419
-
420
- #toc .h3 {
421
- padding-left: 50px;
422
- }
423
-
424
- #toc .toc-active a {
425
- color: black;
426
- }
427
-
428
- /*#toc .toc-active, #toc li:hover {
429
- background: #1d1d1d;
430
- box-shadow: inset -5px 0px 10px -5px #1d1d1d!important;
431
- }*/
432
-
433
- #toc .toc-active, #toc li:hover {
434
- box-shadow: 0px 1px 0px 0px black!important;
435
- color: black;
250
+ .figure,
251
+ pre,
252
+ .pseudocode {
253
+ @include pseudocodeBlock(#f7f7f7);
254
+ font-size: 1em;
436
255
  }
437
256
 
438
- #toc li:hover a {
439
- color: black;
257
+ div.figure {
258
+ @include figureBlock();
440
259
  }
441
260
 
442
261
  /*
@@ -444,56 +263,17 @@ height: auto;
444
263
  */
445
264
 
446
265
  .document-type-band {
447
- left:0;
448
- top:180px;
449
- height: 100%;
450
- position: fixed;
451
- display: block;
452
- z-index: 99;
453
- /*box-shadow: -5px 0px 10px #1d1d1d*/
454
-
266
+ @include docBand(2, 100%, 180px);
455
267
  }
456
268
 
457
269
  .document-stage-band {
458
- left:0;
459
- top:0;
460
- height: 100%;
461
- position: fixed;
462
- display: block;
463
- z-index: 98;
464
- box-shadow: -5px 0px 10px #1d1d1d
465
- }
466
-
467
- .document-type {
468
- position: relative;
469
- width: 25px;
470
- }
471
-
472
- .document-stage {
473
- position: relative;
474
- width: 25px;
270
+ @include docBand(1, 100%);
475
271
  }
476
272
 
477
- p.document-type, p.document-stage {
478
- color: white;
479
- text-transform: uppercase;
480
- font-size: 0.9em;
481
- font-weight: 400;
482
- letter-spacing: 0.05em;
483
- margin:0;
484
- margin-left: 6px;
485
- writing-mode:vertical-rl;
486
- -webkit-transform:rotate(180deg);
487
- -moz-transform:rotate(180deg);
488
- -o-transform: rotate(180deg);
489
- white-space:nowrap;
490
- display:block;
491
- bottom:0;
492
- }
493
-
494
- p.document-type {
495
- font-weight: 400;
496
- height: 210px;
273
+ p.document-type,
274
+ p.document-stage {
275
+ @include docBandTitle(210px);
276
+ writing-mode: vertical-rl;
497
277
  }
498
278
 
499
279
  #governance-band p.document-type {
@@ -536,7 +316,7 @@ p.document-stage {
536
316
  font-size: 1em;
537
317
  margin: 0 0 2em 0;
538
318
  text-transform: uppercase;
539
- }
319
+ }
540
320
 
541
321
  #working-draft {
542
322
  border-bottom: solid 3px #fda706;
@@ -581,15 +361,29 @@ p.document-stage {
581
361
 
582
362
  /* 3 Other styles */
583
363
 
364
+ /*
365
+ 3.2 Links
366
+ */
367
+ a {
368
+ color: black;
369
+ text-decoration-color: black;
370
+ }
371
+
584
372
  /*
585
373
  3.3 Lists
586
374
  */
587
-
588
- ul, ol {margin-left: 2em;}
589
-
590
- #toc-list ul {margin-bottom: 0.25em;}
591
-
592
- #toc-list ol li {list-style-type: none;}
375
+
376
+ ul, ol {
377
+ margin-left: 2em;
378
+ }
379
+
380
+ #toc-list ul {
381
+ margin-bottom: 0.25em;
382
+ }
383
+
384
+ #toc-list ol li {
385
+ list-style-type: none;
386
+ }
593
387
 
594
388
  /* https://github.com/metanorma/metanorma-iso/issues/319 : force a) parentheses for ordered lists */
595
389
 
@@ -686,48 +480,43 @@ ol[type="roman_upper"] ol[type="roman_upper"] > li:before {
686
480
  content: counter(roman_upper2, upper-roman)") "
687
481
  }
688
482
 
689
-
690
483
  /*
691
484
  3.4 Rules
692
485
  */
693
486
 
694
487
  .rule {
695
- width: 100%;
696
- height: 1px;
697
- background-color: #0e1a85;
698
- margin: 2em 0;
699
- }
488
+ @include rule(1px, #0e1a85)
489
+ }
700
490
 
701
491
  /*
702
492
  3.5 Bibliograhy
703
493
  */
704
494
 
705
495
  p.Biblio, p.NormRef {
706
- margin-top: 1em;
707
- margin-left: 2em;
496
+ margin-top: 1em;
497
+ margin-left: 2em;
708
498
  }
709
499
 
710
500
  /*
711
501
  3.6 Source Code + figures
712
502
  */
713
503
 
714
- pre {
715
- font-family: $monospacefont;
716
- font-variant-ligatures: none;
504
+ .figure,
505
+ pre,
506
+ .pseudocode {
507
+ @include pseudocodeBlock(#f7f7f7);
508
+ font-size: 1em;
717
509
  }
718
510
 
719
- .figure, pre, .pseudocode {
720
- background-color: #f7f7f7;
721
- line-height: 1.6em;
722
- padding: 1.5em;
723
- margin: 2em 0 1em 0;
724
- overflow: auto;
511
+ pre {
512
+ @include monospaceBlockStyle()
725
513
  }
726
514
 
515
+ @include admonitionBlock();
516
+ @include recommendationBlock();
517
+
727
518
  .figure-title, .FigureTitle, .SourceTitle, .AdmonitionTitle, .RecommendationTitle {
728
- font-weight: 700;
729
- font-size: 1em;
730
- text-align: center;
519
+ @include blockTitle()
731
520
  }
732
521
 
733
522
  /*
@@ -735,11 +524,11 @@ text-align: center;
735
524
  */
736
525
 
737
526
  .Note, .note {
738
- background-color: #fff495;
739
- color: #47430c;
740
- padding: 0.5em;
741
- margin: 1.5em 0 1.5em 0;
742
- text-align: left;
527
+ background-color: #fff495;
528
+ color: #47430c;
529
+ padding: 0.5em;
530
+ margin: 1.5em 0 1.5em 0;
531
+ text-align: left;
743
532
  }
744
533
 
745
534
  .Note p, .note p {
@@ -747,11 +536,11 @@ text-align: left;
747
536
  }
748
537
 
749
538
  .Admonition {
750
- background-color: #ffcccc;
751
- color: #47430c;
752
- padding: 0.5em;
753
- margin: 1.5em 0 1.5em 0;
754
- text-align: left;
539
+ background-color: #ffcccc;
540
+ color: #47430c;
541
+ padding: 0.5em;
542
+ margin: 1.5em 0 1.5em 0;
543
+ text-align: left;
755
544
  }
756
545
 
757
546
  .Admonition p {
@@ -764,25 +553,18 @@ text-align: left;
764
553
  */
765
554
 
766
555
  .example {
767
- background-color: #e1eef1;
768
- padding: 0.5em;
769
- margin: 2em 0 1em 0;
770
- text-align: left;
771
- }
772
-
773
- .example p {
774
- margin: 0;
775
- }
776
-
777
- .example .example-title {
778
- font-weight: 700;
779
- text-transform: uppercase;
780
- margin-top:0;
781
- }
556
+ @include exampleBlock(#e1eef1, black, 0.5em);
557
+ color: black;
782
558
 
559
+ padding-left: 0.5em;
560
+ .example-title {
561
+ margin-top: 0;
562
+ }
783
563
 
784
- .example pre, .example .pseudocode {
785
- background: none;
564
+ pre,
565
+ .pseudocode {
566
+ background: none;
567
+ }
786
568
  }
787
569
 
788
570
  /*
@@ -790,38 +572,24 @@ margin-top:0;
790
572
  */
791
573
 
792
574
  table {
793
- border-collapse: collapse;
794
- width: 100%;
795
- font-weight: 300;
796
- margin: 1em 0 2em 0;
797
- margin-left: auto;
798
- margin-right: auto;
799
- padding-right: 2em;
800
- text-align: center;
801
- }
802
-
803
- table, th, td {
804
- border: 1px solid black;
805
- font-size: 0.95em;
575
+ @include table(1px solid black);
576
+ text-align: center;
806
577
  }
807
578
 
808
- td, th {
809
- padding: 1em!important;
810
- }
811
-
812
- td.header {
813
- font-weight: 400;
579
+ td,
580
+ th {
581
+ padding: 1em !important;
814
582
  }
815
583
 
816
584
  p.TableTitle {
817
- text-align: center;
818
- margin-top: 2.5em;
819
- font-weight: 800;
820
- font-size: 1.1em;
585
+ text-align: center;
586
+ margin-top: 2.5em;
587
+ font-weight: 800;
588
+ font-size: 1.1em;
821
589
  }
822
590
 
823
591
  .TableFootnote {
824
- text-align: left!important;
592
+ text-align: left !important;
825
593
  }
826
594
 
827
595
  /*
@@ -829,16 +597,16 @@ font-size: 1.1em;
829
597
  */
830
598
 
831
599
  a.footnote-number, a.TableFootnoteRef, span.TableFootnoteRef {
832
- vertical-align: super;
833
- font-size: 0.8em;
600
+ vertical-align: super;
601
+ font-size: 0.8em;
834
602
  }
835
603
 
836
604
  .footnote {
837
- font-size: 0.9em;
605
+ font-size: 0.9em;
838
606
  }
839
607
 
840
- sup a {
841
- vertical-align: super;
608
+ sup a {
609
+ vertical-align: super;
842
610
  font-size: 0.8em;
843
611
  }
844
612
  #footnote_box {
@@ -854,7 +622,7 @@ sup a {
854
622
 
855
623
  ol.footnotes-list, aside.footnote {
856
624
  margin-left: 1em;
857
-
625
+
858
626
  }
859
627
 
860
628
  ol.footnotes-list li, aside.footnote {
@@ -882,34 +650,24 @@ ol > li > p:before {
882
650
  3.11 Blockquotes
883
651
  */
884
652
 
885
- .blockquote, .Quote {
886
- background-color: #f7f7f7;
887
- font-style: italic;
888
- width: 80%;
889
- padding: 1.5em;
890
- margin-top: 2em;
891
- margin-left: auto;
892
- margin-right: auto;
653
+ .Quote {
654
+ @include blockquoteBlock(#f7f7f7);
893
655
  }
894
656
 
895
-
896
657
  /*
897
658
  3.12 Formulas
898
659
  */
899
660
 
900
661
  .formula {
901
- background-color: #f7f7f7;
902
- padding: 1.5em;
903
- margin-top: 2em;
904
- text-align: center;
905
- margin-left: 20%;
906
- margin-right: 20%;
662
+ @include formulaBlock(#f7f7f7);
663
+ margin-left: 20%;
664
+ margin-right: 20%;
907
665
  }
908
666
 
909
667
  dl.formula_dl {
910
- background-color: #f7f7f7;
911
- margin-left: 20%;
912
- margin-right: 20%;
668
+ background-color: #f7f7f7;
669
+ margin-left: 20%;
670
+ margin-right: 20%;
913
671
  }
914
672
 
915
673
  /*
@@ -931,6 +689,3 @@ font-weight: 600;
931
689
  .Admonition p, .admonition p {
932
690
  margin: 0;
933
691
  }
934
-
935
-
936
-