metanorma-bipm 1.2.4 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -76,6 +76,12 @@ code *, pre *, tt *, kbd *, samp * {
76
76
  font-family: {{monospacefont}} !important;
77
77
  font-variant-ligatures: none; }
78
78
 
79
+ p code, dt code, li code, label code, legend code, caption code, th code, td code,
80
+ p tt, dt tt, li tt, label tt, legend tt, caption tt, th tt, td tt,
81
+ p kbd, dt kbd, li kbd, label kbd, legend kbd, caption kbd, th kbd, td kbd,
82
+ p samp, dt samp, li samp, label samp, legend samp, caption samp, th samp, td samp {
83
+ font-size: {{monospacefontsize}}; }
84
+
79
85
  article, aside, details, figcaption, figure,
80
86
  footer, header, hgroup, menu, nav, section {
81
87
  display: block; }
@@ -87,6 +93,9 @@ table {
87
93
  h1, h2, h3, h4, h5, h6 {
88
94
  font-family: {{headerfont}}; }
89
95
 
96
+ .h1, .h2, .h3, .h4, .h5, .h6 {
97
+ font-family: {{headerfont}}; }
98
+
90
99
  blockquote, q {
91
100
  quotes: none; }
92
101
  blockquote:before, blockquote:after, q:before, q:after {
@@ -237,59 +246,65 @@ main {
237
246
  /*
238
247
  2. Responsive navigation layout
239
248
  */
240
- #toc {
249
+ #toc, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) {
241
250
  font-family: {{bodyfont}};
242
251
  font-weight: 400; }
243
- #toc ul {
252
+ #toc ul, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) ul {
244
253
  margin: 0;
245
254
  padding: 0;
246
255
  list-style: none; }
247
- #toc ul li a {
256
+ #toc ul li a, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) ul li a {
248
257
  padding: 5px 10px; }
249
- #toc ul a {
258
+ #toc ul a, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) ul a {
250
259
  color: #485094;
251
260
  text-decoration: none;
252
261
  display: block; }
253
- #toc ul a:hover {
262
+ #toc ul a:hover, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) ul a:hover {
254
263
  box-shadow: none;
255
264
  color: #485094; }
256
- #toc .h2 {
265
+ #toc .h2, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) .h2 {
257
266
  padding-left: 30px; }
258
- #toc .h3 {
267
+ #toc .h3, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) .h3 {
259
268
  padding-left: 50px; }
260
- #toc .toc-active, #toc li:hover {
269
+ #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 {
261
270
  background: #6C734A;
262
271
  box-shadow: inset -5px 0px 10px -5px #6C734A !important; }
263
- #toc .toc-active a, #toc li:hover a {
272
+ #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 {
264
273
  color: #485094; }
265
274
  @media print {
266
- #toc .toc-active, #toc li:hover {
275
+ #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 {
267
276
  background: white;
268
277
  box-shadow: none !important; }
269
- #toc .toc-active a {
278
+ #toc .toc-active a, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) .toc-active a {
270
279
  color: #485094; }
271
- #toc li:hover a {
280
+ #toc li:hover a, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) li:hover a {
272
281
  color: black; } }
273
282
  @media screen and (max-width: 768px) {
274
- #toc {
283
+ #toc, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) {
275
284
  padding: 0 1.5em;
276
285
  overflow: visible; } }
277
- #toc .toc-active a {
286
+ #toc .toc-active a, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) .toc-active a {
278
287
  color: white; }
279
288
  #toc .toc-active,
280
- #toc li:hover {
289
+ #toc li:hover, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) .toc-active,
290
+ #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) li:hover {
281
291
  box-shadow: none !important; }
282
292
  #toc .toc-active a,
283
- #toc li:hover a {
293
+ #toc li:hover a, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) .toc-active a,
294
+ #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) li:hover a {
284
295
  color: white;
285
296
  background: none;
286
297
  box-shadow: none; }
287
- #toc li a {
298
+ #toc li a, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) li a {
288
299
  text-transform: uppercase; }
289
- #toc ul a:hover {
300
+ #toc ul a:hover, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) ul a:hover {
290
301
  box-shadow: none;
291
302
  color: white; }
292
303
 
304
+ #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) {
305
+ margin-top: 0;
306
+ margin-bottom: 0; }
307
+
293
308
  @media screen and (min-width: 768px) {
294
309
  nav {
295
310
  position: fixed;
@@ -343,7 +358,7 @@ main {
343
358
  display: none; }
344
359
  h1.toc-contents {
345
360
  margin-top: 1em; }
346
- ul#toc-list {
361
+ ul#toc-list, ul#toc-list > :is(.h1, .h2, .h3, .h4, .h5, .h6) {
347
362
  padding: 0;
348
363
  margin: 0; } }
349
364
 
