metanorma-vsd 1.0.3 → 1.0.4

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: eb0ddd975a7c6f88cef1b758b5017f844d9512f486367c0b3d586aacd3b5a272
4
- data.tar.gz: ee5c39eea4f1870dd01ad14c3187b021885d5f8db185dc6d9d84dcfb392d4bcb
3
+ metadata.gz: 9e59e9e25bdf8430ba7d4f8758019b459b770951dc7929b059d1cfdcf62cbdc3
4
+ data.tar.gz: 45718e5723fa443acfddb4c817e68c6627c49a580142de078ed5143069913cde
5
5
  SHA512:
6
- metadata.gz: 14d72a825c6923523071e9efd9a12b64fe4c60cb09bbc730322e77d84eb31476c31d066546382ed45c8c6427af776797fc93cf1ec5fb61545ee65a8b05c41e89
7
- data.tar.gz: f55c7619e455ee652bd0801184bf05e7f8bbea7ced1ba41ffa90861f932bb0c4a43dbd3156c2894a5a9babb68e083f5ef14dd4e2cc9d419140d9f3d3ac99352a
6
+ metadata.gz: 50eba30694808a78cfb3a1b198422fda489acda7d75b7034f0279d0c1e30b2a01f4557e571cf66b5209bbe219ae90e9d1243b120d7209fc089b6a750ad7e469e
7
+ data.tar.gz: 9063520884b37f5d9f1fcbfafb33d7dc815d423dc4152d96ab7d588e75965e1fccea657ada0daa83887d00a54f1337e659f675d32de4c4333d52710dbc6c464e
@@ -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
@@ -37,3 +36,15 @@ jobs:
37
36
  - name: Run specs
38
37
  run: |
39
38
  bundle exec rake
39
+ - name: Trigger dependent repositories
40
+ if: github.ref == 'refs/heads/master'
41
+ env:
42
+ GH_USERNAME: ${{ secrets.PAT_USERNAME }}
43
+ GH_ACCESS_TOKEN: ${{ secrets.PAT_TOKEN }}
44
+ run: |
45
+ curl -LO --retry 3 https://raw.githubusercontent.com/metanorma/metanorma-build-scripts/master/trigger-gh-actions.sh
46
+ [[ -f ".github/workflows/dependent_repos.env" ]] && source .github/workflows/dependent_repos.env
47
+ for repo in $DEPENDENT_REPOS
48
+ do
49
+ sh trigger-gh-actions.sh $ORGANISATION $repo $GH_USERNAME $GH_ACCESS_TOKEN $GITHUB_REPOSITORY
50
+ done
@@ -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 for VSD: Metanorma processor for Vitagreen Standard Documents (VSD)
2
2
 
3
3
  image:https://img.shields.io/gem/v/metanorma-vsd.svg["Gem Version", link="https://rubygems.org/gems/metanorma-vsd"]
4
- image:https://travis-ci.com/metanorma/metanorma-vsd.svg["Build Status", link="https://travis-ci.com/metanorma/metanorma-vsd"]
5
- image:https://ci.appveyor.com/api/projects/status/8ugivqot7pi03naw?svg=true["Appveyor Build Status", link="https://ci.appveyor.com/project/metanorma/metanorma-vsd"]
4
+ image:https://github.com/metanorma/metanorma-vsd/workflows/macos/badge.svg["Build Status (macOS)", link="https://github.com/metanorma/metanorma-vsd/actions?workflow=macos"]
5
+ image:https://github.com/metanorma/metanorma-vsd/workflows/ubuntu/badge.svg["Build Status (ubuntu)", link="https://github.com/metanorma/metanorma-vsd/actions?workflow=ubuntu"]
6
+ image:https://github.com/metanorma/metanorma-vsd/workflows/windows/badge.svg["Build Status (Windows)", link="https://github.com/metanorma/metanorma-vsd/actions?workflow=windows"]
6
7
  image:https://codeclimate.com/github/metanorma/metanorma-vsd/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/metanorma/metanorma-vsd"]
7
8
  image:https://img.shields.io/github/issues-pr-raw/metanorma/metanorma-vsd.svg["Pull Requests", link="https://github.com/metanorma/metanorma-vsd/pulls"]
8
9
  image:https://img.shields.io/github/commits-since/metanorma/metanorma-vsd/latest.svg["Commits since latest",link="https://github.com/metanorma/metanorma-vsd/releases"]
