metanorma-ribose 1.5.2 → 1.6.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6418a66856b9ccb076c2654f193873c79f829d22eadeca0b6e5cc5b50b9a7830
4
- data.tar.gz: 26b482656fe8de3a94a4a91d8abb9662cad1fcf9499adec68969fe36525f1cf1
3
+ metadata.gz: 99c74e5ae8d98c7b4a6766eaed105a0d0daee7d23d4ce88f37b5a36b7814c226
4
+ data.tar.gz: b75ee656be1f45ea2dcbb55974d3f11d29439cba1a92f441d35f50f162e4e272
5
5
  SHA512:
6
- metadata.gz: 61a9e19b996152a41c1df228604a38472d653baaf73677af1f76f8e7ce049cb48c889ff1cd7153ec4584d8a06fba005431df87e5d7def9bbb42a97d7a2b8f0ab
7
- data.tar.gz: dbd9a340651d09cb3df2ba1e211b90e6f3cc80af175aa4180c2c8b7921a429e85881404cd58f26047558d818b0848eb788882cfcc6e5ae1d38cd091117472cb9
6
+ metadata.gz: 22b4ee12499083f505a8d0fcd3fcf3741fc9cff6ce68d574c1861a115de386f251db3a7dc55cd87a94b4d909b1f830222ee4b4b538a018622d4e375c920fa15e
7
+ data.tar.gz: ef0b984bd1902cae0ce17ad99d449f34543a798d50850854e07181529f61118327ea7d0e3aacec094f14a58872a97d7539f3626392db2a156d7e564d3cea6c5d
@@ -39,7 +39,7 @@ jobs:
39
39
  polling_interval_seconds: 5
40
40
  timeout_minutes: 5
41
41
  max_attempts: 3
42
- command: sudo bash -c "curl -L https://github.com/metanorma/plantuml-install/raw/master/ubuntu.sh | bash"
42
+ command: sudo apt-get update -y && sudo bash -c "curl -L https://github.com/metanorma/plantuml-install/raw/master/ubuntu.sh | bash"
43
43
  - name: Run specs
44
44
  run: |
45
45
  bundle exec rake
@@ -158,7 +158,17 @@
158
158
  <data type="ID"/>
159
159
  </attribute>
160
160
  <oneOrMore>
161
- <ref name="paragraph"/>
161
+ <choice>
162
+ <ref name="formula"/>
163
+ <ref name="ul"/>
164
+ <ref name="ol"/>
165
+ <ref name="dl"/>
166
+ <ref name="quote"/>
167
+ <ref name="sourcecode"/>
168
+ <ref name="paragraph"/>
169
+ <ref name="table"/>
170
+ <ref name="figure"/>
171
+ </choice>
162
172
  </oneOrMore>
163
173
  </element>
164
174
  </define>
@@ -402,6 +412,16 @@
402
412
  </choice>
403
413
  </attribute>
404
414
  </optional>
415
+ <optional>
416
+ <attribute name="valign">
417
+ <choice>
418
+ <value>top</value>
419
+ <value>middle</value>
420
+ <value>bottom</value>
421
+ <value>baseline</value>
422
+ </choice>
423
+ </attribute>
424
+ </optional>
405
425
  <choice>
406
426
  <zeroOrMore>
407
427
  <ref name="TextElement"/>
@@ -429,6 +449,16 @@
429
449
  </choice>
430
450
  </attribute>
431
451
  </optional>
452
+ <optional>
453
+ <attribute name="valign">
454
+ <choice>
455
+ <value>top</value>
456
+ <value>middle</value>
457
+ <value>bottom</value>
458
+ <value>baseline</value>
459
+ </choice>
460
+ </attribute>
461
+ </optional>
432
462
  <choice>
433
463
  <zeroOrMore>
434
464
  <ref name="TextElement"/>
@@ -13,8 +13,7 @@ module Asciidoctor
13
13
  register_for "ribose"
14
14
 
15
15
  def sectiontype(node, level = true)
16
- ret = node&.attr("heading")&.downcase ||
17
- node.title.gsub(/<[^>]+>/, "").downcase
16
+ ret = sectiontype1(node)
18
17
  ret1 = sectiontype_streamline(ret)
19
18
  return ret1 if "symbols and abbreviated terms" == ret1
20
19
  return ret1 if "executive summary" == ret1
@@ -38,7 +37,7 @@ module Asciidoctor
38
37
  end
39
38
 
40
39
  def clause_parse(attrs, xml, node)
41
- sectiontype(node) == "executive summary" and
40
+ sectiontype1(node) == "executive summary" and
42
41
  return executivesummary_parse(attrs, xml, node)
43
42
  super
44
43
  end
@@ -42,8 +42,11 @@
42
42
  </define>
43
43
  <define name="xref">
44
44
  <element name="xref">
45
+ <!-- attribute target { xsd:IDREF }, -->
45
46
  <attribute name="target">
46
- <data type="IDREF"/>
47
+ <data type="string">
48
+ <param name="pattern">\i\c*|\c+#\c+</param>
49
+ </data>
47
50
  </attribute>
48
51
  <optional>
49
52
  <attribute name="type">
@@ -578,6 +581,8 @@
578
581
  <ref name="ol"/>
579
582
  <ref name="dl"/>
580
583
  <ref name="formula"/>
584
+ <ref name="quote"/>
585
+ <ref name="sourcecode"/>
581
586
  </choice>
582
587
  </oneOrMore>
583
588
  </element>
@@ -661,6 +666,16 @@
661
666
  </choice>
