metanorma-iso 1.3.20 → 1.3.21

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a0620b97c9f91f8019da7ec0cb25086303d5a98c9eda18740e14c581acd8bcea
4
- data.tar.gz: 35ca2d87cf4d58f1d8e8d174f8fe802c1e986ad5a6a6d13dc45125e2f4b9dfd6
3
+ metadata.gz: 62665df85ff03f5ccbe57732b20477b552c423f5fa004f793324cfbce96266d0
4
+ data.tar.gz: cb491baae9f44397948b20169267014f7c79268b497e6ecc4e41fab0628cce3d
5
5
  SHA512:
6
- metadata.gz: 0c99794ef6ca381337f1be16465e1e97ac0656712608d69a7edbb5996213cca0cbe8c2558105e1543e0ef8760b7790dad9bed31b252b34cddd97d54b263be4d3
7
- data.tar.gz: 51ca61be6991b07fd9f3b044bbd268893297bba14b59af561a2082983998e183548108e945cf113a9d0046055ced4f56600b0decc4fde38acb6730dd8295f951
6
+ metadata.gz: 16e5f1a048f7808589ad7be5b3313176fcae4aee2850a3ba9b260709243cca2a196500ac58908bc2f35756b91f05d7861dc156393b29ce539e11cc19e7c807a2
7
+ data.tar.gz: bdd365e2218975f49bda309ec1d63073a5edd25f09b42d3ecdfd462360dee8fe5a39eb14205d4d5fef6b354f560a884316291149b3fad0667c7c490f93eeeeed
@@ -1,12 +1,11 @@
1
- # Auto-generated !!! Do not edit it manually
2
- # use ci-master https://github.com/metanorma/metanorma-build-scripts
1
+ # Auto-generated by Cimas: Do not edit it manually!
2
+ # See https://github.com/metanorma/cimas
3
3
  name: macos
4
4
 
5
5
  on:
6
6
  push:
7
7
  branches: [ master ]
8
8
  pull_request:
9
- branches: [ '**' ]
10
9
 
11
10
  jobs:
12
11
  test-macos:
@@ -1,12 +1,11 @@
1
- # Auto-generated !!! Do not edit it manually
2
- # use ci-master https://github.com/metanorma/metanorma-build-scripts
1
+ # Auto-generated by Cimas: Do not edit it manually!
2
+ # See https://github.com/metanorma/cimas
3
3
  name: ubuntu
4
4
 
5
5
  on:
6
6
  push:
7
7
  branches: [ master ]
8
8
  pull_request:
9
- branches: [ '**' ]
10
9
 
11
10
  jobs:
12
11
  test-linux:
@@ -25,7 +24,7 @@ jobs:
25
24
  architecture: 'x64'
26
25
  - name: Update gems
27
26
  run: |
28
- gem install bundler
27
+ gem install bundler
29
28
  bundle install --jobs 4 --retry 3
30
29
  - name: Use Node
31
30
  uses: actions/setup-node@v1
@@ -1,12 +1,11 @@
1
- # Auto-generated !!! Do not edit it manually
2
- # use ci-master https://github.com/metanorma/metanorma-build-scripts
1
+ # Auto-generated by Cimas: Do not edit it manually!
2
+ # See https://github.com/metanorma/cimas
3
3
  name: windows
4
4
 
5
5
  on:
6
6
  push:
7
7
  branches: [ master ]
8
8
  pull_request:
9
- branches: [ '**' ]
10
9
 
11
10
  jobs:
12
11
  test-windows:
@@ -26,7 +25,7 @@ jobs:
26
25
  - name: Update gems
27
26
  shell: pwsh
28
27
  run: |
29
- gem install bundler
28
+ gem install bundler
30
29
  bundle config --local path vendor/bundle
31
30
  bundle update
32
31
  bundle install --jobs 4 --retry 3
@@ -1,8 +1,9 @@
1
1
  = Metanorma-ISO: Metanorma processor for ISO standards
2
2
 
3
3
  image:https://img.shields.io/gem/v/metanorma-iso.svg["Gem Version", link="https://rubygems.org/gems/metanorma-iso"]