@@ -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"/>
@@ -1,12 +1,12 @@
1
1
  require "asciidoctor/standoc/converter"
2
- require 'asciidoctor/acme/converter'
2
+ require 'asciidoctor/generic/converter'
3
3
 
4
4
  module Asciidoctor
5
5
  module Vsd
6
6
  # A {Converter} implementation that generates RSD output, and a document
7
7
  # schema encapsulation of the document for validation
8
8
  #
9
- class Converter < Asciidoctor::Acme::Converter
9
+ class Converter < Asciidoctor::Generic::Converter
10
10
  register_for "vsd"
11
11
 
12
12
  def configuration
@@ -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>
@@ -1,258 +1,95 @@
1
1
  /*
2
- 0 CSS RESET
2
+ 0 CSS RESET
3
3
  */
4
4
 
5
5
  /* http://meyerweb.com/eric/tools/css/reset/
6
- v2.0 | 20110126
7
- License: none (public domain)
6
+ v2.0 | 20110126
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, pre,
63
- a, abbr, acronym, address, big, cite, code,
64
- del, dfn, em, img, ins, kbd, q, s, samp,
65
- small, strike, strong, sub, sup, tt, 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
- h1, h2, h3, h4, h5, h6, .h2Annex {
78
- font-family: $headerfont;
79
- }
80
-
81
- dl {
82
- display: grid;
83
- grid-template-columns: max-content auto;
84
- }
85
-
86
- dt {
87
- grid-column-start: 1;
88
- }
89
-
90
- dd {
91
- grid-column-start: 2;
92
- }
93
-
94
- dd p, dt p {
95
- margin-top: 0px;
96
- }
97
-
98
- /* HTML5 display-role reset for older browsers */
99
- article, aside, details, figcaption, figure,
100
- footer, header, hgroup, menu, nav, section {
101
- display: block;
102
- }
103
- body {
104
- line-height: 1;
105
- }
106
-
107
- blockquote, q {
108
- quotes: none;
109
- }
110
- blockquote:before, blockquote:after,
111
- q:before, q:after {
112
- content: '';
113
- content: none;
114
- }
115
- table {
116
- border-collapse: collapse;
117
- border-spacing: 0;
118
- }
119
-
10
+ @import 'base_style/all';
120
11
 
121
12
  /*
122
13
  1. HTML & Body
123
14
  */
124
15
 
125
- body {
126
- margin: 0;
127
- margin-left: auto;
128
- margin-right: auto;
129
- max-width: 100%;
130
- color: #1d1d1d;
131
- font-weight: 300;
132
- font-size: 15px;
133
- line-height: 1.4em;
134
- background-color: #ffffff;
135
- }
136
-
137
- main {margin: 0 3em 0 6em;}
16
+ body {
17
+ @include bodyStyle1(15px, 1.4em, #1d1d1d, #ffffff, 300);
18
+ font-weight: 400;
138
19
 
139
- #toc{
140
- font-family: $bodyfont;
141
- font-weight: 400;
20
+ pre * {
21
+ font-family: $bodyfont !important;
142
22
  }
23
+ }
24
+
25
+ main {
26
+ margin: 0 3em 0 6em;
27
+ }
143
28
 
144
29
  /*
145
30
  2. Responsive navigation layout
146
31
  */
147
32
 
33
+ #toc {
34
+ @include toc(#485094, #6C734A, #485094);
35
+ @include sidebarToc();
148
36
 
149
- @media (min-width: 768px) {
150
- nav {
151
- position: fixed;
152
- top: 0;
153
- bottom: 0;
154
- left: 0;
155
- width: 323px;
156
- font-size: 0.9em;
157
- overflow: auto;
158
- padding: 0 0 0 45px;
159
- margin-right: 30px;
160
- background-color:#f7f7f7;
161
- }
162
-
163
- #toggle {
164
- position: fixed;
165
- height: 100%;
166
- width: 30px;
167
- background-color:#6C734A;
168
- color: white!important;
169
- cursor: pointer;
170
- z-index: 100;
171
- }
172
-
173
- #toggle span {
174
- text-align: center;
175
- width: 100%;
176
- position: absolute;
177
- top: 50%;
178
- transform: translate(0, -50%);
179
-
180
- }
181
-
182
- .container {
183
- padding-left: 360px;
184
- }
37
+ .toc-active a {
38
+ color: white;
39
+ }
185
40
 
186
- .rule.toc {
187
- display: none;
188
- }
41
+ .toc-active,
42
+ li:hover {
43
+ box-shadow: none !important;
189
44
 
190
- h1.toc-contents {
191
- margin-top: 1em;
45
+ a {
46
+ color: white;
47
+ background: none;
48
+ box-shadow: none;
192
49
  }
50
+ }
193
51
 
194
- ul#toc-list {
195
- padding:0;
196
- margin:0;
197
- }
198
- }
52
+ li a {
53
+ text-transform: uppercase;
54
+ }
199
55
 