662
667
  </attribute>
663
668
  </optional>
669
+ <optional>
670
+ <attribute name="valign">
671
+ <choice>
672
+ <value>top</value>
673
+ <value>middle</value>
674
+ <value>bottom</value>
675
+ <value>baseline</value>
676
+ </choice>
677
+ </attribute>
678
+ </optional>
664
679
  <choice>
665
680
  <zeroOrMore>
666
681
  <choice>
@@ -697,6 +712,16 @@
697
712
  </choice>
698
713
  </attribute>
699
714
  </optional>
715
+ <optional>
716
+ <attribute name="valign">
717
+ <choice>
718
+ <value>top</value>
719
+ <value>middle</value>
720
+ <value>bottom</value>
721
+ <value>baseline</value>
722
+ </choice>
723
+ </attribute>
724
+ </optional>
700
725
  <choice>
701
726
  <zeroOrMore>
702
727
  <choice>
@@ -922,6 +947,9 @@
922
947
  <optional>
923
948
  <attribute name="script"/>
924
949
  </optional>
950
+ <optional>
951
+ <attribute name="type"/>
952
+ </optional>
925
953
  <optional>
926
954
  <attribute name="obligation">
927
955
  <choice>
@@ -961,9 +989,6 @@
961
989
  </define>
962
990
  <define name="content-subsection">
963
991
  <element name="clause">
964
- <optional>
965
- <attribute name="type"/>
966
- </optional>
967
992
  <ref name="Content-Section"/>
968
993
  </element>
969
994
  </define>
@@ -992,6 +1017,9 @@
992
1017
  </choice>
993
1018
  </attribute>
994
1019
  </optional>
1020
+ <optional>
1021
+ <attribute name="type"/>
1022
+ </optional>
995
1023
  <optional>
996
1024
  <ref name="section-title"/>
997
1025
  </optional>
@@ -1011,9 +1039,6 @@
1011
1039
  </define>
1012
1040
  <define name="clause">
1013
1041
  <element name="clause">
1014
- <optional>
1015
- <attribute name="type"/>
1016
- </optional>
1017
1042
  <ref name="Clause-Section"/>
1018
1043
  </element>
1019
1044
  </define>
@@ -1042,18 +1067,24 @@
1042
1067
  </choice>
1043
1068
  </attribute>
1044
1069
  </optional>
1070
+ <optional>
1071
+ <attribute name="type"/>
1072
+ </optional>
1045
1073
  <optional>
1046
1074
  <ref name="section-title"/>
1047
1075
  </optional>
1048
1076
  <group>
1049
- <group>
1050
- <zeroOrMore>
1051
- <ref name="BasicBlock"/>
1052
- </zeroOrMore>
1053
- <zeroOrMore>
1054
- <ref name="note"/>
1055
- </zeroOrMore>
1056
- </group>
1077
+ <choice>
1078
+ <group>
1079
+ <zeroOrMore>
1080
+ <ref name="BasicBlock"/>
1081
+ </zeroOrMore>
1082
+ <zeroOrMore>
1083
+ <ref name="note"/>
1084
+ </zeroOrMore>
1085
+ </group>
1086
+ <ref name="amend"/>
1087
+ </choice>
1057
1088
  <zeroOrMore>
1058
1089
  <choice>
1059
1090
  <ref name="clause-subsection"/>
@@ -1180,6 +1211,9 @@
1180
1211
  <optional>
1181
1212
  <attribute name="script"/>
1182
1213
  </optional>
1214
+ <optional>
1215
+ <attribute name="type"/>
1216
+ </optional>
1183
1217
  <optional>
1184
1218
  <attribute name="obligation">
1185
1219
  <choice>
@@ -1501,4 +1535,79 @@
1501
1535
  <ref name="CitationType"/>
1502
1536
  </element>
1503
1537
  </define>
1538
+ <define name="amend">
1539
+ <element name="amend">
1540
+ <optional>
1541
+ <attribute name="id">
1542
+ <data type="ID"/>
1543
+ </attribute>
1544
+ </optional>
1545
+ <attribute name="change">
1546
+ <choice>
1547
+ <value>add</value>
1548
+ <value>modify</value>
1549
+ <value>delete</value>
1550
+ </choice>
1551
+ </attribute>
1552
+ <optional>
1553
+ <attribute name="path"/>
1554
+ </optional>
1555
+ <optional>
1556
+ <attribute name="path_end"/>
1557
+ </optional>
1558
+ <optional>
1559
+ <attribute name="title"/>
1560
+ </optional>
1561
+ <optional>
1562
+ <element name="location">
1563
+ <zeroOrMore>
1564
+ <ref name="locality"/>
1565
+ </zeroOrMore>
1566
+ </element>
1567
+ </optional>
1568
+ <zeroOrMore>
1569
+ <ref name="autonumber"/>
1570
+ </zeroOrMore>
1571
+ <optional>
1572
+ <element name="description">
1573
+ <zeroOrMore>
1574
+ <ref name="BasicBlock"/>
1575
+ </zeroOrMore>
1576
+ </element>
1577
+ </optional>
1578
+ <optional>
1579
+ <element name="newcontent">
1580
+ <zeroOrMore>
1581
+ <ref name="BasicBlock"/>
1582
+ </zeroOrMore>
1583
+ </element>
1584
+ </optional>
1585
+ <optional>
1586
+ <element name="description">
1587
+ <zeroOrMore>
1588
+ <ref name="BasicBlock"/>
1589
+ </zeroOrMore>
1590
+ </element>
1591
+ </optional>
1592
+ </element>
1593
+ </define>
1594
+ <define name="autonumber">
1595
+ <element name="autonumber">
1596
+ <attribute name="type">
1597
+ <choice>
1598
+ <value>requirement</value>
1599
+ <value>recommendation</value>
1600
+ <value>permission</value>
1601
+ <value>table</value>
1602
+ <value>figure</value>
1603
+ <value>admonition</value>
1604
+ <value>formula</value>
1605
+ <value>sourcecode</value>
1606
+ <value>example</value>
1607
+ <value>note</value>
1608
+ </choice>
1609
+ </attribute>
1610
+ <text/>
1611
+ </element>
1612
+ </define>
1504
1613
  </grammar>
