metanorma-csa 1.4.4 → 1.4.5

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: 39b9bbb2fdda182fcb30aea6c694b1447f8cf20ef7ea77473c4157c638256c8b
4
- data.tar.gz: cf509fbf6d98e06de5b5f21126f898c95092ace3ecbd54e6a784a7ee8dc2b158
3
+ metadata.gz: a936662d3fae0f59d0d362a0c8a390d96feaf6d25bc18644c464d083ed3f7920
4
+ data.tar.gz: 8156361eb7d05ad244d45a12de1e50114fd7c71d45ce358244f1c5b21aa7591b
5
5
  SHA512:
6
- metadata.gz: 8daec0901b1e3067f9283ef7a0dc2c4c790ab8f0ca13ff1830248b61e91423f21e87cc17ed0e8222556b5b100a6beaa262ba40602e2e400f444c4ad929646c88
7
- data.tar.gz: 1d9c174b82c0b5d1693f0de26f13bbedd7152bf6f7644f05931d3913aa117c78540f2eaa8fa6e7de09d647e0cf80d33b2eddaff752cad74bff613cc1c083cfa2
6
+ metadata.gz: 165df74b1e786c2eefaeeb7f9ec90cd3a2cbfcd8f324362fca919f1da83c6b7370c856820d9f05ba879cfdbd4aec8e61508fda4ad005a1683caf40010d920e3c
7
+ data.tar.gz: 8f78eff9d049ed33b56119d3c92f80c7f8a90476506541ceed6bf578cfc92ca68a5b6aa41ab82e6bee0889a9b6fd73b575dca128eb3cd95bad0037b9889a75bb
@@ -1,91 +1,41 @@
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
- }
10
+ @import 'base_style/all';
26
11
 
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;
12
+ body {
13
+ @include bodyStyle1(15px, 1.4em, #1d1d1d, #ffffff, 300);
14
+ // @include sidebarNavContainer(323px);
75
15
  }
76
16
 
77
- code, pre, tt, kbd, samp {
78
- font-family: $monospacefont;
79
- font-variant-ligatures: none;
17
+ main {
18
+ margin: 0 3em 0 6em;
80
19
  }
81
20
 
82
- code *, pre *, tt *, kbd *, samp * {
83
- font-family: $monospacefont !important;
84
- font-variant-ligatures: none;
85
- }
21
+ #toc {
22
+ @include toc(#4D7EA5, #4D7EA5, #4D7EA5);
23
+ @include sidebarToc();
86
24
 
87
- h1, h2, h3, h4, h5, h6, .h2Annex {
88
- font-family: $headerfont;
25
+ .toc-active a {
26
+ color: white;
27
+ }
28
+
29
+ li a {
30
+ text-transform: none;
31
+ }
32
+
33
+ ul {
34
+ a:hover {
35
+ box-shadow: none;
36
+ color: white;
37
+ }
38
+ }
89
39
  }
90
40
 
91
41
  li {
@@ -93,110 +43,19 @@ li {
93
43
  list-style-position: outside;
94
44
  }
95
45
 
96
- dl {
97
- display: grid;
98
- grid-template-columns: max-content auto;
99
- }
100
-
101
- dt {
102
- font-weight: 500;
103
- grid-column-start: 1;
104
- }
105
-
106
- dd {
107
- grid-column-start: 2;
46
+ nav {
47
+ @include sidebarNav(#f7f7f7, 323px, 45px);
108
48
  }
109
49
 
110
- dd p, dt p {
111
- margin-top: 0px;
112
- }
113
-
114
-
115
- /* HTML5 display-role reset for older browsers */
116
- article, aside, details, figcaption, figure,
117
- footer, header, hgroup, menu, nav, section {
118
- display: block;
119
- }
120
- body {
121
- line-height: 1;
122
- }
123
- blockquote, q {
124
- quotes: none;
125
- }
126
- blockquote:before, blockquote:after,
127
- q:before, q:after {
128
- content: '';
129
- content: none;
130
- }
131
- table {
132
- border-collapse: collapse;
133
- border-spacing: 0;
134
- }
135
-
136
-
137
- /*
138
- 1. HTML & Body
139
- */
140
-
141
- body {
142
- margin: 0;
143
- margin-left: auto;
144
- margin-right: auto;
145
- max-width: 100%;
146
- color: #1d1d1d;
147
- font-weight: 300;
148
- font-size: 15px;
149
- line-height: 1.4em;
150
- background-color: #ffffff;
151
- }
152
-
153
- main {
154
- margin: 0 3em 0 6em;
155
- }
156
-
157
- #toc {
158
- font-family: $bodyfont;
159
- font-weight: 400;
50
+ #toggle {
51
+ @include sidebarNavToggle(white, #4D7EA5)
160
52
  }
161
53
 
162
54
  /*
163
- 2. Responsive navigation layout
55
+ 2. Responsive navigation layout
164
56
  */
165
57
 
166
-
167
58
  @media screen and (min-width: 768px) {
168
- nav {
169
- position: fixed;
170
- top: 0;
171
- bottom: 0;
172
- left: 0;
173
- width: 323px;
174
- font-size: 0.9em;
175
- overflow: auto;
176
- padding: 0 0 0 45px;
177
- margin-right: 30px;
178
- background-color: #f7f7f7;
179
- }
180
-
181
- #toggle {
182
- position: fixed;
183
- height: 100%;
184
- width: 30px;
185
- background-color: #4D7EA5;
186
- color: white!important;
187
- cursor: pointer;
188
- z-index: 100;
189
- }
190
-
191
- #toggle span {
192
- text-align: center;
193
- width: 100%;
194
- position: absolute;
195
- top: 50%;
196
- transform: translate(0, -50%);
197
- }
198
-
199
-
200
59
  .container {
201
60
  padding-left: 360px;
202
61
  }
@@ -213,127 +72,33 @@ main {
213
72
  padding: 0;
214
73
  margin: 0;
215
74
  }
216
-
217
- }
218
-
219
- @media screen and (max-width: 768px) {
220
- #toc {
221
- padding: 0 1.5em 0 1.5em;
222
- overflow: visible;
223
- }
224
-
225
- }
226
-
227
- div.figure > img {
228
- margin-left: auto;
229
- margin-right: auto;
230
- display: block;
231
- max-width: 100%;
232
- height: auto;
233
- }
234
-
235
-
236
- #toc ul {
237
- margin: 0;
238
- padding: 0;
239
- list-style: none;
240
- }
241
-
242
- #toc li a {
243
- padding: 5px 10px;
244
- }
245
-
246
- #toc a {
247
- color: #4D7EA5;
248
- text-decoration: none;
249
- display: block;
250
- }
251
-
252
- #toc a:hover {
253
- box-shadow: none;
254
- color: white;
255
- }
256
-
257
- #toc .h2 {
258
- padding-left: 30px;
259
- }
260
-
261
- #toc .h3 {
262
- padding-left: 50px;
263
- }
264
-
265
- #toc .toc-active a {
266
- color: white;
267
- }
268
-
269
- #toc .toc-active, #toc li:hover {
270
- background: #4D7EA5;
271
- box-shadow: inset -5px 0px 10px -5px #4D7EA5!important;
272
- }
273
-
274
- #toc li:hover a {
275
- color: white;
276
75
  }