200
- @media (max-width: 768px) {
201
- #toc {
202
- padding: 0 1.5em 0 1.5em;
203
- overflow: visible;
56
+ ul {
57
+ a:hover {
58
+ box-shadow: none;
59
+ color: white;
204
60
  }
61
+ }
205
62
  }
206
63
 
207
-
208
-
209
- #toc ul {
210
- margin: 0;
211
- padding: 0;
212
- list-style: none;
213
- }
214
-
215
- #toc li a {
216
- padding: 5px 10px;
217
- }
218
-
219
- #toc a {
220
- color: #485094;
221
- text-decoration: none;
222
- display: block;
223
- }
224
-
225
- #toc a:hover {
226
- box-shadow: none;
227
- color: white;
228
- }
229
-
230
- #toc .h2 {
231
- padding-left: 30px;
64
+ nav {
65
+ @include sidebarNav(#f7f7f7, 323px, 45px);
232
66
  }
233
67
 
234
- #toc .h3 {
235
- padding-left: 50px;
68
+ #toggle {
69
+ @include sidebarNavToggle(white, #6C734A)
236
70
  }
237
71
 
238
- #toc .toc-active a {
239
- color: white;
240
- }
72
+ @media screen and (min-width: 768px) {
73
+ .container {
74
+ padding-left: 360px;
75
+ }
241
76
 
242
- #toc .toc-active, #toc li:hover {
243
- background: #6C734A;
244
- box-shadow: inset -5px 0px 10px -5px #6C734A!important;
77
+ .rule.toc {
78
+ display: none;
79
+ }
245
80
 
246
- }
81
+ h1.toc-contents {
82
+ margin-top: 1em;
83
+ }
247
84
 
248
- #toc li:hover a {
249
- color: white;
250
- background: none;
251
- box-shadow: none;
85
+ ul#toc-list {
86
+ padding: 0;
87
+ margin: 0;
88
+ }
252
89
  }
253
90
 
254
- #toc li a {
255
- text-transform: uppercase;
91
+ div.figure {
92
+ @include figureBlock();
256
93
  }
257
94
 
258
95
  /*
@@ -260,69 +97,32 @@ table {
260
97
  */
261
98
 
262
99
  .document-type-band {
263
- left:0;
264
- top:180px;
265
- height: 100%;
266
- position: fixed;
267
- display: block;
268
- z-index: 99;
269
- /*box-shadow: -5px 0px 10px #1d1d1d*/
270
-
100
+ @include docBand(2, 150, 180px);
271
101
  }
272
102
 
273
103
  .document-stage-band {
274
- left:0;
275
- top:0;
276
- height: 100%;
277
- position: fixed;
278
- display: block;
279
- z-index: 98;
280
- box-shadow: -5px 0px 10px #1d1d1d
281
- }
282
-
283
- .document-type {
284
- position: relative;
285
- width: 25px;
104
+ @include docBand(1, 150);
286
105
  }
287
106
 
288
- .document-stage {
289
- position: relative;
290
- width: 25px;
107
+ .document-stage-band> :first-child {
108
+ font-weight: 300;
291
109
  }
292
110
 
293
- p.document-type, p.document-stage {
294
- color: white;
295
- text-transform: uppercase;
296
- font-size: 0.9em;
297
- font-weight: 400;
298
- letter-spacing: 0.05em;
299
- margin:0;
300
- margin-left: 6px;
301
- writing-mode:tb-rl;
302
- -webkit-transform:rotate(180deg);
303
- -moz-transform:rotate(180deg);
304
- -o-transform: rotate(180deg);
305
- white-space:nowrap;
306
- display:block;
307
- bottom:0;
308
- }
309
-
310
- p.document-type {
311
- font-weight: 400;
312
- height: 150;
111
+ p.document-type,
112
+ p.document-stage {
113
+ @include docBandTitle(150);
313
114
  }
314
115
 
315
116
  #governance-band p.document-type {
316
- font-weight: 400;
317
- height: 230px!important;
117
+ height: 230px !important;
318
118
  }
319
119
 
320
120
  p.document-stage {
321
- font-weight: 300;
322
- height:160px;
121
+ font-weight: 300;
122
+ height: 160px;
323
123
  }
324
124
 
325
- #standard-band p{
125
+ #standard-band p {
326
126
  height: 270px;
327
127
  }
