metanorma-un 0.3.4 → 0.3.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,12 +16,13 @@
16
16
  <div class="coverpage">
17
17
  <div class="wrapper-top">
18
18
 
19
+ <div class="coverpage-logo">
20
+ <span>UNECE {{ docyear }}</span>
21
+ </div>
22
+ <div class="coverpage-tc-name">
23
+ <span>{{ tc }}</span>
24
+ </div>
19
25
  <div class="coverpage-doc-identity">
20
- <div class="doc-number">
21
- <span class="docnumber">{{ formatted_docnumber }}</span>
22
- <span class="docyear">{{ draftinfo }}</span>
23
- </div>
24
-
25
26
  <div class="doc-number">
26
27
  <p>{{ session_number }} session</p>
27
28
  <p>{{ session_date }}</p>
@@ -46,18 +47,9 @@
46
47
  <!--<span class="title-second">{{ docsubtitle }}</span>-->
47
48
  </div>
48
49
  </div>
49
-
50
- <div class="coverpage-logo">
51
- <span>UNECE {{ docyear }}</span>
50
+ <div class="wrapper-top-bottom"></div>
52
51
  </div>
53
52
 
54
- <div class="coverpage-tc-name">
55
- <span>{{ tc }}</span>
56
- </div>
57
- </div>
58
-
59
- <div class="wrapper-top-bottom"></div>
60
-
61
53
  <div class="WordSection11">
62
54
  <div class="coverpage-stage-block" >
63
55
  <span class="coverpage-stage" id="{{ doctype | replace: ' ', '-' | downcase }}">UNECE {{ doctype }}</span>
@@ -36,8 +36,7 @@
36
36
  <span>{{ tc }}</span>
37
37
  </div>
38
38
  </div>
39
-
40
- <div class="wrapper-top-bottom"></div>
39
+ <div class="wrapper-top-bottom"></div>
41
40
 
42
41
  <div class="WordSection11">
43
42
  <div class="coverpage-stage-block" >
@@ -33,6 +33,30 @@ $un-text: #333;
33
33
  /* RT: I made this up */
34
34
  $un-link: #00ADEF;
35
35
 
