metanorma-iso 1.10.2 → 1.10.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rake.yml +3 -33
  3. data/.github/workflows/ubuntu.yml +1 -1
  4. data/Gemfile +1 -1
  5. data/lib/asciidoctor/iso/base.rb +1 -1
  6. data/lib/asciidoctor/iso/basicdoc.rng +1 -11
  7. data/lib/asciidoctor/iso/biblio.rng +0 -2
  8. data/lib/asciidoctor/iso/front.rb +17 -4
  9. data/lib/asciidoctor/iso/front_id.rb +20 -17
  10. data/lib/asciidoctor/iso/isodoc.rng +61 -19
  11. data/lib/asciidoctor/iso/isostandard-amd.rng +1 -1
  12. data/lib/asciidoctor/iso/isostandard.rng +15 -3
  13. data/lib/asciidoctor/iso/reqt.rng +1 -1
  14. data/lib/asciidoctor/iso/section.rb +1 -1
  15. data/lib/asciidoctor/iso/validate.rb +1 -1
  16. data/lib/asciidoctor/iso/validate_image.rb +1 -1
  17. data/lib/asciidoctor/iso/validate_section.rb +1 -1
  18. data/lib/isodoc/iso/base_convert.rb +14 -31
  19. data/lib/isodoc/iso/html/isodoc.scss +0 -1
  20. data/lib/isodoc/iso/html/style-human.scss +36 -9
  21. data/lib/isodoc/iso/html/style-iso.scss +31 -6
  22. data/lib/isodoc/iso/html/wordstyle.scss +10 -8
  23. data/lib/isodoc/iso/html_convert.rb +81 -22
  24. data/lib/isodoc/iso/index.rb +53 -45
  25. data/lib/isodoc/iso/iso.amendment.xsl +406 -122
  26. data/lib/isodoc/iso/iso.international-standard.xsl +406 -122
  27. data/lib/isodoc/iso/isosts_convert.rb +6 -2
  28. data/lib/isodoc/iso/metadata.rb +27 -22
  29. data/lib/isodoc/iso/presentation_xml_convert.rb +60 -25
  30. data/lib/isodoc/iso/sts_convert.rb +3 -2
  31. data/lib/isodoc/iso/word_convert.rb +0 -2
  32. data/lib/metanorma/iso/processor.rb +2 -2
  33. data/lib/metanorma/iso/version.rb +1 -1
  34. data/metanorma-iso.gemspec +3 -3
  35. data/spec/asciidoctor/base_spec.rb +398 -546
  36. data/spec/asciidoctor/blocks_spec.rb +4 -4
  37. data/spec/asciidoctor/cleanup_spec.rb +15 -12
  38. data/spec/asciidoctor/refs_spec.rb +87 -84
  39. data/spec/isodoc/amd_spec.rb +261 -250
  40. data/spec/isodoc/i18n_spec.rb +7 -7
  41. data/spec/isodoc/inline_spec.rb +242 -216
  42. data/spec/isodoc/iso_spec.rb +3 -1
  43. data/spec/isodoc/postproc_spec.rb +111 -28
  44. data/spec/isodoc/section_spec.rb +4 -4
  45. data/spec/isodoc/terms_spec.rb +34 -41
  46. data/spec/isodoc/xref_spec.rb +3 -3
  47. data/spec/metanorma/processor_spec.rb +110 -14
  48. data/spec/vcr_cassettes/docrels.yml +37 -427
  49. metadata +11 -16
  50. data/lib/isodoc/iso/html/htmlstyle.css +0 -47
  51. data/lib/isodoc/iso/html/isodoc.css +0 -1328
  52. data/lib/isodoc/iso/html/style-human.css +0 -979
  53. data/lib/isodoc/iso/html/style-iso.css +0 -1007
  54. data/lib/isodoc/iso/html/wordstyle.css +0 -1699