328
128
 
@@ -330,77 +130,78 @@ p.document-stage {
330
130
  height: 150px;
331
131
  }
332
132
 
333
-
334
- #standard-band, #published-band {
335
- background-color: #007864;
133
+ #standard-band,
134
+ #published-band {
135
+ background-color: #007864;
336
136
  }
337
137
 
338
- #standard, #published {
339
- border-bottom: solid 3px #007864;
138
+ #standard,
139
+ #published {
140
+ border-bottom: solid 3px #007864;
340
141
  }
341
142
 
342
- #governance, #policy-and-procedures {
343
- border-bottom: solid 3px #750697;
143
+ #governance,
144
+ #policy-and-procedures {
145
+ border-bottom: solid 3px #750697;
344
146
  }
345
147
 
346
- #governance-band, #policy-and-procedures-band {
347
- background-color: #750697;
148
+ #governance-band,
149
+ #policy-and-procedures-band {
150
+ background-color: #750697;
348
151
  }
349
152
 
350
153
  #guide {
351
- border-bottom: solid 3px #48a0e7;
154
+ border-bottom: solid 3px #48a0e7;
352
155
  }
353
156
 
354
157
  #guide-band {
355
- background-color: #48a0e7;
158
+ background-color: #48a0e7;
356
159
  }
357
160
 
358
161
  .coverpage-maturity {
359
- font-family: $bodyfont;
360
- font-weight: 400;
361
- font-size: 1em;
362
- margin: 0 0 2em 0;
363
- text-transform: uppercase;
364
- }
162
+ @include coverpageStageBlock();
163
+ }
365
164
 
366
- #working-draft, #proposal {
367
- border-bottom: solid 3px #F7803C;
165
+ #working-draft,
166
+ #proposal {
167
+ border-bottom: solid 3px #F7803C;
368
168
  }
369
169
 
370
- #working-draft-band, #proposal-band {
371
- background-color: #F7803C;
170
+ #working-draft-band,
171
+ #proposal-band {
172
+ background-color: #F7803C;
372
173
  }
373
174
 
374
175
  #committee-draft {
375
- border-bottom: solid 3px #fd06fd;
176
+ border-bottom: solid 3px #fd06fd;
376
177
  }
377
178
 
378
179
  #committee-draft-band {
379
- background-color: #fd06fd;
180
+ background-color: #fd06fd;
380
181
  }
381
182
 
382
183
  #draft-standard {
383
- border-bottom: solid 3px #fdf906;
184
+ border-bottom: solid 3px #fdf906;
384
185
  }
385
186
 
386
187
  #draft-standard-band {
387
- background-color: #fdf906;
188
+ background-color: #fdf906;
388
189
  }
389
190
 
390
191
  #standard {
391
- border-bottom: solid 3px #007864;
192
+ border-bottom: solid 3px #007864;
392
193
  }
393
194
 
394
195
  #standard-band {
395
- background-color: #007864;
196
+ background-color: #007864;
396
197
  }
397
198
 
398
199
  #obsolete {
399
- border-bottom: solid 3px #7e0d13;
200
+ border-bottom: solid 3px #7e0d13;
400
201
  }
401
202
 
402
203
  #obsolete-band {
403
- background-color: #7e0d13;
204
+ background-color: #7e0d13;
404
205
  }
405
206
 
406
207
  /*
@@ -467,74 +268,43 @@ p.document-stage {
467
268
  /*
468
269
  3.2 Links
469
270
  */