4
- image:https://travis-ci.com/metanorma/metanorma-iso.svg["Build Status", link="https://travis-ci.com/metanorma/metanorma-iso"]
5
- image:https://ci.appveyor.com/api/projects/status/t874i1cbarhnrwki?svg=true["Appveyor Build Status", link="https://ci.appveyor.com/project/metanorma/metanorma-iso"]
4
+ image:https://github.com/metanorma/metanorma-iso/workflows/macos/badge.svg["Build Status (macOS)", link="https://github.com/metanorma/metanorma-iso/actions?workflow=macos"]
5
+ image:https://github.com/metanorma/metanorma-iso/workflows/ubuntu/badge.svg["Build Status (ubuntu)", link="https://github.com/metanorma/metanorma-iso/actions?workflow=ubuntu"]
6
+ image:https://github.com/metanorma/metanorma-iso/workflows/windows/badge.svg["Build Status (Windows)", link="https://github.com/metanorma/metanorma-iso/actions?workflow=windows"]
6
7
  image:https://codeclimate.com/github/metanorma/metanorma-iso/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/metanorma/metanorma-iso"]
7
8
  image:https://img.shields.io/github/issues-pr-raw/metanorma/metanorma-iso.svg["Pull Requests", link="https://github.com/metanorma/metanorma-iso/pulls"]
8
9
  image:https://img.shields.io/github/commits-since/metanorma/metanorma-iso/latest.svg["Commits since latest",link="https://github.com/metanorma/metanorma-iso/releases"]
@@ -36,7 +36,7 @@ module Asciidoctor
36
36
  html_converter(node).convert(@filename + ".xml")
37
37
  doc_converter(node).convert(@filename + ".xml")
38
38
  end
39
- @log.write(@filename + ".err") unless @novalid
39
+ @log.write(@localdir + @filename + ".err") unless @novalid
40
40
  @files_to_delete.each { |f| FileUtils.rm f }
41
41
  ret
42
42
  end
@@ -703,21 +703,11 @@
703
703
  </define>
704
704
  <define name="TypedTitleString">
705
705
  <optional>
706
- <attribute name="type">
707
- <ref name="TitleType"/>
708
- </attribute>
706
+ <attribute name="type"/>
709
707
  </optional>
710
708
  <ref name="FormattedString"/>
711
709
  </define>
712
- <define name="TitleType">
713
- <choice>
714
- <value>alternative</value>
715
- <value>original</value>
716
- <value>unofficial</value>
717
- <value>subtitle</value>
718
- <value>main</value>
719
- </choice>
720
- </define>
710
+ <!-- TitleType = ( "alternative" | "original" | "unofficial" | "subtitle" | "main" ) -->
721
711
  <define name="TypedUri">
722
712
  <optional>
723
713
  <attribute name="type"/>
@@ -101,9 +101,7 @@
101
101
  <ref name="structuredidentifier"/>
102
102
  </zeroOrMore>
103
103
  </define>
104
- <define name="TitleType">
105
- <text/>
106
- </define>
104
+ <!-- TitleType = text -->
107
105
  <define name="sections">
108
106
  <element name="sections">
109
107
  <oneOrMore>
@@ -7,123 +7,42 @@
7
7
  License: none (public domain)
8
8
  */
9
9
 