36
+ $un-background: #9abd48;
37
+
38
+ $un-guide: #48a0e7;
39
+
40
+ $un-toc: #1661ad;
41
+
42
+ $un-governence: #750697;
43
+
44
+ $un-working-draft: #f7803c;
45
+
46
+ $un-comitee-draft: #fd06fd;
47
+
48
+ $un-draft-standard: #fdf906;
49
+
50
+ $un-obsolete: #7e0d13;
51
+
52
+ $un-note: #fff495;
53
+
54
+ $un-admonition-back: #ffcccc;
55
+
56
+ $un-admonition-color: #47430c;
57
+
58
+ $un-toc-active: #4d7ea5;
59
+
36
60
  body {
37
61
  @include bodyStyle1(15px, 1.4em, $un-text, #ffffff, 300);
38
62
  font-weight: 400;
@@ -51,7 +75,7 @@ p {
51
75
  */
52
76
 
53
77
  #toc {
54
- @include toc($un-text, #1661AD, $un-text);
78
+ @include toc($un-text, $un-toc, $un-text);
55
79
  @include sidebarToc();
56
80
 
57
81
  .toc-active a {
@@ -88,24 +112,24 @@ nav {
88
112
 
89
113
  @media screen and (min-width: 768px) {
90
114
  .container {
91
- padding-left: 360px;
115
+ padding-left: 360px;
92
116
  }
93
117
 
94
118
  .rule.toc {
95
- display: none;
119
+ display: none;
96
120
  }
97
121
 
98
122
  h1.toc-contents {
99
- margin-top: 1em;
123
+ margin-top: 1em;
100
124
  }
101
125
 
102
126
  ul#toc-list {
103
- padding:0;
104
- margin:0;
127
+ margin: 0;
128
+ padding: 0;
105
129
  }
106
130
  }
107
131
 
108
- div.figure {
132
+ .figure {
109
133
  @include figureBlock();
110
134
  }
111
135
 
@@ -114,16 +138,26 @@ div.figure {
114
138
  */
115
139
 
116
140
  .document-type-band {
117
- @include docBand(2, 150, 180px);
141
+ @include docBand($order: 2, $offset: 180px);
142
+
143
+ .document-type {
144
+ top: 20px;
145
+ }
118
146
  }
119
147
 
120
148
  .document-stage-band {
121
149
  @include docBand(1, 150);
122
150
  }
123
- .document-stage-band > :first-child {
151
+
152
+ .document-stage-band> :first-child {
124
153
  font-weight: 300;
125
154
  }
126
155
 
156
+ div.document-stage-band,
157
+ div.document-type-band {
158
+ background-color: $un-background;
159
+ }
160
+
127
161
  p.document-type,
128
162
  p.document-stage {
129
163
  @include docBandTitle(150);
@@ -148,30 +182,30 @@ p.document-stage {
148
182
 
149
183
  #standard-band,
150
184
  #published-band {
151
- background-color: #9ABD48;
185
+ background-color: $un-background;
152
186
  }
153
187
 
154
188
  #standard,
155
189
  #published {
156
- border-bottom: solid 3px #9ABD48;
190
+ border-bottom: solid 3px $un-background;
157
191
  }
158
192
 
159
193
  #governance,
160
194
  #policy-and-procedures {
161
- border-bottom: solid 3px #750697;
195
+ border-bottom: solid 3px $un-governence;
162
196
  }
163
197
 
164
198
  #governance-band,
165
199
  #policy-and-procedures-band {
166
- background-color: #750697;
200
+ background-color: $un-governence;
167
201
  }
168
202
 
169
203
  #guide {
170
- border-bottom: solid 3px #48a0e7;
204
+ border-bottom: solid 3px $un-guide;
171
205
  }
172
206
 
173
207
  #guide-band {
174
- background-color: #48a0e7;
208
+ background-color: $un-guide;
175
209
  }
176
210
 
177
211
  .coverpage-maturity {
@@ -180,44 +214,44 @@ p.document-stage {
180
214
 
181
215
  #working-draft,
182
216
  #proposal {
183
- border-bottom: solid 3px #F7803C;
217
+ border-bottom: solid 3px $un-working-draft;
184
218
  }
185
219
 
186
220
  #working-draft-band,
187
221
  #proposal-band {
188
- background-color: #F7803C;
222
+ background-color: $un-working-draft;
189
223
  }
190
224
 
191
225
  #committee-draft {
192
- border-bottom: solid 3px #fd06fd;
226
+ border-bottom: solid 3px $un-comitee-draft;
193
227
  }
194
228
 
195
229
  #committee-draft-band {
196
- background-color: #fd06fd;
230
+ background-color: $un-comitee-draft;
197
231
  }
198
232
 
199
233
  #draft-standard {
200
- border-bottom: solid 3px #fdf906;
234
+ border-bottom: solid 3px $un-draft-standard;
201
235
  }
202
236
 
203
237
  #draft-standard-band {
204
- background-color: #fdf906;
238
+ background-color: $un-draft-standard;
205
239
  }
206
240
 
207
241
  #standard {
208
- border-bottom: solid 3px #9ABD48;
242
+ border-bottom: solid 3px $un-background;
209
243
  }
210
244
 
211
245
  #standard-band {
212
- background-color: #9ABD48;
246
+ background-color: $un-background;
213
247
  }
214
248
 
215
249
  #obsolete {
216
- border-bottom: solid 3px #7e0d13;
250
+ border-bottom: solid 3px $un-obsolete;
217
251
  }
218
252
 
219
253
  #obsolete-band {
220
- background-color: #7e0d13;
254
+ background-color: $un-obsolete;
221
255
  }
222
256
 
223
257
  /*
@@ -228,7 +262,13 @@ p.document-stage {
228
262
  3.1 Titles
229
263
  */
230
264
 
