metanorma-ribose 2.7.7 → 2.7.8

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: 9d3838b3c591e380f3d4181c3cfc086562d74f1013ad27ace96d39eecf1cd9bd
4
- data.tar.gz: 19925bc0c4bd917e79a7c7b803f7f58d798ec5422944828da679079c6b4d6d7f
3
+ metadata.gz: 64014a9dc6ce1324ae1fb9aeffd03787de0cdcb3cda157646106ae60b68140a4
4
+ data.tar.gz: '0938e80f5ffc88f80c541ff37f6c9cfe827ef345ce0d096a508a8156ab089040'
5
5
  SHA512:
6
- metadata.gz: 7c718aa3dc36f894f235f3ff73ed0c7d02131f5ac56fb59d0b91e16eaff5b192d072707898a4e38d1c9eef6e2a1243c54580498630bcc3ddc250a9999d84e27c
7
- data.tar.gz: 7a5d544904e782bef4d78827801464ea8b36dc40560a6ac6b8809c2c3b87c8e8e0fca57fac2f4431e5412b11b964ef9d53e84ce469333b4ac7863ca8e6a14d35
6
+ metadata.gz: f918f729e8f4682329192f51f3f9f25f4231ab53e966ff8a4585de2e981ffa648b930636d0d49089b539987672368e6f7ab23736da2a93986b41fbf15d705b3b
7
+ data.tar.gz: f19affcdddf969452a379289d1f0f61d50eb6858c59c87758dddc9ba61700b0db9d93823db14021c05a1f572db12b60d4dd5f770f574cc81cbaf38a155879487
@@ -455,6 +455,10 @@ svg {
455
455
  border-bottom: solid 3px #2E382E;
456
456
  }
457
457
 
458
+ :root {
459
+ --ribose-primary-color: #1661AD;
460
+ }
461
+
458
462
  body {
459
463
  margin-left: auto;
460
464
  margin-right: auto;
@@ -506,8 +510,8 @@ main {
506
510
  padding-left: 110px;
507
511
  }
508
512
  #toc .toc-active, #toc li:hover, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) .toc-active, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) li:hover {
509
- background: #1661AD;
510
- box-shadow: inset -5px 0px 10px -5px #1661AD !important;
513
+ background: var(--ribose-primary-color);
514
+ box-shadow: inset -5px 0px 10px -5px var(--ribose-primary-color) !important;
511
515
  }
512
516
  #toc .toc-active a, #toc li:hover a, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) .toc-active a, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) li:hover a {
513
517
  color: #485094;
