metanorma-itu 2.0.0 → 2.0.1

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: 3fdddaec3384534927a88d4a07598884be02c732c4c22ebb4f48a25d1ba25e26
4
- data.tar.gz: e2f5b1459929f5e8a1db46fa2a38ab0bfee5c582a7c9fd5c482fb28bb7de9f56
3
+ metadata.gz: 5edf39d184a64b3dea930821b40da7c92071b6a41194d5faac3f8e6f75167528
4
+ data.tar.gz: f0501d3013f6b7f1b4d6b3b0d191084b2a653111d8fb7cdc8ac7821910a0f147
5
5
  SHA512:
6
- metadata.gz: 5e8eb91dcc35be210a9f55eaa7e256d1a5c31785341e3749667eca9a0c6a97e1c2f2c7a283711520f476377ad2db75d791acf4f43da567833f65c8cb53c74d32
7
- data.tar.gz: 4471f53be6a4fd4167e70b6670a68b9b67cef8e3421075e049bd871acc443b4ade5cb3766dc0904c5980caa5f157fc3a258b095fd3e22f910b945fdefc89f2b3
6
+ metadata.gz: 1e0fe821463e07e9db98a9d2cf8179135b92dd825999af71f4585ddeaf3370cdd478cf3b7a54b18175f016082bd7f1f95ec455432e73c2f88cdd268ff7c1d9d1
7
+ data.tar.gz: dac3cf8c61853963698b124fc6a909c62b44f08156a5be3bfa750d65ef6aaee411a51584f53c9e6e3abb0d2ecef1ae2bd52201fb6f8b278d10826483c70f19c9
@@ -53,6 +53,7 @@ module IsoDoc
53
53
  end
54
54
 
55
55
  def annex_name(annex, name, div)
56
+ preceding_floating_titles(name, div)
56
57
  r_a = @meta.get[:doctype_original] == "recommendation-annex"
57
58
  div.h1 **{ class: r_a ? "RecommendationAnnex" : "Annex" } do |t|
58
59
  name&.children&.each { |c2| parse(c2, t) }
@@ -678,57 +678,61 @@ nav #toc {
678
678
  nav #toc {
679
679
  padding: 0 1.5em;
680
680
  overflow: visible; } }
681
- #toc {
681
+ #toc, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) {
682
682
  font-family: {{bodyfont}};
683
683
  font-weight: 400; }
684
- #toc ul {
684
+ #toc ul, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) ul {
685
685
  margin: 0;
686
686
  padding: 0;
687
687
  list-style: none; }
688
- #toc ul li a {
688
+ #toc ul li a, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) ul li a {
689
689
  padding: 5px 10px; }
690
- #toc ul a {
690
+ #toc ul a, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) ul a {
691
691
  color: #141115;
692
692
  text-decoration: none;
693
693
  display: block; }
694
- #toc ul a:hover {
694
+ #toc ul a:hover, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) ul a:hover {
695
695
  box-shadow: none;
696
696
  color: white; }
697
- #toc .h2 {
697
+ #toc .h2, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) .h2 {
698
698
  padding-left: 30px; }
699
- #toc .h3 {
699
+ #toc .h3, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) .h3 {
700
700
  padding-left: 50px; }
701
- #toc .toc-active, #toc li:hover {
701
+ #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 {
702
702
  background: #da1d52;
703
703
  box-shadow: inset -5px 0px 10px -5px #da1d52 !important; }
704
- #toc .toc-active a, #toc li:hover a {
704
+ #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 {
705
705
  color: white; }
706
706
  @media print {
707
- #toc .toc-active, #toc li:hover {
707
+ #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 {
708
708
  background: white;
709
709
  box-shadow: none !important; }
710
- #toc .toc-active a {
710
+ #toc .toc-active a, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) .toc-active a {
711
711
  color: #141115; }
712
- #toc li:hover a {
712
+ #toc li:hover a, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) li:hover a {
713
713
  color: black; } }
714
- #toc .h1 {
714
+ #toc .h1, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) .h1 {
715
715
  text-transform: uppercase; }
716
- #toc li a {
716
+ #toc li a, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) li a {
717
717
  font-size: {{normalfontsize}}; }
718
- #toc li:hover a {
718
+ #toc li:hover a, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) li:hover a {
719
719
  background: none;
720
720
  box-shadow: none; }
721
- #toc li:before {
721
+ #toc li:before, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) li:before {
722
722
  content: " ";
723
723
  display: none; }
724
724
  @media print {
725
- #toc .toc-active a {
725
+ #toc .toc-active a, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) .toc-active a {
726
726
  color: #4D7EA5; }
727
- #toc .toc-active, #toc li:hover {
727
+ #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 {
728
728
  background: white;
729
729
  box-shadow: none !important; }
730
- #toc li:hover a {
730
+ #toc li:hover a, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) li:hover a {
731
731
  color: black; } }
732
+ #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) {
733
+ margin-top: 0;
734
+ margin-bottom: 0; }
735
+
732
736
  #toc-list ul {
733
737
  margin-bottom: 0.25em; }
734
738
 
@@ -789,7 +793,7 @@ nav #toc {
789
793
  @media screen and (min-width: 768px) {
790
794
  h1.toc-contents {
791
795
  margin-top: 1em; }
792
- ul#toc-list {
796
+ ul#toc-list, ul#toc-list > :is(.h1, .h2, .h3, .h4, .h5, .h6) {
793
797
  padding: 0;
794
798
  margin: 0; } }
795
799
 
@@ -52,7 +52,7 @@ nav {
52
52
  }
53
53
  }
54
54
 
55
- #toc {
55
+ #toc, #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) {
56
56
  font-family: $bodyfont;
57
57
  font-weight: 400;
58
58
 
@@ -92,6 +92,12 @@ nav {
92
92
  }
93
93
  }
94
94
 
95
+ #toc > ul > :is(.h1, .h2, .h3, .h4, .h5, .h6) {
96
+ margin-top: 0;
97
+ margin-bottom: 0;
98
+ }
99
+
100
+
95
101
  #toc-list {
96
102
  ul {
97
103
  margin-bottom: 0.25em;
@@ -136,7 +142,7 @@ nav {
136
142
  margin-top: 1em;
137
143
  }
138
144
 
139
- ul#toc-list {
145
+ ul#toc-list, ul#toc-list > :is(.h1, .h2, .h3, .h4, .h5, .h6) {
140
146
  padding: 0;
141
147
  margin: 0;
142
148
  }