277
76
 
278
77
  /*
279
- Document types + stages
78
+ Document types + stages
280
79
  */
281
80
 
282
81
  .document-type-band {
283
- left: 0;
284
- top: 180px;
285
- height: 100%;
286
- position: fixed;
287
- display: block;
288
- z-index: 99;
289
- /*box-shadow: -5px 0px 10px #1d1d1d*/
82
+ @include docBand(2, 100%, 180px);
83
+ &> :first-child {
84
+ height: 120px;
85
+ }
290
86
  }
291
87
 
292
88
  .document-stage-band {
293
- left: 0;
294
- top: 0;
295
- height: 100%;
296
- position: fixed;
297
- display: block;
298
- z-index: 98;
299
- /*box-shadow: -5px 0px 10px #1d1d1d*/
300
- }
301
-
302
- .document-type {
303
- position: relative;
304
- width: 25px;
305
- }
306
-
307
- .document-stage {
308
- position: relative;
309
- width: 25px;
310
- }
311
-
312
- p.document-type, p.document-stage {
313
- color: white;
314
- text-transform: uppercase;
315
- font-size: 0.9em;
316
- font-weight: 400;
317
- letter-spacing: 0.05em;
318
- margin: 0;
319
- margin-left: 6px;
320
- writing-mode: tb-rl;
321
- -webkit-transform: rotate(180deg);
322
- -moz-transform: rotate(180deg);
323
- -o-transform: rotate(180deg);
324
- white-space: nowrap;
325
- display: block;
326
- bottom: 0;
89
+ @include docBand(1, 160px);
90
+ &> :first-child {
91
+ font-weight: 300;
92
+ }
327
93
  }