231
- h1, h2, h3, h4, h5, h6, .h2Annex {
265
+ h1,
266
+ h2,
267
+ h3,
268
+ h4,
269
+ h5,
270
+ h6,
271
+ .h2Annex {
232
272
  font-family: $headerfont;
233
273
  color: $un-blue;
234
274
  font-weight: 700;
@@ -237,7 +277,9 @@ h1, h2, h3, h4, h5, h6, .h2Annex {
237
277
  margin-bottom: 0.3em;
238
278
  }
239
279
 
240
- h1, h2, h3 {
280
+ h1,
281
+ h2,
282
+ h3 {
241
283
  margin-top: 18px;
242
284
  margin-bottom: 9px;
243
285
  }
@@ -259,7 +301,7 @@ h2 {
259
301
  h3 {
260
302
  font-size: 24px;
261
303
  margin-top: 26px;
262
- color: black;
304
+ color: $un-black;
263
305
  }
264
306
 
265
307
  h4 {
@@ -271,7 +313,7 @@ h4 {
271
313
 
272
314
  h5 {
273
315
  font-size: 16.25px;
274
- color: black;
316
+ color: $un-black;
275
317
  margin-bottom: 2px;
276
318
  }
277
319
 
@@ -304,28 +346,30 @@ h6 {
304
346
  font-weight: 100;
305
347
  }*/
306
348
 
307
- .TermNum, .Terms, .AltTerms {
308
- color: $un-blue;
309
- font-weight: 100;
310
- }
349
+ .TermNum,
350
+ .Terms,
351
+ .AltTerms {
352
+ color: $un-blue;
353
+ font-weight: 100;
354
+ }
311
355
 
312
- h2.TermNum {
313
- margin-bottom: 0;
314
- }
356
+ h2.TermNum {
357
+ margin-bottom: 0;
358
+ }
315
359
 
316
- p.Terms {
317
- font-size: 1.1em;
318
- line-height: 1.5em;
319
- margin: 0;
320
- }
360
+ p.Terms {
361
+ font-size: 1.1em;
362
+ line-height: 1.5em;
363
+ margin: 0;
364
+ }
321
365
 
322
- p.AltTerms {
323
- /*
366
+ p.AltTerms {
367
+ /*
324
368
  font-style: italic;
325
369
  */
326
- font-size: 1.1em;
327
- margin: 0;
328
- }
370
+ font-size: 1.1em;
371
+ margin: 0;
372
+ }
329
373
 
330
374
  /*
331
375
  3.2 Links
@@ -337,15 +381,16 @@ h6 {
337
381
  3.3 Lists
338
382
  */
339
383
 
340
- ul, ol {
384
+ ul,
385
+ ol {
341
386
  margin-left: 1.2em;
342
387
  }
343
388
 
344
- ul > li p:first-child {
389
+ ul>li p:first-child {
345
390
  display: inline;
346
391
  }
347
392
 
348
- ul > li:first-child {
393
+ ul>li:first-child {
349
394
  margin-top: 1em;
350
395
  }
351
396
 
@@ -362,7 +407,7 @@ ul > li:first-child {
362
407
  display: none;
363
408
  }
364
409
 
365
- main ul > li {
410
+ main ul>li {
366
411
  list-style-type: disc;
367
412
  list-style-position: outside;
368
413
  margin-bottom: 0.5em;
@@ -382,9 +427,10 @@ main ul > li {
382
427
  3.5 Bibliograhy
383
428
  */
384
429
 
385
- p.Biblio, p.NormRef {
386
- margin-top: 1em;
387
- margin-left: 2em;
430
+ p.Biblio,
431
+ p.NormRef {
432
+ margin-left: 2em;
433
+ margin-top: 1em;
388
434
  }
389
435
 
390
436
  /*
@@ -414,25 +460,25 @@ pre {
414
460
  */
415
461
 
416
462
  .Note {
417
- background-color: #fff495;
418
- color: #47430c;
419
- padding: 1.2em;
420
- margin: 1em 0 1em 0;
463
+ background-color: $un-note;
464
+ color: $un-admonition-color;
465
+ margin: 1em 0;
466
+ padding: 1.2em;
421
467
 
422
- p {
423
- margin: 0;
424
- }
468
+ p {
469
+ margin: 0;
470
+ }
425
471
  }
426
472
 
427
473
  .Admonition {
428
- background-color: #ffcccc;
429
- color: #47430c;
430
- padding: 1.2em;
431
- margin: 1em 0 1em 0;
474
+ background-color: $un-admonition-back;
475
+ color: $un-admonition-color;
476
+ margin: 1em 0;
477
+ padding: 1.2em;
432
478
 
433
- p {
434
- margin: 0;
435
- }
479
+ p {
480
+ margin: 0;
481
+ }
436
482
  }
437
483
 
438
484
 
@@ -458,7 +504,7 @@ pre {
458
504
  */
459
505
 
460
506
  table {
461
- @include table(1px solid black);
507
+ @include table(1px solid $un-black);
462
508
  }
463
509
 
464
510
  p.TableTitle {
@@ -472,12 +518,12 @@ p.TableTitle {
472
518
  */
473
519
 
474
520
  a.footnote-number {
475
- vertical-align: super;
476
- font-size: 0.8em;
521
+ font-size: 0.8em;
522
+ vertical-align: super;
477
523
  }
478
524
 
479
525
  .footnote {
480
- font-size: 0.9em;
526
+ font-size: 0.9em;
481
527
  }
482
528
 
483
529
 
@@ -503,7 +549,6 @@ a.footnote-number {
503
549
  */
504
550
 
505
551
  .contact-info {
506
- /* padding: 2em;*/
507
552
  margin-top: 5em;
508
553
  text-align: left;
509
554
  }
@@ -515,16 +560,11 @@ a.footnote-number {
515
560
 
516
561
  .contact-info p,
517
562
  .contact-info a {
518
- /* font-family: $monospacefont;
519
- font-variant-ligatures: none; */
520
563
  font-weight: 400;
521
564
  }
522
565
 
523
- /* http://www.un.org/styleguide/ labels */
566
+ // http://www.un.org/styleguide/ labels
524
567
  .contact-info #boilerplate-feedback-name {
525
- /* font-weight: 700;
526
- font-size: 1.2em;
527
- margin-bottom:0;*/
528
568
  padding-left: 1px;
529
569
  color: $un-label;
530
570
  font-size: 18.2px;
@@ -537,9 +577,9 @@ a.footnote-number {
537
577
  }
538
578
 
539
579
  .contact-info #boilerplate-feedback-address {
540
- font-size: 1em;
541
- line-height: 1.3em;
542
- margin-top:0;
580
+ font-size: 1em;
581
+ line-height: 1.3em;
582
+ margin-top: 0;
543
583
  }
544
584
 
545
585
  /*
@@ -547,7 +587,7 @@ a.footnote-number {
547
587
  */
548
588
 
549
589
  span.keyword {
550
- font-weight: 600;
590
+ font-weight: 600;
551
591
  }
552
592
 
553
593
  /*
@@ -555,8 +595,8 @@ span.keyword {
555
595
  */
556
596
 
557
597
  p {
558
- margin-top: 1em;
559
- margin-bottom: 1em;
598
+ margin-bottom: 1em;
599
+ margin-top: 1em;
560
600
  }
561
601
 
562
602
  h2 p {
@@ -610,6 +650,7 @@ h2 p {
610
650
 
611
651
  .WordSection11 {
612
652
  padding: 0 2em 0 3em;
653
+ text-align: center;
613
654
  }
614
655
 
615
656
  .info-section {
@@ -621,7 +662,8 @@ h2 p {
621
662
  }
622
663
 
623
664
 
624
- .zzSTDTitle1, .MsoCommentText {
665
+ .zzSTDTitle1,
666
+ .MsoCommentText {
625
667
  display: none;
626
668
  }
627
669
 
@@ -631,7 +673,8 @@ h2 p {
631
673
  padding-left: 1.5em;
632
674
  }
633
675
 
634
- .coverpage-logo span, .coverpage-tc-name span {
676
+ .coverpage-logo span,
677
+ .coverpage-tc-name span {
635
678
  font-family: $bodyfont;
636
679
  text-transform: none;
637
680
  font-weight: 300;
@@ -696,7 +739,7 @@ h2 p {
696
739
 
697
740
 
698
741
  .boilerplate-copyright p {
699
- text-align: center;
742
+ text-align: center;
700
743
  }
701
744
 
702
745
  #boilerplate-ECEhdr {
@@ -727,16 +770,25 @@ To top button
727
770
 
728
771
  @media print {
729
772
 
730
- .document-info, nav, .copyright {
731
- page-break-before: always;
773
+ .document-info,
774
+ nav,
775
+ .copyright {
776
+ page-break-before: always;
732
777
  }
733
778
 
734
- h1, h2, h3, h4 {
779
+ h1,
780
+ h2,
781
+ h3,
782
+ h4 {
735
783
  page-break-after: avoid;
736
784
  margin-top: 1.2em;
737
785
  }
738
786
 
739
- .note, .figure, pre, .pseudocode, table {
787
+ .note,
788
+ .figure,
789
+ pre,
790
+ .pseudocode,
791
+ table {
740
792
  page-break-inside: avoid;
741
793
  }
742
794
 
@@ -745,7 +797,7 @@ To top button
745
797
  }
746
798
 
747
799
  .coverpage {
748
- height: 23cm;
800
+ height: 23cm;
749
801
  }
750
802
 
751
803
  .wrapper-top {
@@ -759,69 +811,71 @@ To top button
759
811
  }
760
812
 
761
813
  .container {
762
- padding-left: 0;
814
+ padding-left: 0;
763
815
  }
764
816
 
765
817
 
766
818
  #toc .toc-active a {
767
- color: #4D7EA5;
819
+ color: $un-toc-active;
768
820
  }
769
821
 
770
- #toc .toc-active, #toc li:hover {
822
+ #toc .toc-active,
823
+ #toc li:hover {
771
824
  background: white;
772
- box-shadow: none !important; }
773
-
774
- #toc li:hover a {
775
- color: black; }
776
-
825
+ box-shadow: none !important;
826
+ }
777
827
 
778
- h1.content {
779
- margin-top: 2em;
780
- line-height: 2.5em;
781
- }
828
+ #toc li:hover a {
829
+ color: $un-black;
830
+ }
782
831
 
783
- h1 {
784
- font-size: 1.5em;
785
- line-height: 1.5;
786
- }
787
832
 
788
- h2 {
789
- font-size: 1.2em
790
- }
833
+ h1.content {
834
+ line-height: 2.5em;
835
+ margin-top: 2em;
836
+ }
791
837
 
792
- h3 {
793
- font-size: 1em;
794
- }
838
+ h1 {
839
+ font-size: 1.5em;
840
+ line-height: 1.5;
841
+ }
795
842
 
843
+ h2 {
844
+ font-size: 1.2em;
845
+ }
796
846
 
797
- .Note {
798
- background-color: #fff495;
799
- color: #47430c;
800
- padding: 5px;
801
- margin: 2em 0 1em 0; }
847
+ h3 {
848
+ font-size: 1em;
849
+ }
802
850
 
803
- .Note p {
804
- padding: 0 5px 0 5px;
805
- }
806
851
 
807
- .Admonition {
808
- background-color: #ffcccc;
809
- color: #47430c;
810
- padding: 5px;
811
- margin: 2em 0 1em 0; }
852
+ .Note {
853
+ background-color: $un-note;
854
+ color: $un-admonition-color;
855
+ margin: 2em 0 1em;
856
+ padding: 5px;
857
+ }
812
858
 
813
- .Admonition p {
814
- padding: 0 5px 0 5px;
815
- }
859
+ .Note p {
860
+ padding: 0 5px;
861
+ }
816
862
 
863
+ .Admonition {
864
+ background-color: $un-admonition-back;
865
+ color: $un-admonition-color;
866
+ margin: 2em 0 1em;
867
+ padding: 5px;
868
+ }
817
869
 
818
- nav {
819
- line-height: 1;
820
- }
870
+ .Admonition p {
871
+ padding: 0 5px;
872
+ }
821
873
 
822
- .wrapper-top-bottom {
823
- display: none;
824
- }
874
+ nav {
875
+ line-height: 1;
876
+ }
825
877
 
878
+ .wrapper-top-bottom {
879
+ display: none;
880
+ }
826
881
  }
827
-