@@ -1,1007 +0,0 @@
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, 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
- a.FootnoteRef + a.FootnoteRef:before {
115
- content: ", ";
116
- vertical-align: super; }
117
-
118
- .addition {
119
- color: blue; }
120
-
121
- .deletion {
122
- color: red;
123
- text-decoration: line-through; }
124
-
125
- #standard-band {
126
- background-color: #0AC442; }
127
-
128
- #standard {
129
- border-bottom: solid 3px #0AC442; }
130
-
131
- #directive-band {
132
- background-color: #540D6E; }
133
-
134
- #directive {
135
- border-bottom: solid 3px #540D6E; }
136
-
137
- #guide-band {
138
- background-color: #D183C9; }
139
-
140
- #guide {
141
- border-bottom: solid 3px #D183C9; }
142
-
143
- #specification-band {
144
- background-color: #65AFFF; }
145
-
146
- #specification {
147
- border-bottom: solid 3px #65AFFF; }
148
-
149
- #report-band {
150
- background-color: #3A405A; }
151
-
152
- #report {
153
- border-bottom: solid 3px #3A405A; }
154
-
155
- #amendment-band {
156
- background-color: #F26430; }
157
-
158
- #amendment {
159
- border-bottom: solid 3px #F26430; }
160
-
161
- #corrigendum-band {
162
- background-color: #C84630; }
163
-
164
- #corrigendum {
165
- border-bottom: solid 3px #C84630; }
166
-
167
- #administrative-band {
168
- background-color: #BFAE48; }
169
-
170
- #administrative {
171
- border-bottom: solid 3px #BFAE48; }
172
-
173
- #advisory-band {
174
- background-color: #BD9391; }
175
-
176
- #advisory {
177
- border-bottom: solid 3px #BD9391; }
178
-
179
- #proposal-band {
180
- background-color: #39A0ED; }
181
-
182
- #proposal {
183
- border-bottom: solid 3px #39A0ED; }
184
-
185
- #working-draft-band {
186
- background-color: #2D7393; }
187
-
188
- #working-draft {
189
- border-bottom: solid 3px #2D7393; }
190
-
191
- #committee-draft-band {
192
- background-color: #2A6B7C; }
193
-
194
- #committee-draft {
195
- border-bottom: solid 3px #2A6B7C; }
196
-
197
- #draft-standard-band {
198
- background-color: #1C7F7A; }
199
-
200
- #draft-standard {
201
- border-bottom: solid 3px #1C7F7A; }
202
-
203
- #final-draft-band {
204
- background-color: #53C170; }
205
-
206
- #final-draft {
207
- border-bottom: solid 3px #53C170; }
208
-
209
- #published-band {
210
- background-color: #069E2D; }
211
-
212
- #published {
213
- border-bottom: solid 3px #069E2D; }
214
-
215
- #withdrawn-band {
216
- background-color: #004E64; }
217
-
218
- #withdrawn {
219
- border-bottom: solid 3px #004E64; }
220
-
221
- #cancelled-band {
222
- background-color: #2E382E; }
223
-
224
- #cancelled {
225
- border-bottom: solid 3px #2E382E; }
226
-
227
- body {
228
- margin-left: auto;
229
- margin-right: auto;
230
- max-width: 100%;
231
- font-size: 16px;
232
- font-weight: 300;
233
- line-height: 1.4em;
234
- color: -internal-root-color;
235
- background-color: #ffffff; }
236
- body main {
237
- margin: 0 3em 0 6em; }
238
- body main {
239
- margin: 0; }
240
-
241
- /* HTML5 display-role reset for older browsers */
242
- article, aside, details, figcaption, figure,
243
- footer, header, hgroup, menu, nav, section {
244
- display: block; }
245
-
246
- body {
247
- line-height: 1.3; }
248
-
249
- blockquote, q {
250
- quotes: none; }
251
-
252
- blockquote:before, blockquote:after,
253
- q:before, q:after {
254
- content: '';
255
- content: none; }
256
-
257
- /* New CSS */
258
- body {
259
- margin-left: 298px;
260
- margin-right: 2em; }
261
-
262
- main {
263
- padding-left: 4em;
264
- padding-right: 2em; }
265
-
266
- .title-section, .prefatory-section {
267
- padding-left: 4em;
268
- padding-top: 2em; }
269
-
270
- .coverpage_docnumber, .coverpage_techcommittee {
271
- text-align: right;
272
- font-size: 0.9em;
273
- line-height: 0.5em; }
274
-
275
- .doctitle-en, .doctitle-fr {
276
- margin-top: 2em;
277
- text-align: left; }
278
-
279
- .doctitle-en {
280
- padding-left: 3em;
281
- margin-left: -3em;
282
- /*padding-top: 2em;*/
283
- padding-bottom: 2em; }
284
-
285
- .doctitle-en span {
286
- font-size: 2em;
287
- line-height: 1.5em; }
288
-
289
- .doctitle-fr span {
290
- font-size: 1.5em;
291
- line-height: 1.2em;
292
- font-style: italic; }
293
-
294
- .doctitle-part {
295
- margin-top: 1em; }
296
-
297
- span.title, span.subtitle, span.part {
298
- font-weight: 800; }
299
-
300
- span.partlabel {
301
- display: block; }
302
-
303
- .coverpage_docstage {
304
- margin-top: 2em;
305
- margin-bottom: 2em; }
306
-
307
- .coverpage_warning {
308
- font-size: 0.9em;
309
- font-style: italic;
310
- padding-bottom: 1em; }
311
-
312
- .boilerplate-copyright p {
313
- margin-top: 1em;
314
- display: block;
315
- font-size: 0.9em; }
316
-
317
- /* TYPOGRAPHY */
318
- h1 {
319
- font-size: 1.5em;
320
- line-height: 2em;
321
- margin-top: 2em;
322
- margin-bottom: 1em; }
323
-
324
- h2 {
325
- font-size: 1.2em;
326
- line-height: 1.5em;
327
- margin-top: 2em;
328
- margin-bottom: 1em; }
329
-
330
- h1, h2, h3, h4, h5, h6 {
331
- line-height: 1.2; }
332
-
333
- {% if doctype == "Amendment" or doctype == "Technical Corrigendum" %}
334
- h1, h2, h3, h4, h5, h6 {
335
- font-weight: normal;
336
- font-size: initial;
337
- font-style: italic; }
338
-
339
- {% endif %}
340
- p {
341
- margin-top: 1em;
342
- margin-bottom: 1em; }
343
-
344
- p.zzSTDTitle1 {
345
- font-weight: 700;
346
- font-size: 1.5em; }
347
-
348
- p.zzSTDTitle2 {
349
- font-size: 1.5em; }
350
-
351
- span.obligation {
352
- font-weight: 400; }
353
-
354
- a {
355
- color: black;
356
- text-decoration-color: black; }
357
-
358
- h2 p {
359
- display: inline; }
360
-
361
- ul > li {
362
- list-style: none; }
363
-
364
- ul > li > p:first-child:before {
365
- content: "\2014";
366
- display: inline-block;
367
- width: 1em;
368
- margin-left: -1.5em;
369
- margin-right: 0.5em; }
370
-
371
- li p {
372
- margin-bottom: 0.6em;
373
- line-height: 1.2; }
374
-
375
- p.AltTerms {
376
- margin-bottom: 0;
377
- font-style: italic;
378
- margin-left: 2em; }
379
-
380
- p.Terms {
381
- font-weight: bold;
382
- margin-top: 0em; }
383
-
384
- /* Navigation*/
385
- #toc {
386
- font-family: {{bodyfont}};
387
- font-weight: 400; }
388
- #toc ul {
389
- margin: 0;
390
- padding: 0;
391
- list-style: none; }
392
- #toc ul li a {
393
- padding: 5px 10px; }
394
- #toc ul a {
395
- text-decoration: none;
396
- display: block; }
397
- #toc ul a:hover {
398
- box-shadow: none;
399
- color: black; }
400
- #toc .h2 {
401
- padding-left: 30px; }
402
- #toc .h3 {
403
- padding-left: 50px; }
404
- #toc .toc-active, #toc li:hover {
405
- background: #f7f7f7;
406
- box-shadow: inset -5px 0px 10px -5px #f7f7f7 !important; }
407
- #toc .toc-active a, #toc li:hover a {
408
- color: black; }
409
- @media print {
410
- #toc .toc-active, #toc li:hover {
411
- background: white;
412
- box-shadow: none !important; }
413
- #toc li:hover a {
414
- color: black; } }
415
- @media screen and (max-width: 768px) {
416
- #toc {
417
- padding: 0 1.5em;
418
- overflow: visible; } }
419
- #toc .toc-active,
420
- #toc li:hover {
421
- box-shadow: 0px 1px 0px 0px black !important;
422
- background: none; }
423
- #toc li:before {
424
- content: " ";
425
- display: none; }
426
-
427
- nav {
428
- line-height: 1.2em; }
429
- @media screen and (min-width: 768px) {
430
- nav {
431
- position: fixed;
432
- top: 0;
433
- bottom: 0;
434
- left: 0;
435
- width: 278px;
436
- font-size: 0.9em;
437
- overflow: auto;
438
- padding: 0 0 0 20px;
439
- background-color: #f7f7f7; } }
440
- @media print {
441
- nav {
442
- position: relative;
443
- width: auto;
444
- font-size: 0.9em;
445
- overflow: auto;
446
- padding: 0;
447
- margin-right: 0;
448
- background-color: white; } }
449
- #toggle {
450
- border-right: solid black 1px;
451
- margin-left: -4em;
452
- margin-top: -2em; }
453
- @media screen and (min-width: 768px) {
454
- #toggle {
455
- position: fixed;
456
- height: 100%;
457
- width: 30px;
458
- background-color: #f7f7f7;
459
- color: black !important;
460
- cursor: pointer;
461
- z-index: 100; }
462
- #toggle span {
463
- text-align: center;
464
- width: 100%;
465
- position: absolute;
466
- top: 50%;
467
- transform: translate(0, -50%); } }
468
- @media screen and (max-width: 768px) {
469
- #toggle {
470
- display: none; } }
471
- @media print {
472
- #toggle {
473
- display: none; } }
474
- @media screen and (min-width: 768px) {
475
- .container {
476
- padding-left: 360px; }
477
- .rule.toc {
478
- display: none; }
479
- h1.toc-contents {
480
- margin-top: 1em; }
481
- ul#toc-list {
482
- padding: 0;
483
- margin: 0; } }
484
-
485
- @media screen and (max-width: 768px) {
486
- body {
487
- margin-left: 2em; }
488
- main {
489
- padding: 0; }
490
- .title-section, .prefatory-section {
491
- padding-left: 0;
492
- padding-top: 0;
493
- width: 100%; } }
494
-
495
- .figure,
496
- pre,
497
- .pseudocode {
498
- background-color: #f7f7f7;
499
- font-size: {{monospacefontsize}};
500
- line-height: 1.6em;
501
- padding: 1.5em;
502
- margin: 2em 0 1em 0;
503
- overflow: auto;
504
- font-size: {{normalfontsize}}; }
505
- .figure .SourceTitle,
506
- pre .SourceTitle,
507
- .pseudocode .SourceTitle {
508
- font-weight: 700;
509
- font-size: 1em;
510
- text-align: center; }
511
-
512
- div.figure {
513
- line-height: 1.6em;
514
- padding: 1.5em;
515
- margin: 2em 0 1em 0;
516
- overflow: auto; }
517
- div.figure .FigureTitle, div.figure .figure-title {
518
- font-weight: 700;
519
- font-size: 1em;
520
- text-align: center; }
521
- div.figure > img {
522
- margin-left: auto;
523
- margin-right: auto;
524
- display: block;
525
- max-width: 100%;
526
- height: auto; }
527
-
528
- /*
529
- Document types + stages
530
- */
531
- .document-type-band {
532
- left: 0;
533
- top: 180px;
534
- height: 100%;
535
- position: fixed;
536
- display: block;
537
- z-index: 102; }
538
- .document-type-band > :first-child {
539
- position: relative;
540
- width: 25px;
541
- font-weight: 400;
542
- color: white;
543
- text-transform: uppercase;
544
- font-size: 0.9em;
545
- font-weight: 400;
546
- letter-spacing: 0.05em;
547
- margin: 0;
548
- margin-left: 6px;
549
- writing-mode: tb-rl;
550
- -webkit-transform: rotate(180deg);
551
- -moz-transform: rotate(180deg);
552
- -o-transform: rotate(180deg);
553
- white-space: nowrap;
554
- display: block;
555
- bottom: 0; }
556
- @media print {
557
- .document-type-band {
558
- display: none; } }
559
- .document-type-band .document-type {
560
- top: 20px; }
561
-
562
- .document-stage-band {
563
- left: 0;
564
- top: 0;
565
- height: 100%;
566
- position: fixed;
567
- display: block;
568
- z-index: 101;
569
- box-shadow: -5px 0px 10px #1d1d1d; }
570
- .document-stage-band > :first-child {
571
- position: relative;
572
- width: 25px;
573
- font-weight: 400;
574
- height: 100%;
575
- color: white;
576
- text-transform: uppercase;
577
- font-size: 0.9em;
578
- font-weight: 400;
579
- letter-spacing: 0.05em;
580
- margin: 0;
581
- margin-left: 6px;
582
- writing-mode: tb-rl;
583
- -webkit-transform: rotate(180deg);
584
- -moz-transform: rotate(180deg);
585
- -o-transform: rotate(180deg);
586
- white-space: nowrap;
587
- display: block;
588
- bottom: 0; }
589
- @media print {
590
- .document-stage-band {
591
- display: none; } }
592
- p.document-stage {
593
- position: relative;
594
- width: 25px;
595
- font-weight: 400;
596
- height: 210px;
597
- color: white;
598
- text-transform: uppercase;
599
- font-size: 0.9em;
600
- font-weight: 400;
601
- letter-spacing: 0.05em;
602
- margin: 0;
603
- margin-left: 6px;
604
- writing-mode: tb-rl;
605
- -webkit-transform: rotate(180deg);
606
- -moz-transform: rotate(180deg);
607
- -o-transform: rotate(180deg);
608
- white-space: nowrap;
609
- display: block;
610
- bottom: 0;
611
- writing-mode: vertical-rl; }
612
-
613
- #governance-band p.document-type {
614
- font-weight: 400;
615
- height: 230px !important; }
616
-
617
- p.document-stage {
618
- font-weight: 300;
619
- height: 160px; }
620
-
621
- #standard-band {
622
- background-color: #0ac442; }
623
-
624
- #standard {
625
- border-bottom: solid 3px #0ac442; }
626
-
627
- #governance {
628
- border-bottom: solid 3px #750697; }
629
-
630
- #governance-band {
631
- background-color: #750697; }
632
-
633
- #guide {
634
- border-bottom: solid 3px #48a0e7; }
635
-
636
- #guide-band {
637
- background-color: #48a0e7; }
638
-
639
- .coverpage-maturity {
640
- font-family: 'Overpass', sans-serif;
641
- font-weight: 400;
642
- font-size: 1em;
643
- margin: 0 0 2em 0;
644
- text-transform: uppercase; }
645
-
646
- #working-draft {
647
- border-bottom: solid 3px #fda706; }
648
-
649
- #working-draft-band {
650
- background-color: #fda706; }
651
-
652
- #committee-draft {
653
- border-bottom: solid 3px #fd06fd; }
654
-
655
- #committee-draft-band {
656
- background-color: #fd06fd; }
657
-
658
- #draft-standard {
659
- border-bottom: solid 3px #fdf906; }
660
-
661
- #draft-standard {
662
- border-bottom: solid 3px #fdf906; }
663
-
664
- #standard {
665
- border-bottom: solid 3px #0ac442; }
666
-
667
- #standard-band {
668
- background-color: #0ac442; }
669
-
670
- #obsolete {
671
- border-bottom: solid 3px #7e0d13; }
672
-
673
- #obsolete-band {
674
- background-color: #7e0d13; }
675
-
676
- /* 3 Other styles */
677
- /*
678
- 3.2 Links
679
- */
680
- a {
681
- color: black;
682
- text-decoration-color: black; }
683
-
684
- /*
685
- 3.3 Lists
686
- */
687
- ul, ol {
688
- margin-left: 2em; }
689
-
690
- #toc-list ul {
691
- margin-bottom: 0.25em; }
692
-
693
- #toc-list ol li {
694
- list-style-type: none; }
695
-
696
- /* https://github.com/metanorma/metanorma-iso/issues/319 : force a) parentheses for ordered lists */
697
- ol[type="alphabet"] {
698
- counter-reset: alphabet; }
699
-
700
- ol[type="arabic"] {
701
- counter-reset: arabic; }
702
-
703
- ol[type="roman"] {
704
- counter-reset: roman; }
705
-
706
- ol[type="alphabet_upper"] {
707
- counter-reset: alphabet_upper; }
708
-
709
- ol[type="roman_upper"] {
710
- counter-reset: roman_upper; }
711
-
712
- ol[type="alphabet"] ol[type="alphabet"] {
713
- counter-reset: alphabet2; }
714
-
715
- ol[type="arabic"] ol[type="arabic"] {
716
- counter-reset: arabic2; }
717
-
718
- ol[type="roman"] ol[type="roman"] {
719
- counter-reset: roman2; }
720
-
721
- ol[type="alphabet_upper"] ol[type="alphabet_upper"] {
722
- counter-reset: alphabet_upper2; }
723
-
724
- ol[type="roman_upper"] ol[type="roman_upper"] {
725
- counter-reset: roman_upper2; }
726
-
727
- ol {
728
- counter-reset: alphabet; }
729
-
730
- ol > li {
731
- list-style: none;
732
- position: relative; }
733
-
734
- ol > li:before {
735
- position: absolute;
736
- left: -1.4em; }
737
-
738
- ol[type="roman"] > li:before {
739
- left: -2.0em; }
740
-
741
- ol[type="roman_upper"] > li:before {
742
- left: -2.3em; }
743
-
744
- ol[type="alphabet"] > li:before {
745
- counter-increment: alphabet;
746
- content: counter(alphabet, lower-alpha) ") "; }
747
-
748
- ol[type="arabic"] > li:before {
749
- counter-increment: arabic;
750
- content: counter(arabic, decimal) ") "; }
751
-
752
- ol[type="roman"] > li:before {
753
- counter-increment: roman;
754
- content: counter(roman, lower-roman) ") "; }
755
-
756
- ol[type="alphabet_upper"] > li:before {
757
- counter-increment: alphabet_upper;
758
- content: counter(alphabet_upper, upper-alpha) ") "; }
759
-
760
- ol[type="roman_upper"] > li:before {
761
- counter-increment: roman_upper;
762
- content: counter(roman_upper, upper-roman) ") "; }
763
-
764
- ol > li:before {
765
- counter-increment: alphabet;
766
- content: counter(alphabet, lower-alpha) ") "; }
767
-
768
- ol[type="alphabet"] ol[type="alphabet"] > li:before {
769
- counter-increment: alphabet2;
770
- content: counter(alphabet2, lower-alpha) ") "; }
771
-
772
- ol[type="arabic"] ol[type="arabic"] > li:before {
773
- counter-increment: arabic2;
774
- content: counter(arabic2, decimal) ") "; }
775
-
776
- ol[type="roman"] ol[type="roman"] > li:before {
777
- counter-increment: roman2;
778
- content: counter(roman2, lower-roman) ") "; }
779
-
780
- ol[type="alphabet_upper"] ol[type="alphabet_upper"] > li:before {
781
- counter-increment: alphabet_upper2;
782
- content: counter(alphabet_upper2, upper-alpha) ") "; }
783
-
784
- ol[type="roman_upper"] ol[type="roman_upper"] > li:before {
785
- counter-increment: roman_upper2;
786
- content: counter(roman_upper2, upper-roman) ") "; }
787
-
788
- /*
789
- 3.4 Rules
790
- */
791
- .rule {
792
- width: 100%;
793
- height: 1px;
794
- background-color: #0e1a85;
795
- margin: 2em 0; }
796
-
797
- /*
798
- 3.5 Bibliograhy
799
- */
800
- p.Biblio, p.NormRef {
801
- margin-top: 1em;
802
- margin-left: 2em; }
803
-
804
- /*
805
- 3.6 Source Code + figures
806
- */
807
- .figure,
808
- pre,
809
- .pseudocode {
810
- background-color: #f7f7f7;
811
- font-size: {{monospacefontsize}};
812
- line-height: 1.6em;
813
- padding: 1.5em;
814
- margin: 2em 0 1em 0;
815
- overflow: auto;
816
- font-size: {{normalfontsize}}; }
817
- .figure .SourceTitle,
818
- pre .SourceTitle,
819
- .pseudocode .SourceTitle {
820
- font-weight: 700;
821
- font-size: 1em;
822
- text-align: center; }
823
-
824
- pre {
825
- font-family: {{monospacefont}};
826
- font-variant-ligatures: none; }
827
-
828
- .AdmonitionTitle {
829
- font-weight: 700;
830
- font-size: 1em;
831
- text-align: center; }
832
-
833
- .RecommendationTitle {
834
- font-weight: 700;
835
- font-size: 1em;
836
- text-align: center; }
837
-
838
- .figure-title, .FigureTitle, .SourceTitle, .AdmonitionTitle, .RecommendationTitle {
839
- font-weight: 700;
840
- font-size: 1em;
841
- text-align: center; }
842
-
843
- /*
844
- 3.7 Notes
845
- */
846
- .Note, .note {
847
- background-color: #fff495;
848
- color: #47430c;
849
- padding: 0.5em;
850
- margin: 1.5em 0 1.5em 0;
851
- text-align: left; }
852
-
853
- .Note p, .note p {
854
- margin: 0; }
855
-
856
- .Admonition {
857
- background-color: #ffcccc;
858
- color: #47430c;
859
- padding: 0.5em;
860
- margin: 1.5em 0 1.5em 0;
861
- text-align: left; }
862
-
863
- .Admonition p {
864
- margin: 0; }
865
-
866
- /*
867
- 3.8 Examples
868
- */
869
- .example {
870
- background-color: #e1eef1;
871
- padding: 0.5em;
872
- margin: 2em 0 1em 0;
873
- text-align: left;
874
- color: #424242;
875
- padding-left: 2em;
876
- color: black;
877
- padding-left: 0.5em; }
878
- .example p {
879
- margin: 0; }
880
- .example .example-title {
881
- font-weight: 700;
882
- text-transform: uppercase;
883
- margin-left: -1.5em; }
884
- .example .example-title {
885
- margin-top: 0; }
886
- .example pre,
887
- .example .pseudocode {
888
- background: none; }
889
-
890
- /*
891
- 3.9 Tables
892
- */
893
- table {
894
- width: 100%;
895
- font-weight: 300;
896
- margin: 1em 0 2em 0;
897
- margin-left: auto;
898
- margin-right: auto;
899
- padding-right: 2em;
900
- text-align: center; }
901
- table, table th, table td {
902
- border: 1px solid black;
903
- font-size: 0.95em; }
904
- table th, table td {
905
- padding: 1em; }
906
- table td.header {
907
- font-weigth: 400; }
908
-
909
- td,
910
- th {
911
- padding: 1em !important; }
912
-
913
- p.TableTitle {
914
- text-align: center;
915
- margin-top: 2.5em;
916
- font-weight: 800;
917
- font-size: 1.1em; }
918
-
919
- .TableFootnote {
920
- text-align: left !important; }
921
-
922
- /*
923
- 3.10 Footnotes
924
- */
925
- a.footnote-number, a.TableFootnoteRef, span.TableFootnoteRef {
926
- vertical-align: super;
927
- font-size: 0.8em; }
928
-
929
- .footnote {
930
- font-size: {{footnotefontsize}}; }
931
-
932
- sup a {
933
- vertical-align: super;
934
- font-size: 0.8em; }
935
-
936
- #footnote_box {
937
- font-size: {{footnotefontsize}};
938
- background: white;
939
- padding: 0 10px;
940
- margin: 10px;
941
- border: 1px solid #888;
942
- -moz-box-shadow: 0px 0px 5px #888;
943
- -webkit-box-shadow: 0px 0px 5px #888;
944
- box-shadow: 0px 0px 5px #888; }
945
-
946
- ol.footnotes-list, aside.footnote {
947
- margin-left: 1em; }
948
-
949
- ol.footnotes-list li, aside.footnote {
950
- font-size: {{footnotefontsize}};
951
- vertical-align: top;
952
- list-style: decimal;
953
- margin-bottom: 1em; }
954
-
955
- ol.footnotes-list:first-child {
956
- margin-top: 2em; }
957
-
958
- ol.footnotes-list p, aside.footnote p {
959
- display: inline; }
960
-
961
- ol > li > p:before {
962
- content: "";
963
- display: none; }
964
-
965
- /*
966
- 3.11 Blockquotes
967
- */
968
- .Quote {
969
- background-color: #f7f7f7;
970
- font-style: italic;
971
- width: 80%;
972
- padding: 1.5em;
973
- margin-top: 2em;
974
- margin-left: auto;
975
- margin-right: auto; }
976
-
977
- /*
978
- 3.12 Formulas
979
- */
980
- .formula {
981
- background-color: #f7f7f7;
982
- padding: 1.5em;
983
- margin-top: 2em;
984
- text-align: center;
985
- margin-left: 20%;
986
- margin-right: 20%; }
987
-
988
- dl.formula_dl {
989
- background-color: #f7f7f7;
990
- margin-left: 20%;
991
- margin-right: 20%; }
992
-
993
- /*
994
- Keywords
995
- */
996
- span.keyword {
997
- font-weight: 600; }
998
-
999
- .Admonition, .admonition {
1000
- background-color: #ffb3b3;
1001
- /* color: #47430c;*/
1002
- padding: 0.5em;
1003
- margin: 1.5em 0 1.5em 0;
1004
- text-align: left; }
1005
-
1006
- .Admonition p, .admonition p {
1007
- margin: 0; }