metanorma-standoc 1.10.0 → 1.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/lib/asciidoctor/standoc/base.rb +0 -1
  3. data/lib/asciidoctor/standoc/blocks.rb +1 -1
  4. data/lib/asciidoctor/standoc/cleanup.rb +1 -2
  5. data/lib/asciidoctor/standoc/cleanup_block.rb +0 -1
  6. data/lib/asciidoctor/standoc/cleanup_boilerplate.rb +2 -2
  7. data/lib/asciidoctor/standoc/cleanup_footnotes.rb +0 -1
  8. data/lib/asciidoctor/standoc/cleanup_maths.rb +0 -1
  9. data/lib/asciidoctor/standoc/cleanup_section.rb +0 -1
  10. data/lib/asciidoctor/standoc/converter.rb +1 -0
  11. data/lib/asciidoctor/standoc/front.rb +0 -1
  12. data/lib/asciidoctor/standoc/front_contributor.rb +0 -1
  13. data/lib/asciidoctor/standoc/isodoc.rng +32 -7
  14. data/lib/asciidoctor/standoc/macros.rb +7 -5
  15. data/lib/asciidoctor/standoc/macros_plantuml.rb +3 -3
  16. data/lib/asciidoctor/standoc/macros_terms.rb +34 -7
  17. data/lib/asciidoctor/standoc/section.rb +19 -12
  18. data/lib/asciidoctor/standoc/term_lookup_cleanup.rb +58 -17
  19. data/lib/asciidoctor/standoc/utils.rb +0 -1
  20. data/lib/asciidoctor/standoc/validate.rb +4 -3
  21. data/lib/isodoc/html/html_titlepage.html +81 -0
  22. data/lib/isodoc/html/htmlstyle.css +983 -0
  23. data/lib/isodoc/html/htmlstyle.scss +714 -0
  24. data/lib/isodoc/html/scripts.html +71 -0
  25. data/lib/metanorma/standoc/processor.rb +16 -7
  26. data/lib/metanorma/standoc/version.rb +1 -1
  27. data/spec/asciidoctor/cleanup_spec.rb +12 -12
  28. data/spec/asciidoctor/macros_json2text_spec.rb +1 -1
  29. data/spec/asciidoctor/macros_spec.rb +228 -75
  30. data/spec/asciidoctor/validate_spec.rb +12 -2
  31. data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec.yml +50 -50
  32. data/spec/vcr_cassettes/isobib_get_123.yml +12 -12
  33. data/spec/vcr_cassettes/isobib_get_123_1.yml +23 -23
  34. data/spec/vcr_cassettes/isobib_get_123_1_fr.yml +34 -34
  35. data/spec/vcr_cassettes/isobib_get_123_2001.yml +13 -13
  36. data/spec/vcr_cassettes/isobib_get_124.yml +12 -12
  37. data/spec/vcr_cassettes/rfcbib_get_rfc8341.yml +14 -14
  38. data/spec/vcr_cassettes/separates_iev_citations_by_top_level_clause.yml +46 -46
  39. metadata +6 -2
@@ -3,7 +3,6 @@ require "nokogiri"
3
3
  require "htmlentities"
4
4
  require "json"
5
5
  require "pathname"
6
- require "open-uri"
7
6
  require "uuidtools"
8
7
 
9
8
  module Asciidoctor
@@ -59,14 +59,15 @@ module Asciidoctor
59
59
  found = false
60
60
  doc.xpath("//concept/xref").each do |x|
61
61
  next if doc.at("//term[@id = '#{x['target']}']")
62
+ next if doc.at("//definitions//dt[@id = '#{x['target']}']")
62
63
 
63
64
  ref = x&.at("../refterm")&.text
64
65
  @log.add("Anchors", x, "Concept #{ref} is pointing to "\
65
- "#{x['target']}, which is not a term")
66
+ "#{x['target']}, which is not a term or symbol")
66
67
  found = true
67
68
  end
68
- found and
69
- clean_abort("Concept not cross-referencing term", doc.to_xml)
69
+ found and clean_abort("Concept not cross-referencing term or symbol",
70
+ doc.to_xml)
70
71
  end
71
72
 
72
73
  def repeat_id_validate1(ids, elem)