328
94
 
329
- p.document-type {
330
- font-weight: 400;
331
- height: 120px;
95
+ p.document-type,
96
+ p.document-stage {
97
+ @include docBandTitle(120px);
332
98
  }
333
99
 
334
100
  #governance-band p.document-type {
335
- font-weight: 400;
336
- height: 230px!important;
101
+ height: 230px !important;
337
102
  }
338
103
 
339
104
  p.document-stage {
@@ -341,8 +106,13 @@ p.document-stage {
341
106
  height: 160px;
342
107
  }
343
108
 
109
+ dt {
110
+ font-weight: 500;
111
+ }
112
+
344
113
  #standard-band {
345
114
  color: #0ac442;
115
+ background: none;
346
116
  }
347
117
 
348
118
  #standard {
@@ -366,19 +136,18 @@ p.document-stage {
366
136
  }
367
137
 
368
138
  .coverpage-maturity {
369
- font-family: $bodyfont;
370
- font-weight: 400;
371
- font-size: 1em;
372
- margin: 0 0 2em 0;
373
- text-transform: uppercase;
139
+ @include coverpageStageBlock();
374
140
  }
375
141
 
376
142
  #working-draft {
377
143
  border-bottom: solid 3px #fda706;
378
144
  }
379
145
 
380
- #working-draft-band p {
381
- color: #fda706;
146
+ #working-draft-band {
147
+ p {
148
+ color: #fda706;
149
+ }
150
+ background: none;
382
151
  }
383
152
 
384
153
  #committee-draft {
@@ -484,40 +253,10 @@ span.obligation {
484
253
  font-weight: 400;
485
254
  }
486
255
 
487
-
488
256
  /*
489
257
  3.2 Links
490
258
  */