10
- html, body, div, span, applet, object, iframe,
11
- h1, h2, h3, h4, h5, h6, p, blockquote, pre,
12
- a, abbr, acronym, address, big, cite, code,
13
- del, dfn, em, img, ins, kbd, q, s, samp,
14
- small, strike, strong, sub, sup, tt, var,
15
- b, u, i, center,
16
- ol, ul, li,
17
- fieldset, form, label, legend,
18
- table, caption, tbody, tfoot, thead, tr, th, td,
19
- article, aside, canvas, details, embed,
20
- figure, figcaption, footer, header, hgroup,
21
- menu, nav, output, ruby, section, summary,
22
- time, mark, audio, video {
23
- margin: 0;
24
- padding: 0;
25
- }
26
-
27
- html, body, div, span, applet, object, iframe,
28
- h1, h2, h3, h4, h5, h6, p, blockquote, pre,
29
- a, abbr, acronym, address, big, cite, code,
30
- del, dfn, em, img, ins, kbd, q, s, samp,
31
- small, strike, strong, sub, sup, tt, var,
32
- b, u, i, center,
33
- dl, dt, dd, ol, ul, li,
34
- fieldset, form, label, legend,
35
- table, caption, tbody, tfoot, thead, tr, th, td,
36
- article, aside, canvas, details, embed,
37
- figure, figcaption, footer, header, hgroup,
38
- menu, nav, output, ruby, section, summary,
39
- time, mark, audio, video {
40
- border: 0;
41
- font-size: 100%;
42
- }
43
-
44
- html, body, div, span, applet, object, iframe,
45
- h1, h2, h3, h4, h5, h6, p, blockquote, pre,
46
- a, abbr, acronym, address, big, cite, code,
47
- del, dfn, em, img, ins, kbd, q, s, samp,
48
- small, strike, strong, tt, var,
49
- b, u, i, center,
50
- dl, dd, ol, ul, li,
51
- fieldset, form, label, legend,
52
- table, caption, tbody, tfoot, thead, tr, th, td,
53
- article, aside, canvas, details, embed,
54
- figure, figcaption, footer, header, hgroup,
55
- menu, nav, output, ruby, section, summary,
56
- time, mark, audio, video {
57
- vertical-align: baseline;
58
- }
59
-
60
-
61
- html, body, div, span, applet, object, iframe,
62
- p, blockquote,
63
- a, abbr, acronym, address, big, cite,
64
- del, dfn, em, img, ins, q, s,
65
- small, strike, strong, sub, sup, var,
66
- b, u, i, center,
67
- dl, dt, dd, ol, ul, li,
68
- fieldset, form, label, legend,
69
- table, caption, tbody, tfoot, thead, tr, th, td,
70
- article, aside, canvas, details, embed,
71
- figure, figcaption, footer, header, hgroup,
72
- menu, nav, output, ruby, section, summary,
73
- time, mark, audio, video {
74
- font-family: $bodyfont;
75
- }
76
-
77
- code, pre, tt, kbd, samp {
78
- font-family: $monospacefont;
79
- font-variant-ligatures: none;
80
- }
81
-
82
- code *, pre *, tt *, kbd *, samp * {
83
- font-family: $monospacefont !important;
84
- font-variant-ligatures: none;
85
- }
86
-
87
- h1, h2, h3, h4, h5, h6, .h2Annex {
88
- font-family: $headerfont;
89
- }
90
-
91
- dl {
92
- display: grid;
93
- grid-template-columns: max-content auto;
94
- }
95
-
96
- dt {
97
- grid-column-start: 1;
98
- }
99
-
100
- dd {
101
- grid-column-start: 2;
102
- }
103
-
104
- dd p, dt p {
105
- margin-top: 0px;
106
- }
10
+ @import 'base_style/all';
107
11
 