@@ -0,0 +1,81 @@
1
+ <div class="document-stage-band" id="{{ stage | downcase | replace: ' ', '-' }}-band">
2
+ <p class="document-stage">{{ stage_display }}</p>
3
+ </div>
4
+
5
+ <div class="document-type-band" id="{{ doctype | downcase | replace: ' ', '-' }}-band">
6
+ <p class="document-type">{{org_abbrev}} {{ doctype_display }}</p>
7
+ </div>
8
+
9
+
10
+
11
+ <div id='toggle'> <span>&#x2022;</span> </div>
12
+
13
+ <header>
14
+
15
+ <!--<div class="WordSection1">-->
16
+ <div class="coverpage">
17
+ <div class="wrapper-top">
18
+
19
+ <div class="coverpage-doc-identity">
20
+ <div class="doc-number">
21
+ <span class="docnumber">{{ docnumber }}</span>
22
+ <span class="docnumber-separator">:</span>
23
+ <span class="docyear">{{ docyear }} {{ draftinfo }}</span>
24
+ </div>
25
+
26
+ <div class="coverpage-title">
27
+ {% if appendixtitle or parttitle or subparttitle %}
28
+ <span class="title-third">{{ doctitle }}</span>
29
+ <span class="title-third">{{ docsubtitle }}</span><br/>
30
+ {% if partid %}<span class="title-first">{{ partid}}: {{ parttitle }}</span><br/>{% endif %}
31
+ {% if partid_alt %}<span class="title-second">{{ partid_alt}}: {{ partsubtitle }}</span>{% endif %}
32
+ {% if subparttitle %}<span class="title-first">{{ subparttitle }}</span><br/>{% endif %}
33
+ {% if subpartsubtitle %}<span class="title-second">{{ subpartsubtitle }}</span><br/>{% endif %}
34
+ {% if provenancetitle %}<span class="title-first">{{ provenancetitle }}</span><br/>{% endif %}
35
+ {% if provenancesubtitle %}<span class="title-second">{{ provenancesubtitle }}</span><br/>{% endif %}
36
+ {% if appendixid %}<span class="title-first">{{ appendixid}}: {{ appendixtitle }}</span><br/>{% endif %}
37
+ {% if appendixid_alt %}<span class="title-second">{{ appendixid_alt}}: {{ appendixsubtitle }}</span>{% endif %}
38
+ {% if annexid %}<span class="title-first">{{ annexid}}: {{ annextitle }}</span><br/>{% endif %}
39
+ {% if annexid_alt %}<span class="title-second">{{ annexid_alt}}: {{ annexsubtitle }}</span>{% endif %}
40
+ {% else %}
41
+ <span class="title-first">{{ doctitle }}</span><br/>
42
+ <span class="title-second">{{ docsubtitle }}</span>
43
+ {% endif %}
44
+ </div>
45
+ </div>
46
+
47
+ {% if authors %}
48
+ <div class="coverpage-tc-name">
49
+ {% for item in authors %}
50
+ <span>{{item}} {% if authors_affiliations[forloop.index0] %}({{ authors_affiliations[forloop.index0] }}){% endif %}{% if forloop.last == false %}, {% endif %}{% endfor %}.
51
+ </div>
52
+ {% endif %}
53
+
54
+
55
+ </div>
56
+
57
+ <div class="wrapper-top-bottom"></div>
58
+
59
+ <div class="WordSection11">
60
+ <div class="coverpage-stage-block" >
61
+ <span class="coverpage-stage" id="{{ doctype | replace: ' ', '-' | downcase }}">{{org_abbrev}} {{ doctype_display }}</span>
62
+ </div>
63
+
64
+ <div class="coverpage-stage-block" >
65
+ <p><span class="coverpage-maturity" id="{{ stage | replace: ' ', '-' | downcase }}">{{ stage_display }}</span></p>
66
+ </div>
67
+
68
+ <div class="info-section">
69
+ <div class="copyright">
70
+ <div id="boilerplate-copyright-destination"/>
71
+ <div id="boilerplate-license-destination"/>
72
+ <div id="boilerplate-legal-destination"/>
73
+ <div id="boilerplate-feedback-destination"/>
74
+ </div>
75
+
76
+ <div class="rule"></div>
77
+ </div>
78
+ </div>
79
+
80
+
81
+ </header>
@@ -0,0 +1,983 @@
1
+ @charset "UTF-8";
2
+ /*
3
+ 0 CSS RESET
4
+ */
5
+ /* http://meyerweb.com/eric/tools/css/reset/
6
+ v2.0 | 20110126
7
+ License: none (public domain)
8
+ */
9
+ html, body, div, span, applet, object, iframe,
10
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
11
+ a, abbr, acronym, address, big, cite, code,
12
+ del, dfn, em, img, ins, kbd, q, s, samp,
13
+ small, strike, strong, sub, sup, tt, var,
14
+ b, u, i, center,
15
+ ol, ul, li,
16
+ fieldset, form, label, legend,
17
+ table, caption, tbody, tfoot, thead, tr, th, td,
18
+ article, aside, canvas, details, embed,
19
+ figure, figcaption, footer, header, hgroup,
20
+ menu, output, ruby, section, summary,
21
+ time, mark, audio, video {
22
+ margin: 0;
23
+ padding: 0; }
24
+
25
+ html, body, div, span, applet, object, iframe,
26
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
27
+ a, abbr, acronym, address, big, cite, code,
28
+ del, dfn, em, img, ins, kbd, q, s, samp,
29
+ small, strike, strong, sub, sup, tt, var,
30
+ b, u, i, center,
31
+ dl, dt, dd, ol, ul, li,
32
+ fieldset, form, label, legend,
33
+ table, caption, tbody, tfoot, thead, tr, th, td,
34
+ article, aside, canvas, details, embed,
35
+ figure, figcaption, footer, header, hgroup,
36
+ menu, nav, output, ruby, section, summary,
37
+ time, mark, audio, video {
38
+ border: 0;
39
+ font-size: 100%; }
40
+
41
+ html, body, div, span, applet, object, iframe,
42
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
43
+ a, abbr, acronym, address, big, cite, code,
44
+ del, dfn, em, img, ins, kbd, q, s, samp,
45
+ small, strike, strong, tt, var,
46
+ b, u, i, center,
47
+ dl, dd, ol, ul, li,
48
+ fieldset, form, label, legend,
49
+ table, caption, tbody, tfoot, thead, tr, th, td,
50
+ article, aside, canvas, details, embed,
51
+ figure, figcaption, footer, header, hgroup,
52
+ menu, nav, output, ruby, section, summary,
53
+ time, mark, audio, video {
54
+ vertical-align: baseline; }
55
+
56
+ html, body, div, span, applet, object, iframe,
57
+ p, blockquote,
58
+ a, abbr, acronym, address, big, cite,
59
+ del, dfn, em, img, ins, q, s,
60
+ small, strike, strong, sub, sup, var,
61
+ b, u, i, center,
62
+ dl, dt, dd, ol, ul, li,
63
+ fieldset, form, label, legend,
64
+ table, caption, tbody, tfoot, thead, tr, th, td,
65
+ article, aside, canvas, details, embed,
66
+ figure, figcaption, footer, header, hgroup,
67
+ menu, nav, output, ruby, section, summary,
68
+ time, mark, audio, video {
69
+ font-family: {{bodyfont}}; }
70
+
71
+ code, pre, tt, kbd, samp {
72
+ font-family: {{monospacefont}};
73
+ font-variant-ligatures: none; }
74
+
75
+ code *, pre *, tt *, kbd *, samp * {
76
+ font-family: {{monospacefont}} !important;
77
+ font-variant-ligatures: none; }
78
+
79
+ article, aside, details, figcaption, figure,
80
+ footer, header, hgroup, menu, nav, section {
81
+ display: block; }
82
+
83
+ table {
84
+ border-collapse: collapse;
85
+ border-spacing: 0; }
86
+
87
+ h1, h2, h3, h4, h5, h6 {
88
+ font-family: {{headerfont}}; }
89
+
90
+ blockquote, q {
91
+ quotes: none; }
92
+ blockquote:before, blockquote:after, q:before, q:after {
93
+ content: '';
94
+ content: none; }
95
+
96
+ .h2Annex {
97
+ font-family: {{headerfont}}; }
98
+
99
+ dl {
100
+ display: grid;
101
+ grid-template-columns: max-content auto; }
102
+ dl dt p, dl dd p {
103
+ margin-top: 0; }
104
+ dl dt {
105
+ grid-column-start: 1; }
106
+ dl dd {
107
+ grid-column-start: 2; }
108
+
109
+ b, strong {
110
+ font-weight: bold; }
111
+
112
+ div.document-stage-band, div.document-type-band {
113
+ background-color: #333333; }
114
+
115
+ a.FootnoteRef + a.FootnoteRef:before {
116
+ content: ", ";
117
+ vertical-align: super; }
118
+
119
+ .addition {
120
+ color: blue; }
121
+
122
+ .deletion {
123
+ color: red;
124
+ text-decoration: line-through; }
125
+
126
+ #brochure-band {
127
+ background-color: #0AC442; }
128
+
129
+ #brochure {
130
+ border-bottom: solid 3px #0AC442; }
131
+
132
+ #mise-en-pratique-band {
133
+ background-color: #540D6E; }
134
+
135
+ #mise-en-pratique {
136
+ border-bottom: solid 3px #540D6E; }
137
+
138
+ #rapport-band {
139
+ background-color: #D183C9; }
140
+
141
+ #rapport {
142
+ border-bottom: solid 3px #D183C9; }
143
+
144
+ #monographie-band {
145
+ background-color: #65AFFF; }
146
+
147
+ #monographie {
148
+ border-bottom: solid 3px #65AFFF; }
149
+
150
+ #guide-band {
151
+ background-color: #3A405A; }
152
+
153
+ #guide {
154
+ border-bottom: solid 3px #3A405A; }
155
+
156
+ #meeting-report-band {
157
+ background-color: #F26430; }
158
+
159
+ #meeting-report {
160
+ border-bottom: solid 3px #F26430; }
161
+
162
+ #technical-report-band {
163
+ background-color: #C84630; }
164
+
165
+ #technical-report {
166
+ border-bottom: solid 3px #C84630; }
167
+
168
+ #working-part-note-band {
169
+ background-color: #BFAE48; }
170
+
171
+ #working-part-note {
172
+ border-bottom: solid 3px #BFAE48; }
173
+
174
+ #strategy-band {
175
+ background-color: #BD9391; }
176
+
177
+ #strategy {
178
+ border-bottom: solid 3px #BD9391; }
179
+
180
+ #cipm-mra-band {
181
+ background-color: #004E64; }
182
+
183
+ #cipm-mra {
184
+ border-bottom: solid 3px #004E64; }
185
+
186
+ #resolution-band {
187
+ background-color: #53C170; }
188
+
189
+ #resolution {
190
+ border-bottom: solid 3px #53C170; }
191
+
192
+ #draft-proposal-band {
193
+ background-color: #39A0ED; }
194
+
195
+ #draft-proposal {
196
+ border-bottom: solid 3px #39A0ED; }
197
+
198
+ #draft-development-band {
199
+ background-color: #2D7393; }
200
+
201
+ #draft-development {
202
+ border-bottom: solid 3px #2D7393; }
203
+
204
+ #in-force-band {
205
+ background-color: #53C170; }
206
+
207
+ #in-force {
208
+ border-bottom: solid 3px #53C170; }
209
+
210
+ #retired-band {
211
+ background-color: #2E382E; }
212
+
213
+ #retired {
214
+ border-bottom: solid 3px #2E382E; }
215
+
216
+ /*
217
+ 1. HTML & Body
218
+ */
219
+ body {
220
+ margin-left: auto;
221
+ margin-right: auto;
222
+ max-width: 100%;
223
+ font-size: {{normalfontsize}};
224
+ font-weight: 300;
225
+ line-height: 1.4em;
226
+ color: #1d1d1d;
227
+ background-color: #ffffff;
228
+ font-weight: 400; }
229
+ body main {
230
+ margin: 0 3em 0 6em; }
231
+ body pre * {
232
+ font-family: {{bodyfont}} !important; }
233
+
234
+ /*
235
+ 2. Responsive navigation layout
236
+ */
237
+ #toc {
238
+ font-family: {{bodyfont}};
239
+ font-weight: 400; }
240
+ #toc ul {
241
+ margin: 0;
242
+ padding: 0;
243
+ list-style: none; }
244
+ #toc ul li a {
245
+ padding: 5px 10px; }
246
+ #toc ul a {
247
+ color: #485094;
248
+ text-decoration: none;
249
+ display: block; }
250
+ #toc ul a:hover {
251
+ box-shadow: none;
252
+ color: #485094; }
253
+ #toc .h2 {
254
+ padding-left: 30px; }
255
+ #toc .h3 {
256
+ padding-left: 50px; }
257
+ #toc .toc-active, #toc li:hover {
258
+ background: #C70039;
259
+ box-shadow: inset -5px 0px 10px -5px #C70039 !important; }
260
+ #toc .toc-active a, #toc li:hover a {
261
+ color: #485094; }
262
+ @media print {
263
+ #toc .toc-active, #toc li:hover {
264
+ background: white;
265
+ box-shadow: none !important; }
266
+ #toc .toc-active a {
267
+ color: #485094; }
268
+ #toc li:hover a {
269
+ color: black; } }
270
+ @media screen and (max-width: 768px) {
271
+ #toc {
272
+ padding: 0 1.5em;
273
+ overflow: visible; } }
274
+ #toc .toc-active a {
275
+ color: white; }
276
+ #toc .toc-active,
277
+ #toc li:hover {
278
+ box-shadow: none !important; }
279
+ #toc .toc-active a,
280
+ #toc li:hover a {
281
+ color: white;
282
+ background: none;
283
+ box-shadow: none; }
284
+ #toc li a {
285
+ text-transform: uppercase; }
286
+ #toc ul a:hover {
287
+ box-shadow: none;
288
+ color: white; }
289
+
290
+ @media screen and (min-width: 768px) {
291
+ nav {
292
+ position: fixed;
293
+ top: 0;
294
+ bottom: 0;
295
+ left: 0;
296
+ width: 323px;
297
+ font-size: 0.9em;
298
+ overflow: auto;
299
+ padding: 0 0 0 45px;
300
+ background-color: #f7f7f7; } }
301
+
302
+ @media print {
303
+ nav {
304
+ position: relative;
305
+ width: auto;
306
+ font-size: 0.9em;
307
+ overflow: auto;
308
+ padding: 0;
309
+ margin-right: 0;
310
+ background-color: white; } }
311
+
312
+ @media screen and (min-width: 768px) {
313
+ #toggle {
314
+ position: fixed;
315
+ height: 100%;
316
+ width: 30px;
317
+ background-color: #C70039;
318
+ color: white !important;
319
+ cursor: pointer;
320
+ z-index: 100; }
321
+ #toggle span {
322
+ text-align: center;
323
+ width: 100%;
324
+ position: absolute;
325
+ top: 50%;
326
+ transform: translate(0, -50%); } }
327
+
328
+ @media screen and (max-width: 768px) {
329
+ #toggle {
330
+ display: none; } }
331
+
332
+ @media print {
333
+ #toggle {
334
+ display: none; } }
335
+
336
+ @media screen and (min-width: 768px) {
337
+ .container {
338
+ padding-left: 360px; }
339
+ .rule.toc {
340
+ display: none; }
341
+ h1.toc-contents {
342
+ margin-top: 1em; }
343
+ ul#toc-list {
344
+ padding: 0;
345
+ margin: 0; } }
346
+
347
+ div.figure {
348
+ line-height: 1.6em;
349
+ padding: 1.5em;
350
+ margin: 2em 0 1em 0;
351
+ overflow: auto; }
352
+ div.figure .FigureTitle, div.figure .figure-title {
353
+ font-weight: 700;
354
+ font-size: 1em;
355
+ text-align: center; }
356
+ div.figure > img {
357
+ margin-left: auto;
358
+ margin-right: auto;
359
+ display: block;
360
+ max-width: 100%;
361
+ height: auto; }
362
+
363
+ /*
364
+ Document types + stages
365
+ */
366
+ .document-type-band {
367
+ left: 0;
368
+ top: 180px;
369
+ height: 100%;
370
+ position: fixed;
371
+ display: block;
372
+ z-index: 102; }
373
+ .document-type-band > :first-child {
374
+ position: relative;
375
+ width: 25px;
376
+ font-weight: 400;
377
+ color: white;
378
+ text-transform: uppercase;
379
+ font-size: 0.9em;
380
+ font-weight: 400;
381
+ letter-spacing: 0.05em;
382
+ margin: 0;
383
+ margin-left: 6px;
384
+ writing-mode: tb-rl;
385
+ -webkit-transform: rotate(180deg);
386
+ -moz-transform: rotate(180deg);
387
+ -o-transform: rotate(180deg);
388
+ white-space: nowrap;
389
+ display: block;
390
+ bottom: 0; }
391
+ @media print {
392
+ .document-type-band {
393
+ display: none; } }
394
+ .document-type-band .document-type {
395
+ top: 20px; }
396
+
397
+ .document-stage-band {
398
+ left: 0;
399
+ top: 0;
400
+ height: 100%;
401
+ position: fixed;
402
+ display: block;
403
+ z-index: 101;
404
+ box-shadow: -5px 0px 10px #1d1d1d; }
405
+ .document-stage-band > :first-child {
406
+ position: relative;
407
+ width: 25px;
408
+ font-weight: 400;
409
+ height: 150;
410
+ color: white;
411
+ text-transform: uppercase;
412
+ font-size: 0.9em;
413
+ font-weight: 400;
414
+ letter-spacing: 0.05em;
415
+ margin: 0;
416
+ margin-left: 6px;
417
+ writing-mode: tb-rl;
418
+ -webkit-transform: rotate(180deg);
419
+ -moz-transform: rotate(180deg);
420
+ -o-transform: rotate(180deg);
421
+ white-space: nowrap;
422
+ display: block;
423
+ bottom: 0; }
424
+ @media print {
425
+ .document-stage-band {
426
+ display: none; } }
427
+ .document-stage-band > :first-child {
428
+ font-weight: 300; }
429
+
430
+ p.document-stage {
431
+ position: relative;
432
+ width: 25px;
433
+ font-weight: 400;
434
+ height: 150;
435
+ color: white;
436
+ text-transform: uppercase;
437
+ font-size: 0.9em;
438
+ font-weight: 400;
439
+ letter-spacing: 0.05em;
440
+ margin: 0;
441
+ margin-left: 6px;
442
+ writing-mode: tb-rl;
443
+ -webkit-transform: rotate(180deg);
444
+ -moz-transform: rotate(180deg);
445
+ -o-transform: rotate(180deg);
446
+ white-space: nowrap;
447
+ display: block;
448
+ bottom: 0; }
449
+
450
+ #governance-band p.document-type {
451
+ height: 230px !important; }
452
+
453
+ p.document-stage {
454
+ font-weight: 300;
455
+ height: 160px; }
456
+
457
+ .coverpage-maturity {
458
+ font-family: {{bodyfont}};
459
+ font-weight: 400;
460
+ font-size: 1em;
461
+ margin: 0 0 2em 0;
462
+ text-transform: uppercase; }
463
+
464
+ /*
465
+ 3. TYPOGRAPHY
466
+ */
467
+ /*
468
+ 3.1 Titles
469
+ */
470
+ h1, h2, h3, h4, h5, h6 {
471
+ font-family: {{headerfont}};
472
+ color: #C70039;
473
+ font-weight: 300;
474
+ margin-top: 1.6em;
475
+ margin-bottom: 0.3em; }
476
+
477
+ h1 {
478
+ font-size: 1.6em;
479
+ text-transform: uppercase;
480
+ margin-top: 2em; }
481
+
482
+ h1#content {
483
+ margin-top: 2em; }
484
+
485
+ h2 {
486
+ margin-top: 1.3em;
487
+ font-size: 1.3em;
488
+ font-weight: 400; }
489
+
490
+ h3 {
491
+ margin-top: 1.1em;
492
+ font-size: 1.1em;
493
+ font-weight: 100; }
494
+
495
+ .TermNum, .Terms, .AltTerms {
496
+ color: #C70039;
497
+ font-weight: 100; }
498
+
499
+ h2.TermNum {
500
+ margin-bottom: 0; }
501
+
502
+ p.Terms {
503
+ font-size: 1.1em;
504
+ line-height: 1.5em;
505
+ margin: 0; }
506
+
507
+ p.AltTerms {
508
+ /*
509
+ font-style: italic;
510
+ */
511
+ font-size: 1.1em;
512
+ margin: 0; }
513
+
514
+ /*
515
+ 3.2 Links
516
+ */
517
+ a, a:visited {
518
+ text-decoration: none;
519
+ color: #485094; }
520
+
521
+ a:hover {
522
+ color: white;
523
+ background: #C70039;
524
+ box-shadow: 3px 0 0 #C70039, -3px 0 0 #C70039; }
525
+
526
+ ::selection,
527
+ ::-moz-selection {
528
+ background: #C70039;
529
+ color: white; }
530
+
531
+ /*
532
+ 3.3 Lists
533
+ */
534
+ ul, ol {
535
+ margin-left: 1.2em; }
536
+
537
+ ul li {
538
+ list-style: none; }
539
+
540
+ ul li:before {
541
+ content: "—";
542
+ display: inline-block;
543
+ width: 1em;
544
+ margin-left: -1.2em; }
545
+
546
+ ul li p {
547
+ display: inline; }
548
+
549
+ ul li:first-child {
550
+ margin-top: 1em; }
551
+
552
+ #toc-list ul {
553
+ margin-bottom: 0.25em; }
554
+
555
+ #toc-list li {
556
+ list-style-type: none; }
557
+
558
+ #toc li:before {
559
+ content: " ";
560
+ display: none; }
561
+
562
+ /* https://github.com/metanorma/metanorma-bipm/issues/47 */
563
+ ol[class="alphabet"] {
564
+ counter-reset: alphabet; }
565
+
566
+ ol[class="roman"] {
567
+ counter-reset: roman; }
568
+
569
+ ol[class="alphabet"] ol[class="alphabet"] {
570
+ counter-reset: none; }
571
+
572
+ ol[class="alphabet"] > li {
573
+ list-style: none;
574
+ position: relative; }
575
+
576
+ ol[class="alphabet"] ol[class="alphabet"] > li {
577
+ list-style: inherit; }
578
+
579
+ ol[class="alphabet"] > li:before {
580
+ counter-increment: alphabet;
581
+ content: counter(alphabet, lower-alpha) ") ";
582
+ position: absolute;
583
+ left: -1.4em; }
584
+
585
+ ol[class="alphabet"] ol[class="alphabet"] > li:before {
586
+ counter-increment: none;
587
+ content: initial; }
588
+
589
+ ol[class="roman"] ol[class="roman"] {
590
+ counter-reset: none; }
591
+
592
+ ol[class="roman"] > li {
593
+ list-style: none;
594
+ position: relative; }
595
+
596
+ ol[class="roman"] ol[class="roman"] > li {
597
+ list-style: inherit; }
598
+
599
+ ol[class="roman"] > li:before {
600
+ counter-increment: roman;
601
+ content: "(" counter(roman, lower-roman) ") ";
602
+ position: absolute;
603
+ left: -2.0em; }
604
+
605
+ ol[class="roman"] ol[class="roman"] > li:before {
606
+ counter-increment: none;
607
+ content: initial; }
608
+
609
+ /*
610
+ 3.4 Rules
611
+ */
612
+ .rule {
613
+ width: 100%;
614
+ height: 1px;
615
+ background-color: #0e1a85;
616
+ margin: 2em 0; }
617
+
618
+ /*
619
+ 3.5 Bibliograhy
620
+ */
621
+ p.Biblio, p.NormRef {
622
+ margin-top: 1em;
623
+ margin-left: 2em; }
624
+
625
+ /*
626
+ 3.6 Source Code + figures
627
+ */
628
+ .figure,
629
+ pre,
630
+ .pseudocode {
631
+ background-color: #f7f7f7;
632
+ font-size: {{monospacefontsize}};
633
+ line-height: 1.6em;
634
+ padding: 1.5em;
635
+ margin: 2em 0 1em 0;
636
+ overflow: auto; }
637
+ .figure .SourceTitle,
638
+ pre .SourceTitle,
639
+ .pseudocode .SourceTitle {
640
+ font-weight: 700;
641
+ font-size: 1em;
642
+ text-align: center; }
643
+
644
+ pre {
645
+ font-family: {{monospacefont}};
646
+ font-variant-ligatures: none; }
647
+
648
+ .AdmonitionTitle {
649
+ font-weight: 700;
650
+ font-size: 1em;
651
+ text-align: center; }
652
+
653
+ .RecommendationTitle {
654
+ font-weight: 700;
655
+ font-size: 1em;
656
+ text-align: center; }
657
+
658
+ .FigureTitle,
659
+ .SourceTitle {
660
+ font-weight: 700;
661
+ font-size: 1em;
662
+ text-align: center; }
663
+
664
+ /*
665
+ 3.7 Notes
666
+ */
667
+ .Note {
668
+ background-color: #fff495;
669
+ color: #47430c;
670
+ padding: 1.2em;
671
+ margin: 1em 0 1em 0; }
672
+ .Note p {
673
+ margin: 0; }
674
+
675
+ /*
676
+ 3.8 Examples
677
+ */
678
+ .example {
679
+ background-color: #e1eef1;
680
+ padding: 1.2em;
681
+ margin: 2em 0 1em 0;
682
+ text-align: left;
683
+ color: #424242;
684
+ padding-left: 2.7em; }
685
+ .example p {
686
+ margin: 0; }
687
+ .example .example-title {
688
+ font-weight: 700;
689
+ text-transform: uppercase;
690
+ margin-left: -1.5em; }
691
+ .example .example-title {
692
+ margin-top: 0; }
693
+ .example pre,
694
+ .example .pseudocode {
695
+ background: none; }
696
+
697
+ /*
698
+ 3.9 Tables
699
+ */
700
+ table {
701
+ width: 100%;
702
+ font-weight: 300;
703
+ margin: 1em 0 2em 0;
704
+ margin-left: auto;
705
+ margin-right: auto;
706
+ padding-right: 2em; }
707
+ table, table th, table td {
708
+ border: 1px solid black;
709
+ font-size: 0.95em; }
710
+ table th, table td {
711
+ padding: 1em; }
712
+ table td.header {
713
+ font-weigth: 400; }
714
+
715
+ p.TableTitle {
716
+ text-align: center;
717
+ margin-top: 2.5em;
718
+ font-weight: 400; }
719
+
720
+ /*
721
+ 3.10 Footnotes
722
+ */
723
+ a.footnote-number {
724
+ vertical-align: super;
725
+ font-size: 0.8em; }
726
+
727
+ .footnote {
728
+ font-size: {{footnotefontsize}}; }
729
+
730
+ /*
731
+ 3.11 Blockquotes
732
+ */
733
+ .Quote {
734
+ background-color: #f2f2f2;
735
+ font-style: italic;
736
+ width: 80%;
737
+ padding: 1.5em;
738
+ margin-top: 2em;
739
+ margin-left: auto;
740
+ margin-right: auto; }
741
+
742
+ /*
743
+ 3.12 Formulas
744
+ */
745
+ .formula {
746
+ background-color: #f7f7f7;
747
+ padding: 1.5em;
748
+ margin-top: 2em;
749
+ text-align: center; }
750
+
751
+ /*
752
+ 3.13 Contact Info
753
+ */
754
+ .contact-info {
755
+ padding: 2em;
756
+ margin-top: 5em;
757
+ width: 250px;
758
+ text-align: left;
759
+ border: #C70039 solid 2px;
760
+ color: #C70039 !important;
761
+ border-radius: 25px; }
762
+
763
+ .contact-info a,
764
+ .contact-info a:hover {
765
+ color: #C70039; }
766
+
767
+ .contact-info p, .contact-info a {
768
+ font-family: {{monospacefont}};
769
+ font-weight: 400; }
770
+
771
+ .contact-info .name {
772
+ font-weight: 700;
773
+ font-size: 1.2em;
774
+ margin-bottom: 0; }
775
+
776
+ .contact-info .address {
777
+ font-size: 1em;
778
+ line-height: 1.3em;
779
+ margin-top: 0; }
780
+
781
+ /*
782
+ Keywords
783
+ */
784
+ span.keyword {
785
+ font-weight: 600; }
786
+
787
+ /*
788
+ Paragraphs
789
+ */
790
+ p {
791
+ margin-top: 1em;
792
+ margin-bottom: 1em; }
793
+
794
+ h2 p {
795
+ display: inline; }
796
+
797
+ /*
798
+ 4.0 Page header
799
+ */
800
+ /*
801
+ 4.1 Top Logo
802
+ */
803
+ .icon-svg {
804
+ width: 100%;
805
+ color: #5ecf86; }
806
+
807
+ .wrapper-top {
808
+ background: #C70039;
809
+ color: #ffffff;
810
+ padding: 2em 0;
811
+ width: 100%; }
812
+
813
+ .wrapper-top-bottom {
814
+ width: 0;
815
+ height: 0;
816
+ border-top: 100px solid #C70039;
817
+ position: absolute; }
818
+
819
+ .doc-number {
820
+ font-size: 0.5em;
821
+ font-family: {{bodyfont}}; }
822
+
823
+ .coverpage-title {
824
+ padding-bottom: 0.5em;
825
+ font-family: {{headerfont}};
826
+ font-size: 1.2em;
827
+ line-height: 1.5em;
828
+ font-weight: 100;
829
+ padding-left: 1em;
830
+ padding-right: 1em;
831
+ text-transform: uppercase; }
832
+
833
+ .WordSection11 {
834
+ padding: 0 2em 0 3em; }
835
+
836
+ .info-section {
837
+ padding: 0 2em 0 5em; }
838
+
839
+ .prefatory-section {
840
+ padding: 0 3em 0 6em; }
841
+
842
+ .zzSTDTitle1, .MsoCommentText {
843
+ display: none; }
844
+
845
+ .coverpage {
846
+ text-align: center;
847
+ padding-left: 1.5em; }
848
+
849
+ .coverpage-logo span, .coverpage-tc-name span {
850
+ font-family: {{bodyfont}};
851
+ text-transform: none;
852
+ font-weight: 300; }
853
+
854
+ .coverpage-tc-name {
855
+ font-size: 1.2em;
856
+ line-height: 1.2em;
857
+ margin: 0.25em 0; }
858
+
859
+ /*
860
+ 4.2 Document Identity
861
+ */
862
+ .coverpage-doc-identity {
863
+ font-size: 2em;
864
+ line-height: 2em; }
865
+
866
+ .coverpage-title .title-second {
867
+ font-size: 0.8em; }
868
+
869
+ .coverpage-title .title-third {
870
+ font-size: 0.6em; }
871
+
872
+ .coverpage-stage-block {
873
+ font-family: {{bodyfont}};
874
+ font-weight: 600;
875
+ font-size: 1.25em;
876
+ margin: 2em 0em 2em 0em;
877
+ text-transform: uppercase; }
878
+
879
+ /*
880
+ 4.3 Draft Warning
881
+ */
882
+ .coverpage-warning {
883
+ border: #f36f36 solid 2px;
884
+ color: #f36f36 !important;
885
+ margin: 1em 2em;
886
+ color: #485094;
887
+ padding: 2em 1em 1em 1em;
888
+ border-radius: 25px; }
889
+
890
+ .coverpage-warning .title {
891
+ font-family: {{headerfont}};
892
+ font-weight: 300;
893
+ text-transform: uppercase;
894
+ font-size: 1.2em; }
895
+
896
+ /*
897
+ 4.4 Copyright
898
+ */
899
+ .copyright {
900
+ padding: 1em;
901
+ font-size: 0.9em;
902
+ text-align: left; }
903
+
904
+ /* .copyright .name, .copyright .address {color: #485094;} */
905
+ /*
906
+ 5.0 Other styles
907
+ */
908
+ /*
909
+ To top button
910
+ */
911
+ #myBtn {
912
+ font-family: {{monospacefont}};
913
+ font-variant-ligatures: none;
914
+ display: none;
915
+ position: fixed;
916
+ bottom: 20px;
917
+ right: 30px;
918
+ z-index: 99;
919
+ font-size: 12px;
920
+ border: none;
921
+ outline: none;
922
+ background-color: #1f8ca0;
923
+ opacity: 0.15;
924
+ color: white;
925
+ cursor: pointer;
926
+ padding: 10px 15px 10px 15px;
927
+ border-radius: 4px;
928
+ text-transform: uppercase; }
929
+ #myBtn:hover {
930
+ opacity: 1; }
931
+ @media print {
932
+ #myBtn {
933
+ display: none; } }
934
+ #myBtn a.anchorjs-link:hover {
935
+ background: none;
936
+ color: #485094;
937
+ box-shadow: none; }
938
+
939
+ @page {
940
+ margin: 2cm 1cm; }
941
+
942
+ @media print {
943
+ .document-info, nav, .copyright {
944
+ page-break-before: always; }
945
+ h1, h2, h3, h4 {
946
+ page-break-after: avoid;
947
+ margin-top: 1.2em; }
948
+ .note, .figure, pre, .pseudocode, table {
949
+ page-break-inside: avoid; }
950
+ .info-section {
951
+ display: none; }
952
+ .coverpage {
953
+ height: 23cm; }
954
+ .wrapper-top {
955
+ top: 0;
956
+ padding-top: 4cm;
957
+ padding-bottom: 4cm; }
958
+ .wrapper-top-bottom {
959
+ margin-top: -5px; }
960
+ #toggle, .document-stage-band,
961
+ .document-type-band, button#myBtn {
962
+ display: none; }
963
+ .container {
964
+ padding-left: 0; }
965
+ h1.content {
966
+ margin-top: 2em;
967
+ line-height: 2.5em; }
968
+ h1 {
969
+ font-size: 1.5em;
970
+ line-height: 1.5; }
971
+ h2 {
972
+ font-size: 1.2em; }
973
+ h3 {
974
+ font-size: 1em; }
975
+ .Note {
976
+ background-color: #fff495;
977
+ color: #47430c;
978
+ padding: 5px;
979
+ margin: 2em 0 1em 0; }
980
+ .Note p {
981
+ padding: 0 5px 0 5px; }
982
+ .wrapper-top-bottom {
983
+ display: none; } }