@@ -581,7 +585,7 @@ main {
581
585
  position: fixed;
582
586
  height: 100%;
583
587
  width: 30px;
584
- background-color: #1661AD;
588
+ background-color: var(--ribose-primary-color);
585
589
  color: white !important;
586
590
  cursor: pointer;
587
591
  z-index: 100;
@@ -865,7 +869,7 @@ h5,
865
869
  h6,
866
870
  .h1, .h2, .h3, .h4, .h5, .h6 {
867
871
  font-family: {{headerfont}};
868
- color: #1661AD;
872
+ color: var(--ribose-primary-color);
869
873
  font-weight: 300;
870
874
  margin-top: 1.6em;
871
875
  margin-bottom: 0.3em;
@@ -898,7 +902,7 @@ h3, .h3 {
898
902
  }
899
903
 
900
904
  .TermNum, .Terms, .AltTerms {
901
- color: #1661AD;
905
+ color: var(--ribose-primary-color);
902
906
  }
903
907
 
904
908
  h2.TermNum {
@@ -936,17 +940,17 @@ a, a:visited {
936
940
 
937
941
  a:hover {
938
942
  color: white;
939
- background: #1661AD;
940
- box-shadow: 3px 0 0 #1661AD, -3px 0 0 #1661AD;
943
+ background: var(--ribose-primary-color);
944
+ box-shadow: 3px 0 0 var(--ribose-primary-color), -3px 0 0 var(--ribose-primary-color);
941
945
  }
942
946
 
943
947
  *::selection {
944
- background: #1661AD;
948
+ background: var(--ribose-primary-color);
945
949
  color: white;
946
950
  }
947
951
 
948
952
  *::-moz-selection {
949
- background: #1661AD;
953
+ background: var(--ribose-primary-color);
950
954
  color: white;
951
955
  }
952
956
 
@@ -1192,14 +1196,14 @@ a.footnote-number {
1192
1196
  margin-top: 5em;
1193
1197
  width: 250px;
1194
1198
  text-align: left;
1195
- border: #1661AD solid 2px;
1196
- color: #1661AD !important;
1199
+ border: var(--ribose-primary-color) solid 2px;
1200
+ color: var(--ribose-primary-color) !important;
1197
1201
  border-radius: 25px;
1198
1202
  }
1199
1203
 
1200
1204
  .contact-info a,
1201
1205
  .contact-info a:hover {
1202
- color: #1661AD;
1206
+ color: var(--ribose-primary-color);
1203
1207
  }
1204
1208
 
1205
1209
  .contact-info p,
@@ -1252,7 +1256,7 @@ h2 p, .h2 p {
1252
1256
  }
1253
1257
 
1254
1258
  .wrapper-top {
1255
- background: linear-gradient(200deg, #0f365e, #1661AD);
1259
+ background: linear-gradient(200deg, #0f365e, var(--ribose-primary-color));
1256
1260
  color: #ffffff;
1257
1261
  padding: 2em 0;
1258
1262
  width: 100%;
@@ -1261,7 +1265,7 @@ h2 p, .h2 p {
1261
1265
  .wrapper-top-bottom {
1262
1266
  width: 0;
1263
1267
  height: 0;
1264
- border-top: 100px solid #1661AD;
1268
+ border-top: 100px solid var(--ribose-primary-color);
1265
1269
  border-right: 100px solid transparent;
1266
1270
  position: absolute;
1267
1271
  }
@@ -9,6 +9,10 @@
9
9
 
10
10
  @use 'base_style/all' as *;
11
11
 
12
+ :root {
13
+ --ribose-primary-color: #1661AD;
14
+ }
15
+
12
16
  body {
13
17
  @include bodyStyle1($normalfontsize, 1.4em, #1d1d1d, #ffffff, 300);
14
18
  // @include sidebarNavContainer(323px);
@@ -19,7 +23,7 @@ main {
19
23
  }
20
24
 
21
25
  #toc, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) {
22
- @include toc(#485094, #1661AD, #485094);
26
+ @include toc(#485094, var(--ribose-primary-color), #485094);
23
27
  @include sidebarToc();
24
28
 
25
29
  .toc-active a {
@@ -49,7 +53,7 @@ nav {
49
53
  }
50
54
 
51
55
  #toggle {
52
- @include sidebarNavToggle(white, #1661AD)
56
+ @include sidebarNavToggle(white, var(--ribose-primary-color))
53
57
  }
54
58
 
55
59
  #myBtn {
@@ -217,7 +221,7 @@ h5,
217
221
  h6,
218
222
  .h1, .h2, .h3, .h4, .h5, .h6 {
219
223
  font-family: $headerfont;
220
- color: #1661AD;
224
+ color: var(--ribose-primary-color);
221
225
  font-weight: 300;
222
226
  margin-top: 1.6em;
223
227
  margin-bottom: 0.3em;
@@ -250,7 +254,7 @@ h3, .h3 {
250
254
  }
251
255
 
252
256
  .TermNum, .Terms, .AltTerms {
253
- color: #1661AD;
257
+ color: var(--ribose-primary-color);
254
258
  }
255
259
 
256
260
  h2.TermNum {
@@ -281,7 +285,7 @@ p.AltTerms {
281
285
  /*
282
286
  3.2 Links
283
287
  */
284
- @include elementStyles(#485094, #1661AD, white);
288
+ @include elementStyles(#485094, var(--ribose-primary-color), white);
285
289
 
286
290
  /*
287
291
  3.3 Lists
@@ -468,15 +472,15 @@ a.footnote-number {
468
472
  width: 250px;
469
473
 
470
474
  text-align: left;
471
- border: #1661AD solid 2px;
472
- color: #1661AD !important;
475
+ border: var(--ribose-primary-color) solid 2px;
476
+ color: var(--ribose-primary-color) !important;
473
477
  border-radius: 25px;
474
478
 
475
479
  }
476
480
 
477
481
  .contact-info a,
478
482
  .contact-info a:hover {
479
- color: #1661AD;
483
+ color: var(--ribose-primary-color);
480
484
  }
481
485
 
482
486
  .contact-info p,
@@ -533,7 +537,7 @@ h2 p, .h2 p {
533
537
  }
534
538
 
535
539
  .wrapper-top {
536
- background: linear-gradient(200deg, #0f365e, #1661AD);
540
+ background: linear-gradient(200deg, #0f365e, var(--ribose-primary-color));
537
541
  color: #ffffff;
538
542
  padding: 2em 0;
539
543
  width: 100%;
@@ -542,7 +546,7 @@ h2 p, .h2 p {
542
546
  .wrapper-top-bottom {
543
547
  width: 0;
544
548
  height: 0;
545
- border-top: 100px solid #1661AD;
549
+ border-top: 100px solid var(--ribose-primary-color);
546
550
  border-right: 100px solid transparent;
547
551
  position: absolute;
548
552
  }
@@ -1009,7 +1009,8 @@
1009
1009
  <!-- repeat table header on each page -->
1010
1010
  <fo:table-row role="SKIP">
1011
1011
  <fo:table-cell text-align="left" role="SKIP">
1012
- <fo:block xsl:use-attribute-sets="references-non-normative-title-style"> <!-- Bibliography section title -->
1012
+ <fo:block xsl:use-attribute-sets="title-style"> <!-- Bibliography section title -->
1013
+ <xsl:call-template name="refine_title-style"/>
1013
1014
  <xsl:apply-templates select="mn:fmt-title/node()"/>
1014
1015
  </fo:block>
1015
1016
  </fo:table-cell>
@@ -11411,17 +11412,18 @@
11411
11412
  <!-- END Admonition -->
11412
11413
  <!-- ================ -->
11413
11414
 
11414
- <xsl:attribute-set name="references-non-normative-title-style">
11415
+ <xsl:attribute-set name="bibliography-title-style">
11415
11416
  <xsl:attribute name="margin-left">-15mm</xsl:attribute>
11416
11417
  <xsl:attribute name="role">H1</xsl:attribute>
11417
11418
  <xsl:attribute name="font-size">22pt</xsl:attribute>
11418
11419
  <xsl:attribute name="font-weight">bold</xsl:attribute>
11420
+ <xsl:attribute name="space-before">0pt</xsl:attribute>
11419
11421
  <xsl:attribute name="margin-bottom">16pt</xsl:attribute>
11420
11422
  <xsl:attribute name="color">black</xsl:attribute>
11421
11423
  <xsl:attribute name="line-height">125%</xsl:attribute>
11422
11424
  </xsl:attribute-set>
11423
11425
 
11424
- <xsl:template name="refine_references-non-normative-title-style">
11426
+ <xsl:template name="refine_bibliography-title-style">
11425
11427
  </xsl:template>
11426
11428
 
11427
11429
  <!-- bibitem in Normative References (references/@normative="true") -->
@@ -13551,6 +13553,7 @@
13551
13553
  <!-- ===================================== -->
13552
13554
 
13553
13555
  <xsl:attribute-set name="annex-title-style">
13556
+ <xsl:attribute name="keep-with-next">always</xsl:attribute>
13554
13557
  </xsl:attribute-set> <!-- annex-title-style -->
13555
13558
 
13556
13559
  <xsl:template name="refine_annex-title-style">
@@ -13617,6 +13620,18 @@
13617
13620
  <xsl:attribute name="space-before">8pt</xsl:attribute>
13618
13621
  <xsl:attribute name="margin-bottom">4pt</xsl:attribute>
13619
13622
  </xsl:if>
13623
+ <xsl:if test="parent::mn:annex"><!-- Annex title -->
13624
+ <xsl:variable name="annex_title_styles">
13625
+ <styles xsl:use-attribute-sets="annex-title-style"><xsl:call-template name="refine_annex-title-style"/></styles>
13626
+ </xsl:variable>
13627
+ <xsl:copy-of select="xalan:nodeset($annex_title_styles)/styles/@*"/>
13628
+ </xsl:if>
13629
+ <xsl:if test="self::mn:references[not(@normative='true')]">
13630
+ <xsl:variable name="bibliography_title_styles">
13631
+ <styles xsl:use-attribute-sets="bibliography-title-style"><xsl:call-template name="refine_bibliography-title-style"/></styles>
13632
+ </xsl:variable>
13633
+ <xsl:copy-of select="xalan:nodeset($bibliography_title_styles)/styles/@*"/>
13634
+ </xsl:if>
13620
13635
  <!-- $namespace = 'rsd' -->
13621
13636
  <xsl:attribute name="role">H<xsl:value-of select="$level"/></xsl:attribute>
13622
13637
  </xsl:template> <!-- refine_title-style -->
@@ -690,7 +690,7 @@ Examples include GRID, LEI, CrossRef, and Ringgold</a:documentation>
690
690
  <define name="CitationType">
691
691
  <attribute name="bibitemid">
692
692
  <a:documentation>Bibliographic item that the citation applies to, referenced as the anchor of a bibliographic description</a:documentation>
693
- <data type="IDREF"/>
693
+ <ref name="IdRefType"/>
694
694
  </attribute>
695
695
  <choice>
696
696
  <zeroOrMore>
@@ -1296,17 +1296,17 @@ for which this claim of validity is made, if applicable</a:documentation>
1296
1296
  </define>
1297
1297
  <define name="validityBegins">
1298
1298
  <element name="validityBegins">
1299
- <ref name="ISO8601Date"/>
1299
+ <ref name="ISO8601DateTime"/>
1300
1300
  </element>
1301
1301
  </define>
1302
1302
  <define name="validityEnds">
1303
1303
  <element name="validityEnds">
1304
- <ref name="ISO8601Date"/>
1304
+ <ref name="ISO8601DateTime"/>
1305
1305
  </element>
1306
1306
  </define>
1307
1307
  <define name="validityRevision">
1308
1308
  <element name="revision">
1309
- <ref name="ISO8601Date"/>
1309
+ <ref name="ISO8601DateTime"/>
1310
1310
  </element>
1311
1311
  </define>
1312
1312
  <define name="TypedTitleString">
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
3
- <!-- VERSION v2.1.3 -->
3
+ <!-- VERSION v2.1.4 -->
4
4
 
5
5
  <!--
6
6
  ALERT: cannot have root comments, because of https://github.com/metanorma/metanorma/issues/437
@@ -905,15 +905,32 @@ titlecase, or lowercase</a:documentation>
905
905
  </element>
906
906
  </define>
907
907
  <define name="image" combine="choice">
908
- <element name="svg">
909
- <a:documentation>Add svg mark up to image</a:documentation>
910
- <oneOrMore>
911
- <choice>
912
- <text/>
913
- <ref name="AnyElement"/>
914
- </choice>
915
- </oneOrMore>
916
- </element>
908
+ <choice>
909
+ <element name="image">
910
+ <ref name="RequiredId"/>
911
+ <ref name="ImageAttributes"/>
912
+ <optional>
913
+ <element name="svg">
914
+ <a:documentation>Allow svg in image/svg, for consistency</a:documentation>
915
+ <oneOrMore>
916
+ <choice>
917
+ <text/>
918
+ <ref name="AnyElement"/>
919
+ </choice>
920
+ </oneOrMore>
921
+ </element>
922
+ </optional>
923
+ </element>
924
+ <element name="svg">
925
+ <a:documentation>Add svg mark up to image</a:documentation>
926
+ <oneOrMore>
927
+ <choice>
928
+ <text/>
929
+ <ref name="AnyElement"/>
930
+ </choice>
931
+ </oneOrMore>
932
+ </element>
933
+ </choice>
917
934
  </define>
918
935
  <define name="ParagraphFnBody" combine="interleave">
919
936
  <ref name="BlockSource">
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ribose
3
- VERSION = "2.7.7".freeze
3
+ VERSION = "2.7.8".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-ribose
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.7
4
+ version: 2.7.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-11-03 00:00:00.000000000 Z
11
+ date: 2025-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-generic