108
- /* HTML5 display-role reset for older browsers */
109
- article, aside, details, figcaption, figure,
110
- footer, header, hgroup, menu, nav, section {
111
- display: block;
112
- }
113
12
  body {
114
- line-height: 1.3;
13
+ @include bodyStyle1(null, 1.3, -internal-root-color, #ffffff, 300);
14
+
15
+ main {
16
+ margin: 0;
17
+ }
115
18
  }
116
- blockquote, q {
117
- quotes: none;
19
+
20
+ /* HTML5 display-role reset for older browsers */
21
+ article,
22
+ aside,
23
+ details,
24
+ figcaption,
25
+ figure,
26
+ footer,
27
+ header,
28
+ hgroup,
29
+ menu,
30
+ nav,
31
+ section {
32
+ display: block;
118
33
  }
119
- blockquote:before, blockquote:after,
120
- q:before, q:after {
121
- content: '';
122
- content: none;
34
+
35
+ blockquote,
36
+ q {
37
+ quotes: none;
123
38
  }
124
- table {
125
- border-collapse: collapse;
126
- border-spacing: 0;
39
+
40
+ blockquote:before,
41
+ blockquote:after,
42
+ q:before,
43
+ q:after {
44
+ content: '';
45
+ content: none;
127
46
  }
128
47
 
129
48
  /* New CSS */
@@ -138,7 +57,8 @@ main {
138
57
  padding-right: 2em;
139
58
  }
140
59
 
141
- .title-section, .prefatory-section {
60
+ .title-section,
61
+ .prefatory-section {
142
62
  padding-left: 4em;
143
63
  padding-top: 2em;
144
64
  }
@@ -147,7 +67,8 @@ main {
147
67
  margin-bottom: 5em;
148
68
  }
149
69
 
150
- .doctitle-en, .doctitle-fr {
70
+ .doctitle-en,
71
+ .doctitle-fr {
151
72
  margin-top: 2em;
152
73
  text-align: left;
153
74
  }
@@ -158,7 +79,7 @@ main {
158
79
  margin-left: -3em;
159
80
  padding-top: 2em;
160
81
  padding-bottom: 2em;
161
-
82
+
162
83
  }
163
84
 
164
85
  .doctitle-en span {
@@ -169,7 +90,6 @@ main {
169
90
  color: white;
170
91
  }
171
92
 
172
-
173
93
  .doctitle-fr span {
174
94
  font-size: 1.2em;
175
95
  line-height: 1.2em;
@@ -198,7 +118,8 @@ span.title {
198
118
  padding-bottom: 1em;
199
119
  }
200
120
 
201
- .coverpage_docnumber, .coverpage_techcommittee {
121
+ .coverpage_docnumber,
122
+ .coverpage_techcommittee {
202
123
  text-align: right;
203
124
  font-size: 0.9em;
204
125
  line-height: 0.5em;
@@ -222,7 +143,11 @@ h1 {
222
143
  font-weight: 900;
223
144
  }
224
145
 
225
- h2, h3, h4, h5, h6 {
146
+ h2,
147
+ h3,
148
+ h4,
149
+ h5,
150
+ h6 {
226
151
  font-weight: 700;
227
152
  }
228
153
 
@@ -240,7 +165,12 @@ h2 {
240
165
  margin-bottom: 1em;
241
166
  }
242
167
 
243
- h1, h2, h3, h4, h5, h6 {
168
+ h1,
169
+ h2,
170
+ h3,
171
+ h4,
172
+ h5,
173
+ h6 {
244
174
  line-height: 1.2;
245
175
  }
246
176
 
@@ -268,16 +198,37 @@ a {
268
198
  text-decoration-color: black;
269
199
  }
270
200
 
271
- nav a {
272
- color: black;
273
- text-decoration: none;
274
- line-height: 1.2em;
201
+ h2 p {
202
+ display: inline;
203
+ }
204
+
205
+ ul>li {
206
+ list-style: none;
207
+ }
208
+
209
+ ul>li>p:first-child:before {
210
+ content: "\2014";
211
+ display: inline-block;
212
+ width: 1em;
213
+ margin-left: -1.5em;
214
+ margin-right: 0.5em;
215
+ }
216
+
217
+ li p {
218
+ /* display: inline-block; */
219
+ margin-bottom: 0.6em;
220
+ line-height: 1.2;
221
+ }
222
+
223
+ #toc li:before {
224
+ content: " ";
225
+ display: none;
275
226
  }
276
227
 
277
228
  p.AltTerms {
229
+ margin-bottom: 0;
278
230
  font-style: italic;
279
231
  margin-left: 2em;
280
- margin-bottom: 0em;
281
232
  }
282
233
 
283
234
  p.Terms {
@@ -285,47 +236,36 @@ p.Terms {
285
236
  margin-top: 0em;
286
237
  }
287
238
 
288
- /* already added to isodoc/base */
289
- strong, b {
290
- font-weight: bold;
291
- }
292
-
293
239
  /* Navigation*/
294
240
 
295
- @media screen and (min-width: 768px) {
296
- nav {
297
- position: fixed;
298
- top: 0;
299
- bottom: 0;
300
- left: 0;
301
- width: 278px;
302
- font-size: 0.9em;
303
- overflow: auto;
304
- padding: 0 0 0 20px;
305
- background-color:#f7f7f7;
306
- }
241
+ #toc {
242
+ @include toc(null, #1d1d1d, white);
243
+ @include sidebarToc();
307
244
 
308
- #toggle {
309
- position: fixed;
310
- height: 100%;
311
- width: 30px;
312
- background-color:black;
313
- color: white!important;
314
- cursor: pointer;
315
- margin-left: -4em;
316
- margin-top: -2em;
317
- }
245
+ // .toc-active,
246
+ // li:hover {
247
+ // background: #1d1d1d;
248
+ // box-shadow: inset -5px 0px 10px -5px #1d1d1d !important;
249
+ // }
318
250
 
319
- #toggle span {
320
- text-align: center;
321
- width: 100%;
322
- position: absolute;
323
- top: 50%;
324
- transform: translate(0, -50%);
325
-
251
+ li:before {
252
+ content: " ";
253
+ display: none;
326
254
  }
255
+ }
327
256
 
257
+ nav {
258
+ @include sidebarNav(#f7f7f7, 278px, 20px);
259
+ line-height: 1.2em;
260
+ }
261
+
262
+ #toggle {
263
+ @include sidebarNavToggle(white, black);
264
+ margin-left: -4em;
265
+ margin-top: -2em;
266
+ }
328
267
 
268
+ @media screen and (min-width: 768px) {
329
269
  .container {
330
270
  padding-left: 360px;
331
271
  }
@@ -339,23 +279,12 @@ strong, b {
339
279
  }
340
280
 
341
281
  ul#toc-list {
342
- padding:0;
343
- margin:0;
282
+ padding: 0;
283
+ margin: 0;
344
284
  }
345
285
  }
346
286
 
347
287
  @media screen and (max-width: 768px) {
348
- #toc {
349
- padding: 0 1.5em 0 1.5em;
350
- overflow: visible;
351
- }
352
-
353
- #toggle {
354
- display: none;
355
- margin-left: -4em;
356
- margin-top: -2em;
357
- }
358
-
359
288
  body {
360
289
  margin-left: 2em;
361
290
  }
@@ -364,152 +293,51 @@ strong, b {
364
293
  padding: 0;
365
294
  }
366
295
 
367
- .title-section, .prefatory-section {
296
+ .title-section,
297
+ .prefatory-section {
368
298
  padding-left: 0;
369
299
  padding-top: 0;
370
300
  width: 100%;
371
301
  }
372
- }
373
-
374
- div.figure > img {
375
- margin-left: auto;
376
- margin-right: auto;
377
- display: block;
378
- max-width: 100%;
379
- height: auto;
380
- }
381
-
382
-
383
- #toc ul {
384
- margin: 0;
385
- padding: 0;
386
- list-style: none;
387
- }
388
-
389
- #toc li a {
390
- padding: 5px 10px;
391
- }
392
-
393
- #toc a {
394
- text-decoration: none;
395
- display: block;
396
- }
397
-
398
- #toc a:hover {
399
- box-shadow: none;
400
- color: white;
401
- }
402
-
403
- #toc .h2 {
404
- padding-left: 30px;
405
- }
406
-
407
- #toc .h3 {
408
- padding-left: 50px;
409
- }
410
-
411
- #toc .toc-active a {
412
- color: white;
413
- }
414
-
415
- #toc .toc-active, #toc li:hover {
416
- background: #1d1d1d;
417
- box-shadow: inset -5px 0px 10px -5px #1d1d1d!important;
418
-
419
302
  }
420
303
 
421
- #toc li:hover a {
422
- color: white;
304
+ .figure,
305
+ pre,
306
+ .pseudocode {
307
+ @include pseudocodeBlock(#f7f7f7);
308
+ font-size: 1em;
423
309
  }
424
310
 
425
- ul > li {
426
- list-style: none;
427
- }
428
-
429
- ul > li > p:first-child:before {
430
- content: "\2014";
431
- display: inline-block;
432
- width: 1em;
433
- margin-left: -1.5em;
434
- margin-right: 0.5em;
311
+ div.figure {
312
+ @include figureBlock();
435
313
  }
436
314
 
437
- li p {
438
- /* display: inline-block; */
439
- margin-bottom: 0.6em;
440
- line-height: 1.2;
441
- }
442
-
443
- #toc li:before {
444
- content: " ";
445
- display: none;
446
- }
447
-
448
315
  /*
449
316
  Document types + stages
450
317
  */
451
318
 
452
319
  .document-type-band {
453
- left:0;
454
- top:180px;
455
- height: 100%;
456
- position: fixed;
457
- display: block;
458
- z-index: 99;
459
- /*box-shadow: -5px 0px 10px #1d1d1d*/
460
-
320
+ @include docBand(2, 100%, 180px);
461
321
  }
462
322
 
463
323
  .document-stage-band {
464
- left:0;
465
- top:0;
466
- height: 100%;
467
- position: fixed;
468
- display: block;
469
- z-index: 98;
470
- box-shadow: -5px 0px 10px #1d1d1d
471
- }
472
-
473
- .document-type {
474
- position: relative;
475
- width: 25px;
476
- }
477
-
478
- .document-stage {
479
- position: relative;
480
- width: 25px;
324
+ @include docBand(1, 100%);
481
325
  }
482
326
 
483
- p.document-type, p.document-stage {
484
- color: white;
485
- text-transform: uppercase;
486
- font-size: 0.9em;
487
- font-weight: 400;
488
- letter-spacing: 0.05em;
489
- margin:0;
490
- margin-left: 6px;
491
- writing-mode:vertical-rl;
492
- -webkit-transform:rotate(180deg);
493
- -moz-transform:rotate(180deg);
494
- -o-transform: rotate(180deg);
495
- white-space:nowrap;
496
- display:block;
497
- bottom:0;
498
- }
499
-
500
- p.document-type {
501
- font-weight: 400;
502
- height: 210px;
327
+ p.document-type,
328
+ p.document-stage {
329
+ @include docBandTitle(210px);
330
+ writing-mode: vertical-rl;
503
331
  }
504
332
 
505
333
  #governance-band p.document-type {
506
334
  font-weight: 400;
507
- height: 230px!important;
335
+ height: 230px !important;
508
336
  }
509
337
 
510
338
  p.document-stage {
511
339
  font-weight: 300;
512
- height:160px;
340
+ height: 160px;
513
341
  }
514
342
 
515
343
  #standard-band {
@@ -542,7 +370,7 @@ p.document-stage {
542
370
  font-size: 1em;
543
371
  margin: 0 0 2em 0;
544
372
  text-transform: uppercase;
545
- }
373
+ }
546
374
 
547
375
  #working-draft {
548
376
  border-bottom: solid 3px #fda706;
@@ -587,72 +415,90 @@ p.document-stage {
587
415
 
588
416
  /* 3 Other styles */
589
417
 
418
+ /*
419
+ 3.2 Links
420
+ */
421
+ a {
422
+ color: black;
423
+ text-decoration-color: black;
424
+ }
425
+
590
426
  /*
591
427
  3.3 Lists
592
428
  */
593
-
594
- ul, ol {margin-left: 2em;}
595
-
596
- #toc-list ul {margin-bottom: 0.25em;}
597
-
598
- #toc-list ul li {list-style-type: none;}
429
+
430
+ ul,
431
+ ol {
432
+ margin-left: 2em;
433
+ }
434
+
435
+ #toc-list ul {
436
+ margin-bottom: 0.25em;
437
+ }
438
+
439
+ #toc-list ol li {
440
+ list-style-type: none;
441
+ }
599
442
 
600
443
  /*
601
444
  3.4 Rules
602
445
  */
603
446
 
604
447
  .rule {
605
- width: 100%;
606
- height: 1px;
607
- background-color: #0e1a85;
608
- margin: 2em 0;
609
- }
448
+ @include rule(1px, #0e1a85)
449
+ }
610
450
 
611
451
  /*
612
452
  3.5 Bibliograhy
613
453
  */
614
454
 
615
- p.Biblio, p.NormRef {
616
- margin-top: 1em;
617
- margin-left: 2em;
455
+ p.Biblio,
456
+ p.NormRef {
457
+ margin-top: 1em;
458
+ margin-left: 2em;
618
459
  }
619
460
 
620
461
  /*
621
462
  3.6 Source Code + figures
622
463
  */
623
464
 
624
- pre {
625
- font-family: $monospacefont;
626
- font-variant-ligatures: none;
465
+ .figure,
466
+ pre,
467
+ .pseudocode {
468
+ @include pseudocodeBlock(#f7f7f7);
469
+ font-size: 1em;
627
470
  }
628
471
 
629
- .figure, pre, .pseudocode {
630
- background-color: #f7f7f7;
631
- line-height: 1.6em;
632
- padding: 1.5em;
633
- margin: 2em 0 1em 0;
634
- overflow: auto;
472
+ pre {
473
+ @include monospaceBlockStyle()
635
474
  }
636
475
 
637
- .figure-title, .FigureTitle, .SourceTitle, .AdmonitionTitle, .RecommendationTitle {
638
- font-weight: 700;
639
- font-size: 1em;
640
- text-align: center;
476
+ @include admonitionBlock();
477
+ @include recommendationBlock();
478
+
479
+ .figure-title,
480
+ .FigureTitle,
481
+ .SourceTitle,
482
+ .AdmonitionTitle,
483
+ .RecommendationTitle {
484
+ @include blockTitle()
641
485
  }
642
486
 
643
487
  /*
644
488
  3.7 Notes
645
489
  */
646
490
 
647
- .Note, .note {
491
+ .Note,
492
+ .note {
648
493
  background-color: #fff495;
649
494
  color: #47430c;
650
495
  padding: 0.5em;
651
496
  margin: 1.5em 0 1.5em 0;
652
497
  text-align: left;
653
498
  }
654
-
655
- .Note p, .note p {
499
+
500
+ .Note p,
501
+ .note p {
656
502
  margin: 0;
657
503
  }
658
504
 
@@ -674,27 +520,19 @@ text-align: center;
674
520
  */
675
521
 
676
522
  .example {
677
- background-color: #e1eef1;
678
- padding: 0.5em;
679
- margin: 2em 0 1em 0;
680
- text-align: left;
681
- padding-left: 2em;
682
- }
683
-
684
- .example p {
685
- margin: 0;
686
- }
523
+ @include exampleBlock(#e1eef1, black, 0.5em);
524
+ color: black;
687
525
 
688
- .example .example-title {
689
- font-weight: 700;
690
- text-transform: uppercase;
691
- margin-top:0;
692
- margin-left:-1.5em;
693
- }
526
+ padding-left: 2em;
694
527
 
528
+ .example-title {
529
+ margin-left: -1.5em;
530
+ }
695
531
 
696
- .example pre, .example .pseudocode {
697
- background: none;
532
+ pre,
533
+ .pseudocode {
534
+ background: none;
535
+ }
698
536
  }
699
537
 
700
538
  /*
@@ -702,58 +540,47 @@ margin-left:-1.5em;
702
540
  */
703
541
 
704
542
  table {
705
- border-collapse: collapse;
706
- width: 100%;
707
- font-weight: 300;
708
- margin: 1em 0 2em 0;
709
- margin-left: auto;
710
- margin-right: auto;
711
- padding-right: 2em;
712
- text-align: center;
713
- }
714
-
715
- table, th, td {
716
- border: 1px solid black;
717
- font-size: 0.95em;
718
- }
719
-
720
- td, th {
721
- padding: 1em!important;
543
+ @include table(1px solid black);
544
+ text-align: center;
722
545
  }
723
546
 
724
- td.header {
725
- font-weight: 400;
547
+ td,
548
+ th {
549
+ padding: 1em !important;
726
550
  }
727
551
 
728
552
  p.TableTitle {
729
- text-align: center;
730
- margin-top: 2.5em;
731
- font-weight: 800;
732
- font-size: 1.1em;
553
+ text-align: center;
554
+ margin-top: 2.5em;
555
+ font-weight: 800;
556
+ font-size: 1.1em;
733
557
  }
734
558
 
735
559
  .TableFootnote {
736
- text-align: left!important;
560
+ text-align: left !important;
737
561
  }
738
562
 
739
563
  /*
740
564
  3.10 Footnotes
741
565
  */
742
566
 
743
- a.footnote-number, a.TableFootnoteRef, span.TableFootnoteRef {
744
- vertical-align: super;
745
- font-size: 0.8em;
567
+ a.footnote-number,
568
+ a.TableFootnoteRef,
569
+ span.TableFootnoteRef {
570
+ vertical-align: super;
571
+ font-size: 0.8em;
746
572
  }
747
573
 
748
574
  .footnote {
749
- font-size: 0.9em;
575
+ font-size: 0.9em;
750
576
  }
751
577
 
752
- sup a {
753
- vertical-align: super;
578
+ sup a {
579
+ vertical-align: super;
754
580
  font-size: 0.8em;
755
- }
756
- #footnote_box {
581
+ }
582
+
583
+ #footnote_box {
757
584
  font-size: 14px;
758
585
  background: white;
759
586
  padding: 0 10px;
@@ -762,69 +589,61 @@ sup a {
762
589
  -moz-box-shadow: 0px 0px 5px #888;
763
590
  -webkit-box-shadow: 0px 0px 5px #888;
764
591
  box-shadow: 0px 0px 5px #888;
765
- }
766
-
767
- ol.footnotes-list, aside.footnote {
768
- margin-left: 1em;
769
-
770
- }
771
-
772
- ol.footnotes-list li, aside.footnote {
773
- font-size: 0.9em;
774
- vertical-align: top;
775
- list-style:decimal;
776
- margin-bottom: 1em;
777
- }
778
-
779
- ol.footnotes-list:first-child {
780
- margin-top: 2em;
781
- }
782
-
783
- ol.footnotes-list p, aside.footnote {
784
- display: inline;
785
- }
786
-
787
- ol > li > p:before {
788
- content: "";
789
- display: none;
790
- }
791
-
592
+ }
593
+
594
+ ol.footnotes-list,
595
+ aside.footnote {
596
+ margin-left: 1em;
597
+
598
+ }
599
+
600
+ ol.footnotes-list li,
601
+ aside.footnote {
602
+ font-size: 0.9em;
603
+ vertical-align: top;
604
+ list-style: decimal;
605
+ margin-bottom: 1em;
606
+ }
607
+
608
+ ol.footnotes-list:first-child {
609
+ margin-top: 2em;
610
+ }
611
+
612
+ ol.footnotes-list p,
613
+ aside.footnote {
614
+ display: inline;
615
+ }
616
+
617
+ ol>li>p:before {
618
+ content: "";
619
+ display: none;
620
+ }
792
621
 
793
622
 
794
623
  /*
795
624
  3.11 Blockquotes
796
625
  */
797
626
 
798
- .blockquote, .Quote {
799
- background-color: #f7f7f7;
800
- font-style: italic;
801
- width: 80%;
802
- padding: 1.5em;
803
- margin-top: 2em;
804
- margin-left: auto;
805
- margin-right: auto;
627
+ .Quote {
628
+ @include blockquoteBlock(#f7f7f7);
806
629
  }
807
630
 
808
-
809
631
  /*
810
632
  3.12 Formulas
811
633
  */
812
634
 
813
635
  .formula {
814
- background-color: #f7f7f7;
815
- padding: 1.5em;
816
- margin-top: 2em;
817
- text-align: center;
818
- margin-left: 20%;
819
- margin-right: 20%;
820
- font-size: 0.9em;
636
+ @include formulaBlock(#f7f7f7);
637
+ margin-left: 20%;
638
+ margin-right: 20%;
639
+ font-size: 0.9em;
821
640
  }
822
641
 
823
642
  dl.formula_dl {
824
- background-color: #f7f7f7;
825
- margin-left: 20%;
826
- margin-right: 20%;
827
- font-size: 0.9em;
643
+ background-color: #f7f7f7;
644
+ margin-left: 20%;
645
+ margin-right: 20%;
646
+ font-size: 0.9em;
828
647
  }
829
648
 
830
649
  /*
@@ -832,11 +651,11 @@ Keywords
832
651
  */
833
652
 
834
653
  span.keyword {
835
- font-weight: 600;
654
+ font-weight: 600;
836
655
  }
837
656
 
838
-
839
- .Admonition, .admonition {
657
+ .Admonition,
658
+ .admonition {
840
659
  background-color: #ffb3b3;
841
660
  /* color: #47430c;*/
842
661
  padding: 0.5em;
@@ -844,9 +663,7 @@ font-weight: 600;
844
663
  text-align: left;
845
664
  }
846
665
 
847
- .Admonition p, .admonition p {
666
+ .Admonition p,
667
+ .admonition p {
848
668
  margin: 0;
849
669
  }
850
-
851
-
852
-