@@ -470,27 +485,27 @@ p.document-stage {
470
485
  /*
471
486
  3.1 Titles
472
487
  */
473
- h1, h2, h3, h4, h5, h6 {
488
+ h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
474
489
  font-family: {{headerfont}};
475
490
  color: #6C734A;
476
491
  font-weight: 300;
477
492
  margin-top: 1.6em;
478
493
  margin-bottom: 0.3em; }
479
494
 
480
- h1 {
495
+ h1, .h1 {
481
496
  font-size: 1.6em;
482
497
  text-transform: uppercase;
483
498
  margin-top: 2em; }
484
499
 
485
- h1#content {
500
+ h1#content, #content.h1 {
486
501
  margin-top: 2em; }
487
502
 
488
- h2 {
503
+ h2, .h2 {
489
504
  margin-top: 1.3em;
490
505
  font-size: 1.3em;
491
506
  font-weight: 400; }
492
507
 
493
- h3 {
508
+ h3, .h3 {
494
509
  margin-top: 1.1em;
495
510
  font-size: 1.1em;
496
511
  font-weight: 100; }
@@ -802,7 +817,7 @@ p {
802
817
  margin-top: 1em;
803
818
  margin-bottom: 1em; }
804
819
 
805
- h2 p {
820
+ h2 p, .h2 p {
806
821
  display: inline; }
807
822
 
808
823
  /*
@@ -954,7 +969,7 @@ To top button
954
969
  @media print {
955
970
  .document-info, nav, .copyright {
956
971
  page-break-before: always; }
957
- h1, h2, h3, h4 {
972
+ h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
958
973
  page-break-after: avoid;
959
974
  margin-top: 1.2em; }
960
975
  .note, .figure, pre, .pseudocode, table {
@@ -974,15 +989,15 @@ To top button
974
989
  display: none; }
975
990
  .container {
976
991
  padding-left: 0; }
977
- h1.content {
992
+ h1.content, .h1.content {
978
993
  margin-top: 2em;
979
994
  line-height: 2.5em; }
980
- h1 {
995
+ h1, .h1 {
981
996
  font-size: 1.5em;
982
997
  line-height: 1.5; }
983
- h2 {
998
+ h2, .h2 {
984
999
  font-size: 1.2em; }
985
- h3 {
1000
+ h3, .h3 {
986
1001
  font-size: 1em; }
987
1002
  .Note {
988
1003
  background-color: #fff495;
@@ -52,7 +52,7 @@ main {
52
52
  2. Responsive navigation layout
53
53
  */
54
54
 
55
- #toc {
55
+ #toc, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) {
56
56
  @include toc(#485094, #6C734A, #485094);
57
57
  @include sidebarToc();
58
58
 
@@ -83,6 +83,11 @@ main {
83
83
  }
84
84
  }
85
85
 
86
+ #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) {
87
+ margin-top: 0;
88
+ margin-bottom: 0;
89
+ }
90
+
86
91
  nav {
87
92
  @include sidebarNav(#f7f7f7, 323px, 45px);
88
93
  }
@@ -104,7 +109,7 @@ nav {
104
109
  margin-top: 1em;
105
110
  }
106
111
 
107
- ul#toc-list {
112
+ ul#toc-list, ul#toc-list > :is(.h1, .h2, .h3, .h4, .h5, .h6) {
108
113
  padding: 0;
109
114
  margin: 0;
110
115
  }
@@ -159,7 +164,7 @@ p.document-stage {
159
164
  3.1 Titles
160
165
  */
161
166
 
162
- h1,h2,h3,h4,h5,h6 {
167
+ h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6 {
163
168
  font-family: $headerfont;
164
169
  color: #6C734A;
165
170
  font-weight: 300;
@@ -167,23 +172,23 @@ p.document-stage {
167
172
  margin-bottom: 0.3em;
168
173
  }
169
174
 
170
- h1 {
175
+ h1,.h1 {
171
176
  font-size: 1.6em;
172
177
  text-transform: uppercase;
173
178
  margin-top: 2em;
174
179
  }
175
180
 
176
- h1#content {
181
+ h1#content,.h1#content {
177
182
  margin-top: 2em;
178
183
  }
179
184
 
180
- h2 {
185
+ h2,.h2 {
181
186
  margin-top: 1.3em;
182
187
  font-size: 1.3em;
183
188
  font-weight: 400;
184
189
  }
185
190
 
186
- h3 {
191
+ h3,.h3 {
187
192
  margin-top: 1.1em;
188
193
  font-size: 1.1em;
189
194
  font-weight: 100;
@@ -485,7 +490,7 @@ p {
485
490
  margin-bottom: 1em;
486
491
  }
487
492
 
488
- h2 p {
493
+ h2 p, .h2 p {
489
494
  display: inline;
490
495
  }
491
496
 
@@ -658,7 +663,7 @@ To top button
658
663
  page-break-before: always;
659
664
  }
660
665
 
661
- h1, h2, h3, h4 {
666
+ h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
662
667
  page-break-after: avoid;
663
668
  margin-top: 1.2em;
664
669
  }
@@ -695,21 +700,21 @@ To top button
695
700
  padding-left: 0;
696
701
  }
697
702
 
698
- h1.content {
703
+ h1.content,.h1.content {
699
704
  margin-top: 2em;
700
705
  line-height: 2.5em;
701
706
  }
702
707
 
703
- h1 {
708
+ h1,.h1 {
704
709
  font-size: 1.5em;
705
710
  line-height: 1.5;
706
711
  }
707
712
 
708
- h2 {
713
+ h2,.h2 {
709
714
  font-size: 1.2em
710
715
  }
711
716
 
712
- h3 {
717
+ h3,.h3 {
713
718
  font-size: 1em;
714
719
  }
715
720