470
-
471
- a, a:visited{
472
- text-decoration: none;
473
- color: #485094;
474
- }
475
-
476
- a:hover {
477
- color: white;
478
- background: #6C734A;
479
- box-shadow: 3px 0 0 #6C734A, -3px 0 0 #6C734A;
480
- /* padding: 2px 0 2px 0; */
481
- }
482
-
483
- ::selection {
484
- background: #6C734A; /* WebKit/Blink Browsers */
485
- color: white;
486
- }
487
- ::-moz-selection {
488
- background: #6C734A; /* Gecko Browsers */
489
- color: white;
490
- }
491
-
492
- .contact-info a:hover {
493
- color: #485094;
494
- text-decoration: underline;
495
- background: none;
496
- box-shadow: 0 0 0 0;
497
- }
498
-
499
-
271
+ @include elementStyles(#485094, #6C734A, white);
500
272
 
501
273
  /*
502
274
  3.3 Lists
503
275
  */
504
276
 
505
- ul, ol {margin-left: 1.2em;}
277
+ ul, ol {
278
+ margin-left: 1.2em;
279
+ }
506
280
 
507
- ul li {
281
+ ul li {
508
282
  list-style: none;
509
- }
283
+ }
510
284
 
511
- ul li:before {
512
- content: "—";
513
- display: inline-block; width: 1em;
514
- margin-left: -1.2em;
515
- }
285
+ ul li:before {
286
+ content: "—";
287
+ display: inline-block; width: 1em;
288
+ margin-left: -1.2em;
289
+ }
516
290
 
517
- ul li p {
518
- display: inline;
519
- }
291
+ ul li p {
292
+ display: inline;
293
+ }
520
294
 
521
295
  ul li:first-child {
522
296
  margin-top: 1em;
523
297
  }
524
298
 
525
- div.figure > img {
526
- margin-left: auto;
527
- margin-right: auto;
528
- display: block;
529
- max-width: 100%;
530
- height: auto;
299
+ #toc-list ul {
300
+ margin-bottom: 0.25em;
531
301
  }
532
302
 
533
- #toc-list ul {margin-bottom: 0.25em;}
534
-
535
- #toc-list li {list-style-type: none;}
303
+ #toc-list li {
304
+ list-style-type: none;
305
+ }
536
306
 
537
- #toc li:before {
307
+ #toc li:before {
538
308
  content: " ";
539
309
  display: none;
540
310
  }
@@ -543,13 +313,9 @@ height: auto;
543
313
  /*
544
314
  3.4 Rules
545
315
  */