491
-
492
- a, a:visited {
493
- text-decoration: none;
494
- color: #4D7EA5;
495
- }
496
-
497
- a:hover {
498
- color: white;
499
- background: #4D7EA5;
500
- box-shadow: 3px 0 0 #4D7EA5, -3px 0 0 #4D7EA5;
501
- /* padding: 2px 0 2px 0; */
502
- }
503
-
504
- ::selection {
505
- background: #4D7EA5; /* WebKit/Blink Browsers */
506
- color: white;
507
- }
508
- ::-moz-selection {
509
- background: #4D7EA5; /* Gecko Browsers */
510
- color: white;
511
- }
512
-
513
- .contact-info a:hover {
514
- color: #4D7EA5;
515
- text-decoration: underline;
516
- background: none;
517
- box-shadow: 0 0 0 0;
518
- }
519
-
520
-
259
+ @include elementStyles(#4D7EA5, #4D7EA5, white);
521
260
 
522
261
  /*
523
262
  3.3 Lists
@@ -536,16 +275,12 @@ ul, ol {
536
275
  list-style-type: none;
537
276
  }
538
277
 
539
-
540
278
  /*
541
279
  3.4 Rules
542
280
  */
543
281
 
544
282
  .rule {
545
- width: 100%;
546
- height: 1px;
547
- background-color: #00427e;
548
- margin: 2em 0;
283
+ @include rule(1px, #00427e)
549
284
  }
550
285
  /*
551
286
  h2 p {
@@ -568,25 +303,25 @@ p.Biblio, p.NormRef {
568
303
  */
569
304
 
570
305
  .Sourcecode {
571
- font-family: $monospacefont;
572
- font-variant-ligatures: none;
306
+ @include monospaceBlockStyle()
573
307
  }
574
308
 
575
- .figure, .Sourcecode, .pseudocode {
576
- background-color: #F5F6F6;
309
+ .figure,
310
+ .Sourcecode,
311
+ .pseudocode {
312
+ @include pseudocodeBlock(#F5F6F6, rgb(91, 94, 95));
577
313
  font-size: 1em;
578
- line-height: 1.6em;
579
- overflow: auto;
580
314
  border-left: solid 5px #B1B6B8;
581
- color: rgb(91, 94, 95);
582
315
  padding: 1.2em 1.2em 1.2em 2.2em;
583
- margin: 2em 0 2em -1em;;
316
+ margin: 2em 0 2em -1em;
584
317
  }
585
318
 
586
- .FigureTitle, .SourceTitle, .AdmonitionTitle, .RecommendationTitle {
587
- font-weight: 700;
588
- font-size: 1em;
589
- text-align: center;
319
+ @include admonitionBlock();
320
+ @include recommendationBlock();
321
+
322
+ .FigureTitle,
323
+ .SourceTitle {
324
+ @include blockTitle()
590
325
  }
591
326
 
592
327
  /*
@@ -622,7 +357,7 @@ td.example_label {
622
357
  padding: 0;
623
358
  }
624
359
 
625
- td > p.example {
360
+ td>p.example {
626
361
  margin: 0;
627
362
  border-left: solid 5px #B1B6B8;
628
363
  padding: 1em;
@@ -637,60 +372,35 @@ td.example_label {
637
372
  }
638
373
 
639
374
  .example {
640
- background-color: #F5F6F6;
641
- color: rgb(91, 94, 95);
642
- padding: 0.5em;
643
- margin: 2em 0 1em 0;
644
- text-align: left;
645
- padding-left: 2em;
646
- }
647
-
648
- .example p {
649
- margin: 0;
650
- }
375
+ @include exampleBlock(#F5F6F6, rgb(91, 94, 95));
376
+ color: rgb(91, 94, 95);
651
377
 
652
- .example .example-title {
653
- font-weight: 700;
654
- font-size: 1.2em;
655
- text-transform: uppercase;
656
- margin-top:0;
657
- margin-left:-1.5em;
658
- }
378
+ .example-title {
379
+ margin-top: 0;
380
+ font-size: 1.2em;
381
+ }
659
382
 
660
- .example .Sourcecode, .example .pseudocode {
661
- background: none;
383
+ .Sourcecode,
384
+ .pseudocode {
385
+ background: none;
386
+ }
662
387
  }
663
388
 
664
-
665
-
666
389
  /*
667
390
  3.9 Tables
668
391
  */
669
392
 
670
393
  table {
671
- border-collapse: collapse;
672
- width: 100%;
673
- font-weight: 300;
674
- margin: 1em 0 2em 0;
675
- margin-left: auto;
676
- margin-right: auto;
677
- padding-right: 2em;
678
- border: solid 1px #F5F6F6!important;
394
+ @include table(1px solid black);
679
395
  }
680
396
 
681
- table, th, td {
682
- border: none!important;
397
+ table,
398
+ th,
399
+ td {
400
+ border: none !important;
683
401
  font-size: 1em;
684
402
  }
685
403
 
686
- td, th {
687
- padding: 1em;
688
- }
689
-
690
- td.header {
691
- font-weight: 400;
692
- }
693
-
694
404
  tr:nth-child(even) {
695
405
  background-color: #FBF9F8;
696
406
  }
@@ -701,12 +411,6 @@ thead {
701
411
  border: none;
702
412
  }
703
413
 
704
- p.TableTitle {
705
- text-align: center;
706
- margin-top: 2.5em;
707
- font-weight: 400;
708
- }
709
-
710
414
  /*
711
415
  3.10 Footnotes
712
416
  */
@@ -726,19 +430,12 @@ a.footnote-number {
726
430
  */
727
431
 
728
432
  .Quote {
729
- background-color: #F5F6F6;
730
- border-left: solid 5px #B1B6B8;
731
- color: rgb(91, 94, 95);
433
+ @include blockquoteBlock(#F5F6F6, true);
732
434
  padding: 1.2em 1.2em 1.2em 2.2em;
733
- margin: 2em 0 2em -1em;;
734
- font-style: italic;
735
- }
736
-
737
- .QuoteAttribution {
738
- text-align: right;
435
+ margin: 2em 0 2em -1em;
436
+ border-left: solid 5px #B1B6B8;
739
437
  }
740
438
 
741
-
742
439
  /*
743
440
  3.12 Formulas
744
441
  */
@@ -766,9 +463,9 @@ a.footnote-number {
766
463
  text-align: left;
767
464
  }
768
465
 
769
- .contact-info p, .contact-info a {
770
- font-family: $monospacefont;
771
- font-variant-ligatures: none;
466
+ .contact-info p,
467
+ .contact-info a {
468
+ @include monospaceBlockStyle();
772
469
  font-weight: 400;
773
470
  }
774
471
 
@@ -792,6 +489,13 @@ span.keyword {
792
489
  font-weight: 400;
793
490
  }
794
491
 
492
+ p {
493
+ font-size: 1.2em;
494
+ line-height: 1.5;
495
+ margin-top: 1em;
496
+ margin-bottom: 1em;
497
+ }
498
+
795
499
  /*
796
500
  Paragraphs
797
501
  */
@@ -1029,32 +733,12 @@ To top button
1029
733
  */
1030
734
 
1031
735
  #myBtn {
1032
- font-family: $monospacefont;
1033
- font-variant-ligatures: none;
1034
- display: none;
1035
- position: fixed;
1036
- bottom: 20px;
1037
- right: 30px;
1038
- z-index: 99;
1039
- font-size: 12px;
1040
- border: none;
1041
- outline: none;
1042
- background-color: #4D7EA5;
1043
- opacity: 0.15;
1044
- color: white;
1045
- cursor: pointer;
1046
- padding: 10px 15px 10px 15px;
1047
- border-radius: 4px;
1048
- }
1049
-
1050
- #myBtn:hover {
1051
- opacity: 1;
1052
- }
736
+ @include toTopBtn(white, #1f8ca0);
737
+ text-transform: uppercase;
1053
738
 
1054
- a.anchorjs-link:hover {
1055
- background: none;
1056
- color: #485094;
1057
- box-shadow: none;
739
+ a.anchorjs-link {
740
+ @include anchorLink(#4D7EA5)
741
+ }
1058
742
  }
1059
743
 
1060
744
  nav h1:hover a:after {
@@ -1069,6 +753,10 @@ nav h1:hover a:after {
1069
753
  color: #4D7EA5!important;
1070
754
  }
1071
755
 
756
+ .document-stage-band {
757
+ box-shadow: none;
758
+ }
759
+
1072
760
  @page {
1073
761
  margin: 1cm;
1074
762
  }
@@ -1097,16 +785,6 @@ nav h1:hover a:after {
1097
785
  padding-left: 0;
1098
786
  }
1099
787
 
1100
- nav {
1101
- position: relative;
1102
- width: auto;
1103
- font-size: 0.9em;
1104
- overflow: auto;
1105
- padding: 0;
1106
- margin-right: 0;
1107
- background-color: white;
1108
- }
1109
-
1110
788
  #toc .toc-active a {
1111
789
  color: #4D7EA5;
1112
790
  }
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Metanorma
4
4
  module Csa
5
- VERSION = '1.4.4'
5
+ VERSION = '1.4.5'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-csa
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.4
4
+ version: 1.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-02-17 00:00:00.000000000 Z
11
+ date: 2020-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: htmlentities