@@ -1,21 +1,6 @@
1
1
  module IsoDoc
2
2
  module Ribose
3
3
  module BaseConvert
4
- def metadata_init(lang, script, labels)
5
- @meta = Metadata.new(lang, script, labels)
6
- end
7
-
8
- def xref_init(lang, script, klass, labels, options)
9
- @xrefs = Xref.new(lang, script, klass, labels, options)
10
- end
11
-
12
- def annex_name(annex, name, div)
13
- div.h1 **{ class: "Annex" } do |t|
14
- t << "#{@xrefs.anchor(annex['id'], :label)}<br/><br/>"
15
- name&.children&.each { |c2| parse(c2, t) }
16
- end
17
- end
18
-
19
4
  def executivesummary docxml, out
20
5
  f = docxml.at(ns("//executivesummary")) || return
21
6
  title_attr = { class: "IntroTitle" }
@@ -28,6 +13,11 @@ module IsoDoc
28
13
  end
29
14
  end
30
15
 
16
+ def is_clause?(name)
17
+ return true if name == "executivesummary"
18
+ super
19
+ end
20
+
31
21
  def clausedelim
32
22
  ""
33
23
  end
@@ -0,0 +1,1004 @@
1
+ /*
2
+ 0 CSS RESET
3
+ */
4
+ /* http://meyerweb.com/eric/tools/css/reset/
5
+ v2.0 | 20110126
6
+ License: none (public domain)
7
+ */
8
+ html, body, div, span, applet, object, iframe,
9
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
10
+ a, abbr, acronym, address, big, cite, code,
11
+ del, dfn, em, img, ins, kbd, q, s, samp,
12
+ small, strike, strong, sub, sup, tt, var,
13
+ b, u, i, center,
14
+ ol, ul, li,
15
+ fieldset, form, label, legend,
16
+ table, caption, tbody, tfoot, thead, tr, th, td,
17
+ article, aside, canvas, details, embed,
18
+ figure, figcaption, footer, header, hgroup,
19
+ menu, nav, output, ruby, section, summary,
20
+ time, mark, audio, video {
21
+ margin: 0;
22
+ padding: 0; }
23
+
24
+ html, body, div, span, applet, object, iframe,
25
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
26
+ a, abbr, acronym, address, big, cite, code,
27
+ del, dfn, em, img, ins, kbd, q, s, samp,
28
+ small, strike, strong, sub, sup, tt, var,
29
+ b, u, i, center,
30
+ dl, dt, dd, ol, ul, li,
31
+ fieldset, form, label, legend,
32
+ table, caption, tbody, tfoot, thead, tr, th, td,
33
+ article, aside, canvas, details, embed,
34
+ figure, figcaption, footer, header, hgroup,
35
+ menu, nav, output, ruby, section, summary,
36
+ time, mark, audio, video {
37
+ border: 0;
38
+ font-size: 100%; }
39
+
40
+ html, body, div, span, applet, object, iframe,
41
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
42
+ a, abbr, acronym, address, big, cite, code,
43
+ del, dfn, em, img, ins, kbd, q, s, samp,
44
+ small, strike, strong, tt, var,
45
+ b, u, i, center,
46
+ dl, dd, ol, ul, li,
47
+ fieldset, form, label, legend,
48
+ table, caption, tbody, tfoot, thead, tr, th, td,
49
+ article, aside, canvas, details, embed,
50
+ figure, figcaption, footer, header, hgroup,
51
+ menu, nav, output, ruby, section, summary,
52
+ time, mark, audio, video {
53
+ vertical-align: baseline; }
54
+
55
+ html, body, div, span, applet, object, iframe,
56
+ p, blockquote,
57
+ a, abbr, acronym, address, big, cite,
58
+ del, dfn, em, img, ins, q, s,
59
+ small, strike, strong, sub, sup, var,
60
+ b, u, i, center,
61
+ dl, dt, dd, ol, ul, li,
62
+ fieldset, form, label, legend,
63
+ table, caption, tbody, tfoot, thead, tr, th, td,
64
+ article, aside, canvas, details, embed,
65
+ figure, figcaption, footer, header, hgroup,
66
+ menu, nav, output, ruby, section, summary,
67
+ time, mark, audio, video {
68
+ font-family: {{bodyfont}}; }
69
+
70
+ code, pre, tt, kbd, samp {
71
+ font-family: {{monospacefont}};
72
+ font-variant-ligatures: none; }
73
+
74
+ code *, pre *, tt *, kbd *, samp * {
75
+ font-family: {{monospacefont}} !important;
76
+ font-variant-ligatures: none; }
77
+
78
+ article, aside, details, figcaption, figure,
79
+ footer, header, hgroup, menu, nav, section {
80
+ display: block; }
81
+
82
+ table {
83
+ border-collapse: collapse;
84
+ border-spacing: 0; }
85
+
86
+ h1, h2, h3, h4, h5, h6 {
87
+ font-family: {{headerfont}}; }
88
+
89
+ blockquote, q {
90
+ quotes: none; }
91
+ blockquote:before, blockquote:after, q:before, q:after {
92
+ content: '';
93
+ content: none; }
94
+
95
+ .h2Annex {
96
+ font-family: {{headerfont}}; }
97
+
98
+ dl {
99
+ display: grid;
100
+ grid-template-columns: max-content auto; }
101
+ dl dt p, dl dd p {
102
+ margin-top: 0; }
103
+ dl dt {
104
+ grid-column-start: 1; }
105
+ dl dd {
106
+ grid-column-start: 2; }
107
+
108
+ b, strong {
109
+ font-weight: bold; }
110
+
111
+ div.document-stage-band, div.document-type-band {
112
+ background-color: #333333; }
113
+
114
+ #standard-band {
115
+ background-color: #0AC442; }
116
+
117
+ #standard {
118
+ border-bottom: solid 3px #0AC442; }
119
+
120
+ #directive-band {
121
+ background-color: #540D6E; }
122
+
123
+ #directive {
124
+ border-bottom: solid 3px #540D6E; }
125
+
126
+ #guide-band {
127
+ background-color: #D183C9; }
128
+
129
+ #guide {
130
+ border-bottom: solid 3px #D183C9; }
131
+
132
+ #specification-band {
133
+ background-color: #65AFFF; }
134
+
135
+ #specification {
136
+ border-bottom: solid 3px #65AFFF; }
137
+
138
+ #report-band {
139
+ background-color: #3A405A; }
140
+
141
+ #report {
142
+ border-bottom: solid 3px #3A405A; }
143
+
144
+ #amendment-band {
145
+ background-color: #F26430; }
146
+
147
+ #amendment {
148
+ border-bottom: solid 3px #F26430; }
149
+
150
+ #corrigendum-band {
151
+ background-color: #C84630; }
152
+
153
+ #corrigendum {
154
+ border-bottom: solid 3px #C84630; }
155
+
156
+ #administrative-band {
157
+ background-color: #BFAE48; }
158
+
159
+ #administrative {
160
+ border-bottom: solid 3px #BFAE48; }
161
+
162
+ #advisory-band {
163
+ background-color: #BD9391; }
164
+
165
+ #advisory {
166
+ border-bottom: solid 3px #BD9391; }
167
+
168
+ #proposal-band {
169
+ background-color: #39A0ED; }
170
+
171
+ #proposal {
172
+ border-bottom: solid 3px #39A0ED; }
173
+
174
+ #working-draft-band {
175
+ background-color: #2D7393; }
176
+
177
+ #working-draft {
178
+ border-bottom: solid 3px #2D7393; }
179
+
180
+ #committee-draft-band {
181
+ background-color: #2A6B7C; }
182
+
183
+ #committee-draft {
184
+ border-bottom: solid 3px #2A6B7C; }
185
+
186
+ #draft-standard-band {
187
+ background-color: #1C7F7A; }
188
+
189
+ #draft-standard {
190
+ border-bottom: solid 3px #1C7F7A; }
191
+
192
+ #final-draft-band {
193
+ background-color: #53C170; }
194
+
195
+ #final-draft {
196
+ border-bottom: solid 3px #53C170; }
197
+
198
+ #published-band {
199
+ background-color: #069E2D; }
200
+
201
+ #published {
202
+ border-bottom: solid 3px #069E2D; }
203
+
204
+ #withdrawn-band {
205
+ background-color: #004E64; }
206
+
207
+ #withdrawn {
208
+ border-bottom: solid 3px #004E64; }
209
+
210
+ #cancelled-band {
211
+ background-color: #2E382E; }
212
+
213
+ #cancelled {
214
+ border-bottom: solid 3px #2E382E; }
215
+
216
+ body {
217
+ margin-left: auto;
218
+ margin-right: auto;
219
+ max-width: 100%;
220
+ font-size: 15px;
221
+ font-weight: 300;
222
+ line-height: 1.4em;
223
+ color: #1d1d1d;
224
+ background-color: #ffffff; }
225
+ body main {
226
+ margin: 0 3em 0 6em; }
227
+
228
+ main {
229
+ margin: 0 3em 0 6em; }
230
+
231
+ #toc {
232
+ font-family: {{bodyfont}};
233
+ font-weight: 400; }
234
+ #toc ul {
235
+ margin: 0;
236
+ padding: 0;
237
+ list-style: none; }
238
+ #toc ul li a {
239
+ padding: 5px 10px; }
240
+ #toc ul a {
241
+ color: #485094;
242
+ text-decoration: none;
243
+ display: block; }
244
+ #toc ul a:hover {
245
+ box-shadow: none;
246
+ color: #485094; }
247
+ #toc .h2 {
248
+ padding-left: 30px; }
249
+ #toc .h3 {
250
+ padding-left: 50px; }
251
+ #toc .toc-active, #toc li:hover {
252
+ background: #1661AD;
253
+ box-shadow: inset -5px 0px 10px -5px #1661AD !important; }
254
+ #toc .toc-active a, #toc li:hover a {
255
+ color: #485094; }
256
+ @media print {
257
+ #toc .toc-active, #toc li:hover {
258
+ background: white;
259
+ box-shadow: none !important; }
260
+ #toc .toc-active a {
261
+ color: #485094; }
262
+ #toc li:hover a {
263
+ color: black; } }
264
+ @media screen and (max-width: 768px) {
265
+ #toc {
266
+ padding: 0 1.5em;
267
+ overflow: visible; } }
268
+ #toc .toc-active a {
269
+ color: white; }
270
+ #toc li a {
271
+ text-transform: uppercase; }
272
+ #toc ul a:hover {
273
+ box-shadow: none;
274
+ color: white; }
275
+
276
+ @media screen and (min-width: 768px) {
277
+ nav {
278
+ position: fixed;
279
+ top: 0;
280
+ bottom: 0;
281
+ left: 0;
282
+ width: 323px;
283
+ font-size: 0.9em;
284
+ overflow: auto;
285
+ padding: 0 0 0 45px;
286
+ background-color: #f7f7f7; } }
287
+
288
+ @media print {
289
+ nav {
290
+ position: relative;
291
+ width: auto;
292
+ font-size: 0.9em;
293
+ overflow: auto;
294
+ padding: 0;
295
+ margin-right: 0;
296
+ background-color: white; } }
297
+
298
+ @media screen and (min-width: 768px) {
299
+ #toggle {
300
+ position: fixed;
301
+ height: 100%;
302
+ width: 30px;
303
+ background-color: #1661AD;
304
+ color: white !important;
305
+ cursor: pointer;
306
+ z-index: 100; }
307
+ #toggle span {
308
+ text-align: center;
309
+ width: 100%;
310
+ position: absolute;
311
+ top: 50%;
312
+ transform: translate(0, -50%); } }
313
+
314
+ @media screen and (max-width: 768px) {
315
+ #toggle {
316
+ display: none; } }
317
+
318
+ @media print {
319
+ #toggle {
320
+ display: none; } }
321
+
322
+ #myBtn {
323
+ font-family: {{monospacefont}};
324
+ font-variant-ligatures: none;
325
+ display: none;
326
+ position: fixed;
327
+ bottom: 20px;
328
+ right: 30px;
329
+ z-index: 99;
330
+ font-size: 12px;
331
+ border: none;
332
+ outline: none;
333
+ background-color: #1f8ca0;
334
+ opacity: 0.15;
335
+ color: white;
336
+ cursor: pointer;
337
+ padding: 10px 15px 10px 15px;
338
+ border-radius: 4px;
339
+ text-transform: uppercase; }
340
+ #myBtn:hover {
341
+ opacity: 1; }
342
+ @media print {
343
+ #myBtn {
344
+ display: none; } }
345
+ #myBtn a.anchorjs-link:hover {
346
+ background: none;
347
+ color: #485094;
348
+ box-shadow: none; }
349
+
350
+ /*
351
+ 2. Responsive navigation layout
352
+ */
353
+ @media screen and (min-width: 768px) {
354
+ .container {
355
+ padding-left: 360px; }
356
+ .rule.toc {
357
+ display: none; }
358
+ h1.toc-contents {
359
+ margin-top: 1em; }
360
+ ul#toc-list {
361
+ padding: 0;
362
+ margin: 0; } }
363
+
364
+ div.figure {
365
+ line-height: 1.6em;
366
+ padding: 1.5em;
367
+ margin: 2em 0 1em 0;
368
+ overflow: auto; }
369
+ div.figure .FigureTitle, div.figure .figure-title {
370
+ font-weight: 700;
371
+ font-size: 1em;
372
+ text-align: center; }
373
+ div.figure > img {
374
+ margin-left: auto;
375
+ margin-right: auto;
376
+ display: block;
377
+ max-width: 100%;
378
+ height: auto; }
379
+
380
+ /*
381
+ Document types + stages
382
+ */
383
+ .document-type-band {
384
+ left: 0;
385
+ top: 180px;
386
+ height: 100%;
387
+ position: fixed;
388
+ display: block;
389
+ z-index: 102; }
390
+ .document-type-band > :first-child {
391
+ position: relative;
392
+ width: 25px;
393
+ font-weight: 400;
394
+ color: white;
395
+ text-transform: uppercase;
396
+ font-size: 0.9em;
397
+ font-weight: 400;
398
+ letter-spacing: 0.05em;
399
+ margin: 0;
400
+ margin-left: 6px;
401
+ writing-mode: tb-rl;
402
+ -webkit-transform: rotate(180deg);
403
+ -moz-transform: rotate(180deg);
404
+ -o-transform: rotate(180deg);
405
+ white-space: nowrap;
406
+ display: block;
407
+ bottom: 0; }
408
+ @media print {
409
+ .document-type-band {
410
+ display: none; } }
411
+ .document-type-band .document-type {
412
+ top: 20px; }
413
+
414
+ .document-stage-band {
415
+ left: 0;
416
+ top: 0;
417
+ height: 100%;
418
+ position: fixed;
419
+ display: block;
420
+ z-index: 101;
421
+ box-shadow: -5px 0px 10px #1d1d1d; }
422
+ .document-stage-band > :first-child {
423
+ position: relative;
424
+ width: 25px;
425
+ font-weight: 300;
426
+ height: 160px;
427
+ color: white;
428
+ text-transform: uppercase;
429
+ font-size: 0.9em;
430
+ font-weight: 400;
431
+ letter-spacing: 0.05em;
432
+ margin: 0;
433
+ margin-left: 6px;
434
+ writing-mode: tb-rl;
435
+ -webkit-transform: rotate(180deg);
436
+ -moz-transform: rotate(180deg);
437
+ -o-transform: rotate(180deg);
438
+ white-space: nowrap;
439
+ display: block;
440
+ bottom: 0; }
441
+ @media print {
442
+ .document-stage-band {
443
+ display: none; } }
444
+ #governance-band p.document-type {
445
+ height: 230px !important; }
446
+
447
+ p.document-stage {
448
+ font-weight: 300;
449
+ height: 160px; }
450
+
451
+ #standard-band p {
452
+ height: 270px; }
453
+
454
+ #proposal-band p {
455
+ height: 150px; }
456
+
457
+ #standard-band,
458
+ #published-band {
459
+ background-color: #9ABD48; }
460
+
461
+ #standard,
462
+ #published {
463
+ border-bottom: solid 3px #9ABD48; }
464
+
465
+ #governance,
466
+ #policy-and-procedures {
467
+ border-bottom: solid 3px #750697; }
468
+
469
+ #governance-band,
470
+ #policy-and-procedures-band {
471
+ background-color: #750697; }
472
+
473
+ #guide {
474
+ border-bottom: solid 3px #48a0e7; }
475
+
476
+ #guide-band {
477
+ background-color: #48a0e7; }
478
+
479
+ .coverpage-maturity {
480
+ font-family: {{bodyfont}};
481
+ font-weight: 400;
482
+ font-size: 1em;
483
+ margin: 0 0 2em 0;
484
+ text-transform: uppercase; }
485
+
486
+ #working-draft,
487
+ #proposal {
488
+ border-bottom: solid 3px #F7803C; }
489
+
490
+ #working-draft-band,
491
+ #proposal-band {
492
+ background-color: #F7803C; }
493
+
494
+ #committee-draft {
495
+ border-bottom: solid 3px #fd06fd; }
496
+
497
+ #committee-draft-band {
498
+ background-color: #fd06fd; }
499
+
500
+ #draft-standard {
501
+ border-bottom: solid 3px #fdf906; }
502
+
503
+ #draft-standard-band {
504
+ background-color: #fdf906; }
505
+
506
+ #standard {
507
+ border-bottom: solid 3px #9ABD48; }
508
+
509
+ #standard-band {
510
+ background-color: #9ABD48; }
511
+
512
+ #obsolete {
513
+ border-bottom: solid 3px #7e0d13; }
514
+
515
+ #obsolete-band {
516
+ background-color: #7e0d13; }
517
+
518
+ /*
519
+ 3. TYPOGRAPHY
520
+ */
521
+ /*
522
+ 3.1 Titles
523
+ */
524
+ h1,
525
+ h2,
526
+ h3,
527
+ h4,
528
+ h5,
529
+ h6 {
530
+ font-family: {{headerfont}};
531
+ color: #1661AD;
532
+ font-weight: 300;
533
+ margin-top: 1.6em;
534
+ margin-bottom: 0.3em; }
535
+
536
+ h1 {
537
+ font-size: 1.6em;
538
+ text-transform: uppercase;
539
+ margin-top: 2em; }
540
+
541
+ h1#content {
542
+ margin-top: 2em; }
543
+
544
+ h2 {
545
+ margin-top: 1.3em;
546
+ font-size: 1.3em;
547
+ font-weight: 400; }
548
+
549
+ h3 {
550
+ margin-top: 1.1em;
551
+ font-size: 1.1em;
552
+ font-weight: 100; }
553
+
554
+ .TermNum,
555
+ .Terms,
556
+ .AltTerms {
557
+ color: #1661AD;
558
+ font-weight: 100; }
559
+
560
+ h2.TermNum {
561
+ margin-bottom: 0; }
562
+
563
+ p.Terms {
564
+ font-size: 1.1em;
565
+ line-height: 1.5em;
566
+ margin: 0; }
567
+
568
+ p.AltTerms {
569
+ /*
570
+ font-style: italic;
571
+ */
572
+ font-size: 1.1em;
573
+ margin: 0; }
574
+
575
+ .contact-info a:hover {
576
+ color: #485094;
577
+ text-decoration: underline;
578
+ background: none;
579
+ box-shadow: 0 0 0 0; }
580
+
581
+ /*
582
+ 3.2 Links
583
+ */
584
+ a, a:visited {
585
+ text-decoration: none;
586
+ color: #485094; }
587
+
588
+ a:hover {
589
+ color: white;
590
+ background: #1661AD;
591
+ box-shadow: 3px 0 0 #1661AD, -3px 0 0 #1661AD; }
592
+
593
+ ::selection,
594
+ ::-moz-selection {
595
+ background: #1661AD;
596
+ color: white; }
597
+
598
+ /*
599
+ 3.3 Lists
600
+ */
601
+ ul,
602
+ ol {
603
+ margin-left: 1.2em; }
604
+
605
+ ul li {
606
+ list-style: none; }
607
+
608
+ ul > li:before {
609
+ content: "\2014";
610
+ display: inline-block;
611
+ width: 1em;
612
+ margin-left: -1.2em; }
613
+
614
+ ul > li p:first-child {
615
+ display: inline; }
616
+
617
+ ul > li:first-child {
618
+ margin-top: 1em; }
619
+
620
+ #toc-list ul {
621
+ margin-bottom: 0.25em; }
622
+
623
+ #toc-list li {
624
+ list-style-type: none; }
625
+
626
+ #toc li:before {
627
+ content: " ";
628
+ display: none; }
629
+
630
+ /*
631
+ 3.4 Rules
632
+ */
633
+ .rule {
634
+ width: 100%;
635
+ height: 1px;
636
+ background-color: #0e1a85;
637
+ margin: 2em 0; }
638
+
639
+ /*
640
+ 3.5 Bibliograhy
641
+ */
642
+ p.Biblio,
643
+ p.NormRef {
644
+ margin-top: 1em;
645
+ margin-left: 2em; }
646
+
647
+ /*
648
+ 3.6 Source Code + figures
649
+ */
650
+ .figure,
651
+ pre,
652
+ .pseudocode {
653
+ background-color: #f7f7f7;
654
+ font-size: 0.8em;
655
+ line-height: 1.6em;
656
+ padding: 1.5em;
657
+ margin: 2em 0 1em 0;
658
+ overflow: auto; }
659
+ .figure .SourceTitle,
660
+ pre .SourceTitle,
661
+ .pseudocode .SourceTitle {
662
+ font-weight: 700;
663
+ font-size: 1em;
664
+ text-align: center; }
665
+
666
+ pre {
667
+ font-family: {{monospacefont}};
668
+ font-variant-ligatures: none; }
669
+
670
+ .AdmonitionTitle {
671
+ font-weight: 700;
672
+ font-size: 1em;
673
+ text-align: center; }
674
+
675
+ .RecommendationTitle {
676
+ font-weight: 700;
677
+ font-size: 1em;
678
+ text-align: center; }
679
+
680
+ .FigureTitle,
681
+ .SourceTitle {
682
+ font-weight: 700;
683
+ font-size: 1em;
684
+ text-align: center; }
685
+
686
+ /*
687
+ 3.7 Notes
688
+ */
689
+ .Note {
690
+ background-color: #fff495;
691
+ color: #47430c;
692
+ padding: 1.2em;
693
+ margin: 1em 0 1em 0; }
694
+ .Note p {
695
+ margin: 0; }
696
+
697
+ .Admonition {
698
+ background-color: #ffcccc;
699
+ color: #47430c;
700
+ padding: 1.2em;
701
+ margin: 1em 0 1em 0; }
702
+ .Admonition p {
703
+ margin: 0; }
704
+
705
+ /*
706
+ 3.8 Examples
707
+ */
708
+ .example {
709
+ background-color: #e1eef1;
710
+ padding: 1.2em;
711
+ margin: 2em 0 1em 0;
712
+ text-align: left;
713
+ color: #424242;
714
+ padding-left: 2.7em; }
715
+ .example p {
716
+ margin: 0; }
717
+ .example .example-title {
718
+ font-weight: 700;
719
+ text-transform: uppercase;
720
+ margin-left: -1.5em; }
721
+ .example .example-title {
722
+ margin-top: 0; }
723
+ .example pre,
724
+ .example .pseudocode {
725
+ background: none; }
726
+
727
+ /*
728
+ 3.9 Tables
729
+ */
730
+ table {
731
+ width: 100%;
732
+ font-weight: 300;
733
+ margin: 1em 0 2em 0;
734
+ margin-left: auto;
735
+ margin-right: auto;
736
+ padding-right: 2em; }
737
+ table, table th, table td {
738
+ border: 1px solid black;
739
+ font-size: 0.95em; }
740
+ table th, table td {
741
+ padding: 1em; }
742
+ table td.header {
743
+ font-weigth: 400; }
744
+
745
+ p.TableTitle {
746
+ text-align: center;
747
+ margin-top: 2.5em;
748
+ font-weight: 400; }
749
+
750
+ /*
751
+ 3.10 Footnotes
752
+ */
753
+ a.footnote-number {
754
+ vertical-align: super;
755
+ font-size: 0.8em; }
756
+
757
+ .footnote {
758
+ font-size: 0.9em; }
759
+
760
+ /*
761
+ 3.11 Blockquotes
762
+ */
763
+ .Quote {
764
+ background-color: #f7f7f7;
765
+ font-style: italic;
766
+ width: 80%;
767
+ padding: 1.5em;
768
+ margin-top: 2em;
769
+ margin-left: auto;
770
+ margin-right: auto; }
771
+
772
+ /*
773
+ 3.12 Formulas
774
+ */
775
+ .formula {
776
+ background-color: #f7f7f7;
777
+ padding: 1.5em;
778
+ margin-top: 2em;
779
+ text-align: center; }
780
+
781
+ /*
782
+ 3.13 Contact Info
783
+ */
784
+ .contact-info {
785
+ padding: 2em;
786
+ margin-top: 5em;
787
+ width: 250px;
788
+ text-align: left;
789
+ border: #1661AD solid 2px;
790
+ color: #1661AD !important;
791
+ border-radius: 25px; }
792
+
793
+ .contact-info a,
794
+ .contact-info a:hover {
795
+ color: #1661AD; }
796
+
797
+ .contact-info p,
798
+ .contact-info a {
799
+ font-family: {{monospacefont}};
800
+ font-variant-ligatures: none;
801
+ font-weight: 400; }
802
+
803
+ .contact-info .name {
804
+ font-weight: 700;
805
+ font-size: 1.2em;
806
+ margin-bottom: 0; }
807
+
808
+ .contact-info .address {
809
+ font-size: 1em;
810
+ line-height: 1.3em;
811
+ margin-top: 0; }
812
+
813
+ /*
814
+ Keywords
815
+ */
816
+ span.keyword {
817
+ font-weight: 600; }
818
+
819
+ /*
820
+ Paragraphs
821
+ */
822
+ p {
823
+ margin-top: 1em;
824
+ margin-bottom: 1em; }
825
+
826
+ h2 p {
827
+ display: inline; }
828
+
829
+ /*
830
+ 4.0 Page header
831
+ */
832
+ /*
833
+ 4.1 Top Logo
834
+ */
835
+ .icon-svg {
836
+ width: 100%;
837
+ color: #5ecf86; }
838
+
839
+ .wrapper-top {
840
+ background: linear-gradient(200deg, #0f365e, #1661AD);
841
+ color: #ffffff;
842
+ padding: 2em 0;
843
+ width: 100%; }
844
+
845
+ .wrapper-top-bottom {
846
+ width: 0;
847
+ height: 0;
848
+ border-top: 100px solid #1661AD;
849
+ border-right: 100px solid transparent;
850
+ position: absolute; }
851
+
852
+ .doc-number {
853
+ font-size: 0.5em;
854
+ font-family: {{bodyfont}}; }
855
+
856
+ .coverpage-title {
857
+ padding-bottom: 0.5em;
858
+ font-family: {{headerfont}};
859
+ font-size: 1.2em;
860
+ line-height: 1.5em;
861
+ font-weight: 100;
862
+ padding-left: 1em;
863
+ padding-right: 1em;
864
+ text-transform: uppercase; }
865
+
866
+ .WordSection11 {
867
+ padding: 0 2em 0 3em; }
868
+
869
+ .info-section {
870
+ padding: 0 2em 0 5em; }
871
+
872
+ .prefatory-section {
873
+ padding: 0 3em 0 6em; }
874
+
875
+ .zzSTDTitle1,
876
+ .MsoCommentText {
877
+ display: none; }
878
+
879
+ .coverpage {
880
+ text-align: center;
881
+ padding-left: 1.5em; }
882
+
883
+ .coverpage-logo span,
884
+ .coverpage-tc-name span {
885
+ font-family: {{bodyfont}};
886
+ text-transform: none;
887
+ font-weight: 300; }
888
+
889
+ .coverpage-tc-name {
890
+ font-size: 1.2em;
891
+ line-height: 1.2em;
892
+ margin: 0.25em 0; }
893
+
894
+ /*
895
+ 4.2 Document Identity
896
+ */
897
+ .coverpage-doc-identity {
898
+ font-size: 2em;
899
+ line-height: 2em; }
900
+
901
+ .coverpage-title .title-second {
902
+ display: none; }
903
+
904
+ .coverpage-stage-block {
905
+ font-family: {{bodyfont}};
906
+ font-weight: 600;
907
+ font-size: 1.25em;
908
+ margin: 2em 0em 2em 0em;
909
+ text-transform: uppercase; }
910
+
911
+ /*
912
+ 4.3 Draft Warning
913
+ */
914
+ .coverpage-warning {
915
+ border: #f36f36 solid 2px;
916
+ color: #f36f36 !important;
917
+ margin: 1em 2em;
918
+ color: #485094;
919
+ padding: 2em 1em 1em 1em;
920
+ border-radius: 25px; }
921
+
922
+ .coverpage-warning .title {
923
+ font-family: {{headerfont}};
924
+ font-weight: 300;
925
+ text-transform: uppercase;
926
+ font-size: 1.2em; }
927
+
928
+ /*
929
+ 4.4 Copyright
930
+ */
931
+ .boilerplate-copyright {
932
+ padding: 1em;
933
+ font-size: 0.9em;
934
+ text-align: left; }
935
+
936
+ /* .copyright .name, .copyright .address {color: #485094;} */
937
+ /*
938
+ 5.0 Other styles
939
+ */
940
+ /*
941
+ To top button
942
+ */
943
+ @page {
944
+ margin: 2cm 1cm; }
945
+
946
+ @media print {
947
+ .document-info,
948
+ nav,
949
+ .copyright {
950
+ page-break-before: always; }
951
+ nav {
952
+ page-break-after: always; }
953
+ h1,
954
+ h2,
955
+ h3,
956
+ h4 {
957
+ page-break-after: avoid;
958
+ margin-top: 1.2em; }
959
+ .note,
960
+ .figure,
961
+ pre,
962
+ .pseudocode,
963
+ table {
964
+ page-break-inside: avoid; }
965
+ .info-section {
966
+ display: none; }
967
+ .coverpage {
968
+ height: 23cm; }
969
+ .wrapper-top {
970
+ top: 0;
971
+ padding-top: 4cm;
972
+ padding-bottom: 4cm; }
973
+ .wrapper-top-bottom {
974
+ margin-top: -5px; }
975
+ button#myBtn {
976
+ background-color: white; }
977
+ .container {
978
+ padding-left: 0; }
979
+ h1.content {
980
+ margin-top: 2em;
981
+ line-height: 2.5em; }
982
+ h1 {
983
+ font-size: 1.5em;
984
+ line-height: 1.5; }
985
+ h2 {
986
+ font-size: 1.2em; }
987
+ h3 {
988
+ font-size: 1em; }
989
+ .Note {
990
+ background-color: #fff495;
991
+ color: #47430c;
992
+ padding: 5px;
993
+ margin: 2em 0 1em 0; }
994
+ .Note p {
995
+ padding: 0 5px 0 5px; }
996
+ .Admonition {
997
+ background-color: #ffcccc;
998
+ color: #47430c;
999
+ padding: 5px;
1000
+ margin: 2em 0 1em 0; }
1001
+ .Admonition p {
1002
+ padding: 0 5px 0 5px; }
1003
+ .wrapper-top-bottom {
1004
+ display: none; } }