546
-
547
- .rule {
548
- width: 100%;
549
- height: 1px;
550
- background-color: #0e1a85;
551
- margin: 2em 0;
552
- }
316
+ .rule {
317
+ @include rule(1px, #0e1a85)
318
+ }
553
319
 
554
320
  /*
555
321
  3.5 Bibliograhy
@@ -564,24 +330,22 @@ p.Biblio, p.NormRef {
564
330
  3.6 Source Code + figures
565
331
  */
566
332
 
567
- .figure, pre {
568
- font-family: $monospacefont;
569
- font-variant-ligatures: none;
570
- }
333
+ .figure,
334
+ pre,
335
+ .pseudocode {
336
+ @include pseudocodeBlock(#f7f7f7);
337
+ }
571
338
 
572
- .figure, pre, .pseudocode {
573
- background-color: #f7f7f7;
574
- font-size: 0.8em;
575
- line-height: 1.6em;
576
- padding: 1.5em;
577
- margin: 2em 0 1em 0;
578
- overflow: auto;
339
+ pre {
340
+ @include monospaceBlockStyle()
579
341
  }
580
342
 
581
- .FigureTitle, .SourceTitle, .AdmonitionTitle, .RecommendationTitle {
582
- font-weight: 700;
583
- font-size: 1em;
584
- text-align: center;
343
+ @include admonitionBlock();
344
+ @include recommendationBlock();
345
+
346
+ .FigureTitle,
347
+ .SourceTitle {
348
+ @include blockTitle()
585
349
  }
586
350
 
587
351
  /*
@@ -589,14 +353,14 @@ p.Biblio, p.NormRef {
589
353
  */
590
354
 
591
355
  .Note {
592
- background-color: #fff495;
593
- color: #47430c;
594
- padding: 1.2em;
595
- margin: 1em 0 1em 0;
356
+ background-color: #fff495;
357
+ color: #47430c;
358
+ padding: 1.2em;
359
+ margin: 1em 0 1em 0;
596
360
 
597
- p {
598
- margin: 0;
599
- }
361
+ p {
362
+ margin: 0;
363
+ }
600
364
  }
601
365
 
602
366
  /*
@@ -604,20 +368,16 @@ p.Biblio, p.NormRef {
604
368
  */
605
369
 
606
370
  .example {
607
- background-color: #e1eef1;
608
- padding: 1.2em;
609
- margin: 2em 0 1em 0;
610
- }
371
+ @include exampleBlock(#e1eef1, #424242, 1.2em);
611
372
 
612
- .example .example-title {
613
- font-weight: 700;
614
- text-transform: uppercase;
615
- text-align: center;
616
- margin-top:0;
617
- }
373
+ .example-title {
374
+ margin-top: 0;
375
+ }
618
376
 
619
- .example pre, .example .pseudocode {
620
- background: none;
377
+ pre,
378
+ .pseudocode {
379
+ background: none;
380
+ }
621
381
  }
622
382
 
623
383
  /*
@@ -625,26 +385,7 @@ p.Biblio, p.NormRef {
625
385
  */
626
386
 
627
387
  table {
628
- border-collapse: collapse;
629
- width: 100%;
630
- font-weight: 300;
631
- margin: 1em 0 2em 0;
632
- margin-left: auto;
633
- margin-right: auto;
634
- padding-right: 2em;
635
- }
636
-
637
- table, th, td {
638
- border: 1px solid black;
639
- font-size: 0.95em;
640
- }
641
-
642
- td, th {
643
- padding: 1em;
644
- }
645
-
646
- td.header {
647
- font-weight: 400;
388
+ @include table(1px solid black);
648
389
  }
649
390
 
650
391
  p.TableTitle {
@@ -658,8 +399,8 @@ p.TableTitle {
658
399
  */
659
400
 
660
401
  a.footnote-number {
661
- vertical-align: super;
662
- font-size: 0.8em;
402
+ vertical-align: super;
403
+ font-size: 0.8em;
663
404
  }
664
405
 
665
406
  .footnote {
@@ -672,25 +413,15 @@ a.footnote-number {
672
413
  */
673
414
 
674
415
  .Quote {
675
- background-color: #f7f7f7;
676
- font-style: italic;
677
- width: 80%;
678
- padding: 1.5em;
679
- margin-top: 2em;
680
- margin-left: auto;
681
- margin-right: auto;
416
+ @include blockquoteBlock(#f2f2f2);
682
417
  }
683
418
 
684
-
685
419
  /*
686
420
  3.12 Formulas
687
421
  */
688
422
 
689
423
  .formula {
690
- background-color: #f7f7f7;
691
- padding: 1.5em;
692
- margin-top: 2em;
693
- text-align: center;
424
+ @include formulaBlock(#f7f7f7)
694
425
  }
695
426
 
696
427
  /*
@@ -698,10 +429,9 @@ a.footnote-number {
698
429
  */
699
430
 
700
431
  .contact-info {
701
- padding: 2em;
702
- margin-top: 5em;
703
- width: 250px;
704
-
432
+ padding: 2em;
433
+ margin-top: 5em;
434
+ width: 250px;
705
435
  text-align: left;
706
436
  border: #6C734A solid 2px;
707
437
  color: #6C734A!important;
@@ -715,20 +445,20 @@ a.footnote-number {
715
445
  }
716
446
 
717
447
  .contact-info p, .contact-info a {
718
- font-family: $monospacefont;
719
- font-weight: 400;
448
+ font-family: $monospacefont;
449
+ font-weight: 400;
720
450
  }
721
451
 
722
452
  .contact-info .name {
723
- font-weight: 700;
724
- font-size: 1.2em;
725
- margin-bottom:0;
453
+ font-weight: 700;
454
+ font-size: 1.2em;
455
+ margin-bottom:0;
726
456
  }
727
457
 
728
458
  .contact-info .address {
729
- font-size: 1em;
730
- line-height: 1.3em;
731
- margin-top:0;
459
+ font-size: 1em;
460
+ line-height: 1.3em;
461
+ margin-top:0;
732
462
  }
733
463
 
734
464
  /*
@@ -744,8 +474,8 @@ span.keyword {
744
474
  */
745
475
 
746
476
  p {
747
- margin-top: 1em;
748
- margin-bottom: 1em;
477
+ margin-top: 1em;
478
+ margin-bottom: 1em;
749
479
  }
750
480
 
751
481
  h2 p {
@@ -781,107 +511,108 @@ h2 p {
781
511
  position: absolute;
782
512
  }
783
513
 
784
- .doc-number {
785
- font-size: 0.5em;
786
- font-family: $bodyfont;
787
- }
514
+ .doc-number {
515
+ font-size: 0.5em;
516
+ font-family: $bodyfont;
517
+ }
788
518
 
789
- .coverpage-title {
790
- padding-bottom: 0.5em;
791
- font-family: $headerfont;
792
- font-size: 1.2em;
793
- line-height: 1.5em;
519
+ .coverpage-title {
520
+ padding-bottom: 0.5em;
521
+ font-family: $headerfont;
522
+ font-size: 1.2em;
523
+ line-height: 1.5em;
794
524
  font-weight: 100;
795
525
  padding-left: 1em;
796
526
  padding-right: 1em;
797
527
  text-transform: uppercase;
798
- }
528
+ }
799
529
 
800
- .WordSection11 {
801
- padding: 0 2em 0 3em;
802
- }
530
+ .WordSection11 {
531
+ padding: 0 2em 0 3em;
532
+ }
803
533
 
804
534
  .info-section {
805
- padding: 0 2em 0 5em; }
535
+ padding: 0 2em 0 5em;
536
+ }
806
537
 
807
- .prefatory-section {
808
- padding: 0 3em 0 6em;
809
- }
538
+ .prefatory-section {
539
+ padding: 0 3em 0 6em;
540
+ }
810
541
 
811
542
 
812
- .zzSTDTitle1, .MsoCommentText {
813
- display: none;
814
- }
543
+ .zzSTDTitle1, .MsoCommentText {
544
+ display: none;
545
+ }
815
546
 
816
547
 
817
- .coverpage {
818
- text-align: center;
819
- padding-left: 1.5em;
820
- }
548
+ .coverpage {
549
+ text-align: center;
550
+ padding-left: 1.5em;
551
+ }
821
552
 
822
- .coverpage-logo span, .coverpage-tc-name span {
823
- font-family: $bodyfont;
824
- text-transform: none;
825
- font-weight: 300;
826
- }
553
+ .coverpage-logo span, .coverpage-tc-name span {
554
+ font-family: $bodyfont;
555
+ text-transform: none;
556
+ font-weight: 300;
557
+ }
827
558
 
828
- .coverpage-tc-name {
829
- font-size: 1.2em;
830
- line-height: 1.2em;
831
- margin: 0.25em 0;
832
- }
559
+ .coverpage-tc-name {
560
+ font-size: 1.2em;
561
+ line-height: 1.2em;
562
+ margin: 0.25em 0;
563
+ }
833
564
 
834
565
  /*
835
566
  4.2 Document Identity
836
567
  */
837
568
 
838
- .coverpage-doc-identity {
839
- font-size: 2em;
840
- line-height: 2em;
841
- }
569
+ .coverpage-doc-identity {
570
+ font-size: 2em;
571
+ line-height: 2em;
572
+ }
842
573
 
843
- .coverpage-title .title-second {
844
- display: none;
845
- }
574
+ .coverpage-title .title-second {
575
+ display: none;
576
+ }
846
577
 
847
- .coverpage-stage-block {
848
- font-family: $bodyfont;
849
- font-weight: 600;
850
- font-size: 1.25em;
851
- margin: 2em 0em 2em 0em;
852
- text-transform: uppercase;
853
- }
578
+ .coverpage-stage-block {
579
+ font-family: $bodyfont;
580
+ font-weight: 600;
581
+ font-size: 1.25em;
582
+ margin: 2em 0em 2em 0em;
583
+ text-transform: uppercase;
584
+ }
854
585
 
855
586
  /*
856
587
  4.3 Draft Warning
857
588
  */
858
589
 
859
- .coverpage-warning {
860
- border: #f36f36 solid 2px;
590
+ .coverpage-warning {
591
+ border: #f36f36 solid 2px;
861
592
  color: #f36f36!important;
862
593
  margin: 1em 2em;
863
594
  color: #485094;
864
595
  padding: 2em 1em 1em 1em;
865
596
  border-radius: 25px;
866
- }
597
+ }
867
598
 
868
- .coverpage-warning .title {
869
- font-family: $headerfont;
870
- font-weight: 300;
871
- text-transform: uppercase;
872
- font-size: 1.2em;
873
- }
599
+ .coverpage-warning .title {
600
+ font-family: $headerfont;
601
+ font-weight: 300;
602
+ text-transform: uppercase;
603
+ font-size: 1.2em;
604
+ }
874
605
 
875
606
 
876
607
  /*
877
608
  4.4 Copyright
878
609
  */
879
610
 
880
- .copyright {
881
- padding: 1em;
882
- font-size: 0.9em;
883
- text-align: left;
884
- }
611
+ .copyright {
612
+ padding: 1em;
613
+ font-size: 0.9em;
614
+ text-align: left;
615
+ }
885
616
 
886
617
 
887
618
  /* .copyright .name, .copyright .address {color: #485094;} */
@@ -899,32 +630,12 @@ To top button
899
630
  */
900
631
 
901
632
  #myBtn {
902
- font-family: $monospacefont;
903
- display: none;
904
- position: fixed;
905
- bottom: 20px;
906
- right: 30px;
907
- z-index: 99;
908
- font-size: 12px;
909
- border: none;
910
- outline: none;
911
- background-color: #1f8ca0;
912
- opacity: 0.15;
913
- color: white;
914
- cursor: pointer;
915
- padding: 10px 15px 10px 15px;
916
- border-radius: 4px;
917
- text-transform: uppercase;
918
- }
633
+ @include toTopBtn(white, #1f8ca0);
634
+ text-transform: uppercase;
919
635
 
920
- #myBtn:hover {
921
- opacity: 1;
636
+ a.anchorjs-link {
637
+ @include anchorLink(#485094)
922
638
  }
923
-
924
- a.anchorjs-link:hover {
925
- background: none;
926
- color: #485094;
927
- box-shadow: none;
928
639
  }
929
640
 
930
641
  @page {
@@ -932,16 +643,10 @@ To top button
932
643
  }
933
644
 
934
645
  @media print {
935
-
936
-
937
646
  .document-info, nav, .copyright {
938
647
  page-break-before: always;
939
648
  }
940
649
 
941
- nav {
942
- page-break-after: always;
943
- }
944
-
945
650
  h1, h2, h3, h4 {
946
651
  page-break-after: avoid;
947
652
  margin-top: 1.2em;
@@ -975,71 +680,39 @@ To top button
975
680
  display: none;
976
681
  }
977
682
 
978
- button#myBtn {
979
- background-color: white;
980
- }
981
-
982
683
  .container {
983
684
  padding-left: 0;
984
685
  }
985
686
 
986
- nav {
987
- position: relative;
988
- width: auto;
989
- font-size: 0.9em;
990
- overflow: auto;
991
- padding: 0;
992
- margin-right: 0;
993
- background-color: white;
687
+ h1.content {
688
+ margin-top: 2em;
689
+ line-height: 2.5em;
994
690
  }
995
691
 
996
- #toc .toc-active a {
997
- color: #4D7EA5;
692
+ h1 {
693
+ font-size: 1.5em;
694
+ line-height: 1.5;
998
695
  }
999
696
 
1000
- #toc .toc-active, #toc li:hover {
1001
- background: white;
1002
- box-shadow: none !important; }
1003
-
1004
- #toc li:hover a {
1005
- color: black; }
1006
-
1007
-
1008
- h1.content {
1009
- margin-top: 2em;
1010
- line-height: 2.5em;
1011
- }
1012
-
1013
- h1 {
1014
- font-size: 1.5em;
1015
- line-height: 1.5;
1016
- }
1017
-
1018
- h2 {
1019
- font-size: 1.2em
1020
- }
1021
-
1022
- h3 {
1023
- font-size: 1em;
1024
- }
1025
-
1026
- .Note {
1027
- background-color: #fff495;
1028
- color: #47430c;
1029
- padding: 5px;
1030
- margin: 2em 0 1em 0; }
697
+ h2 {
698
+ font-size: 1.2em
699
+ }
1031
700
 
1032
- .Note p {
1033
- padding: 0 5px 0 5px;
1034
- }
701
+ h3 {
702
+ font-size: 1em;
703
+ }
1035
704
 
1036
- nav {
1037
- line-height: 1;
1038
- }
705
+ .Note {
706
+ background-color: #fff495;
707
+ color: #47430c;
708
+ padding: 5px;
709
+ margin: 2em 0 1em 0; }
1039
710
 
1040
- .wrapper-top-bottom {
1041
- display: none;
1042
- }
711
+ .Note p {
712
+ padding: 0 5px 0 5px;
713
+ }
1043
714
 
715
+ .wrapper-top-bottom {
716
+ display: none;
717
+ }
1044
718
  }
1045
-