metanorma-ogc 1.5.2 → 1.5.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +3 -0
  3. data/lib/asciidoctor/ogc/cleanup.rb +35 -9
  4. data/lib/asciidoctor/ogc/converter.rb +6 -4
  5. data/lib/asciidoctor/ogc/isodoc.rng +61 -18
  6. data/lib/asciidoctor/ogc/validate.rb +12 -0
  7. data/lib/isodoc/ogc/base_convert.rb +2 -1
  8. data/lib/isodoc/ogc/html/htmlstyle.css +33 -14
  9. data/lib/isodoc/ogc/html/htmlstyle.scss +16 -10
  10. data/lib/isodoc/ogc/html/ogc.css +0 -1
  11. data/lib/isodoc/ogc/html/ogc.scss +0 -1
  12. data/lib/isodoc/ogc/html/ogc_wp.css +0 -1
  13. data/lib/isodoc/ogc/html/ogc_wp.scss +0 -1
  14. data/lib/isodoc/ogc/html/scripts.html +0 -1
  15. data/lib/isodoc/ogc/html/wordstyle.css +30 -18
  16. data/lib/isodoc/ogc/html/wordstyle.scss +30 -18
  17. data/lib/isodoc/ogc/html/wordstyle_wp.css +22 -12
  18. data/lib/isodoc/ogc/html/wordstyle_wp.scss +22 -12
  19. data/lib/isodoc/ogc/html_convert.rb +1 -0
  20. data/lib/isodoc/ogc/metadata.rb +7 -2
  21. data/lib/isodoc/ogc/ogc.abstract-specification-topic.xsl +457 -123
  22. data/lib/isodoc/ogc/ogc.best-practice.xsl +457 -123
  23. data/lib/isodoc/ogc/ogc.change-request-supporting-document.xsl +457 -123
  24. data/lib/isodoc/ogc/ogc.community-practice.xsl +457 -123
  25. data/lib/isodoc/ogc/ogc.community-standard.xsl +457 -123
  26. data/lib/isodoc/ogc/ogc.discussion-paper.xsl +457 -123
  27. data/lib/isodoc/ogc/ogc.engineering-report.xsl +457 -123
  28. data/lib/isodoc/ogc/ogc.other.xsl +457 -123
  29. data/lib/isodoc/ogc/ogc.policy.xsl +457 -123
  30. data/lib/isodoc/ogc/ogc.reference-model.xsl +457 -123
  31. data/lib/isodoc/ogc/ogc.release-notes.xsl +457 -123
  32. data/lib/isodoc/ogc/ogc.standard.xsl +457 -123
  33. data/lib/isodoc/ogc/ogc.test-suite.xsl +457 -123
  34. data/lib/isodoc/ogc/ogc.user-guide.xsl +457 -123
  35. data/lib/isodoc/ogc/ogc.white-paper.xsl +334 -95
  36. data/lib/isodoc/ogc/presentation_xml_convert.rb +54 -4
  37. data/lib/isodoc/ogc/reqt.rb +1 -1
  38. data/lib/isodoc/ogc/sections.rb +9 -2
  39. data/lib/isodoc/ogc/word_convert.rb +28 -4
  40. data/lib/isodoc/ogc/xref.rb +4 -2
  41. data/lib/metanorma/ogc/version.rb +1 -1
  42. data/metanorma-ogc.gemspec +1 -1
  43. metadata +8 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f1eb36cd9acf77e8aa250a285572951349e07d00f78c574538a514bdae30ffc3
4
- data.tar.gz: 9777f0f9a6bbe8204f20449024c2644a0956932bf8b1bf5c2722b809debabfcc
3
+ metadata.gz: 69beab43aeb2bcb9aab11ca5567eba0c6cae2232f5258871911c2ff9fd7bedc2
4
+ data.tar.gz: b5cbea960accc69c1970f98023f3417311d6ec06b1675ea0f426ca7af0eee374
5
5
  SHA512:
6
- metadata.gz: a76271bb1ff825eb70caf9c0858b5b70a5f0fc13d07c7cd2713a3670923a9b4550e743b9a61541fc1fda17bfb2a4e8e9011a2b859b0a7d61c8ec9fde5ac67d4a
7
- data.tar.gz: 3a3ea1f65f90decc18daa92d6958ecb5f4ad8ff61ab6dda324639209516e8b79d90ef1d5eb5e561ca0089b3a603d6c1c18cf4db8139c3daa12f79587c814941c
6
+ metadata.gz: 89c25bf2553b91594d1284fa13ed0ef7a814b7ad03fa57a5ecd6a456d043d5e567a7f3b4c1cfc522d9052de0f306bb4651de2ad67c1af76ba13e6e3166abf1f3
7
+ data.tar.gz: 5a741f7927bf22d91cdfc63e8ae7bd7bfe2d5617d4de0722110736e65d35f2556c9e296518531bc94cb54f0f97b543a5ab78b9b7e3928a7bcbb84817deeebb46
data/Gemfile CHANGED
@@ -9,3 +9,6 @@ gemspec
9
9
  if File.exist? "Gemfile.devel"
10
10
  eval File.read("Gemfile.devel"), nil, "Gemfile.devel" # rubocop:disable Security/Eval
11
11
  end
12
+
13
+ gem "metanorma-cli"
14
+ gem "reline", "~> 0.2.8.pre.11"
@@ -10,6 +10,7 @@ module Asciidoctor
10
10
 
11
11
  def make_preface(xml, sect)
12
12
  super
13
+ insert_execsummary(xml, sect)
13
14
  insert_security(xml, sect)
14
15
  insert_submitters(xml, sect)
15
16
  end
@@ -18,6 +19,14 @@ module Asciidoctor
18
19
  %(id="_#{UUIDTools::UUID.random_create}")
19
20
  end
20
21
 
22
+ def insert_execsummary(xml, sect)
23
+ summ = xml&.at("//clause[@type = 'executivesummary']")&.remove or
24
+ return
25
+ preface = sect.at("//preface") ||
26
+ sect.add_previous_sibling("<preface/>").first
27
+ preface.add_child summ
28
+ end
29
+
21
30
  def insert_security(xml, sect)
22
31
  description = "document"
23
32
  description = "standard" if %w(standard community-standard)
@@ -49,6 +58,9 @@ module Asciidoctor
49
58
  super
50
59
  a = xmldoc.at("//bibdata/status/stage")
51
60
  a.text == "published" and a.children = "approved"
61
+ doctype = xmldoc.at("//bibdata/ext/doctype")
62
+ doctype.text == "technical-paper" and
63
+ doctype.children = "white-paper"
52
64
  end
53
65
 
54
66
  def section_names_terms_cleanup(xml)
@@ -162,17 +174,31 @@ module Asciidoctor
162
174
  xmldoc.xpath(REQRECPER).each do |r|
163
175
  next unless r["type"]
164
176
 
165
- r["type"] = case r["type"]
166
- when "requirement", "recommendation", "permission"
167
- "general"
168
- when "requirements_class" then "class"
169
- when "conformance_test" then "verification"
170
- when "conformance_class" then "conformanceclass"
171
- when "abstract_test" then "abstracttest"
172
- else r["type"]
173
- end
177
+ requirement_type1(r)
174
178
  end
175
179
  end
180
+
181
+ def requirement_type1(reqt)
182
+ reqt["type"] = case reqt["type"]
183
+ when "requirement", "recommendation", "permission"
184
+ "general"
185
+ when "requirements_class" then "class"
186
+ when "conformance_test" then "verification"
187
+ when "conformance_class" then "conformanceclass"
188
+ when "abstract_test" then "abstracttest"
189
+ else reqt["type"]
190
+ end
191
+ end
192
+
193
+ def normref_cleanup(xmldoc)
194
+ r1 = xmldoc.at("//references[title[translate(text(), 'R', 'r') = "\
195
+ "'Normative references']]")
196
+ r2 = xmldoc.at("//references[title[text() = 'References']]")
197
+ if r1 && r2
198
+ r2["normative"] = false
199
+ end
200
+ super
201
+ end
176
202
  end
177
203
  end
178
204
  end
@@ -31,7 +31,7 @@ module Asciidoctor
31
31
  change-request-supporting-document community-practice
32
32
  community-standard discussion-paper engineering-report
33
33
  reference-model release-notes standard user-guide white-paper
34
- test-suite}.include? d
34
+ technical-paper test-suite}.include? d
35
35
  @warned_doctype or
36
36
  @log.add("Document Attributes", nil,
37
37
  "'#{d}' is not a legal document type: reverting to 'standard'")
@@ -75,8 +75,10 @@ module Asciidoctor
75
75
  case node&.attr("heading")&.downcase || node.title.downcase
76
76
  when "submitters" then return submitters_parse(attrs, xml, node)
77
77
  when "conformance" then attrs = attrs.merge(type: "conformance")
78
- when "security considerations" then attrs =
79
- attrs.merge(type: "security")
78
+ when "security considerations"
79
+ attrs = attrs.merge(type: "security")
80
+ when "executive summary"
81
+ attrs = attrs.merge(type: "executivesummary")
80
82
  end
81
83
  super
82
84
  end
@@ -143,7 +145,7 @@ module Asciidoctor
143
145
  def pdf_converter(node)
144
146
  return nil if node.attr("no-pdf")
145
147
 
146
- IsoDoc::Ogc::PdfConvert.new(html_extract_attributes(node))
148
+ IsoDoc::Ogc::PdfConvert.new(pdf_extract_attributes(node))
147
149
  end
148
150
 
149
151
  def doc_converter(node)
@@ -58,7 +58,7 @@
58
58
  <attribute name="alt"/>
59
59
  </optional>
60
60
  <optional>
61
- <attribute name="updatetype">
61
+ <attribute name="update-type">
62
62
  <data type="boolean"/>
63
63
  </attribute>
64
64
  </optional>
@@ -1796,6 +1796,20 @@
1796
1796
  <data type="ID"/>
1797
1797
  </attribute>
1798
1798
  </optional>
1799
+ <optional>
1800
+ <attribute name="language"/>
1801
+ </optional>
1802
+ <optional>
1803
+ <attribute name="script"/>
1804
+ </optional>
1805
+ <optional>
1806
+ <attribute name="tag"/>
1807
+ </optional>
1808
+ <optional>
1809
+ <attribute name="multilingual-rendering">
1810
+ <ref name="MultilingualRenderingType"/>
1811
+ </attribute>
1812
+ </optional>
1799
1813
  <oneOrMore>
1800
1814
  <ref name="preferred"/>
1801
1815
  </oneOrMore>
@@ -1814,9 +1828,6 @@
1814
1828
  <optional>
1815
1829
  <ref name="termsubject"/>
1816
1830
  </optional>
1817
- <optional>
1818
- <ref name="termusage"/>
1819
- </optional>
1820
1831
  <oneOrMore>
1821
1832
  <ref name="termdefinition"/>
1822
1833
  </oneOrMore>
@@ -1880,17 +1891,37 @@
1880
1891
  </attribute>
1881
1892
  </optional>
1882
1893
  <optional>
1883
- <attribute name="geographicArea"/>
1894
+ <attribute name="geographic-area"/>
1884
1895
  </optional>
1885
1896
  <choice>
1886
1897
  <ref name="expression_designation"/>
1887
1898
  <ref name="letter_symbol_designation"/>
1888
1899
  <ref name="graphical_symbol_designation"/>
1889
1900
  </choice>
1901
+ <optional>
1902
+ <ref name="fieldofapplication"/>
1903
+ </optional>
1904
+ <optional>
1905
+ <ref name="usageinfo"/>
1906
+ </optional>
1890
1907
  <zeroOrMore>
1891
1908
  <ref name="termsource"/>
1892
1909
  </zeroOrMore>
1893
1910
  </define>
1911
+ <define name="fieldofapplication">
1912
+ <element name="field-of-application">
1913
+ <oneOrMore>
1914
+ <ref name="PureTextElement"/>
1915
+ </oneOrMore>
1916
+ </element>
1917
+ </define>
1918
+ <define name="usageinfo">
1919
+ <element name="usage-info">
1920
+ <oneOrMore>
1921
+ <ref name="PureTextElement"/>
1922
+ </oneOrMore>
1923
+ </element>
1924
+ </define>
1894
1925
  <define name="letter_symbol_designation">
1895
1926
  <element name="letter-symbol">
1896
1927
  <optional>
@@ -1942,11 +1973,15 @@
1942
1973
  </optional>
1943
1974
  <element name="name">
1944
1975
  <zeroOrMore>
1945
- <ref name="PureTextElement"/>
1976
+ <choice>
1977
+ <ref name="PureTextElement"/>
1978
+ <ref name="stem"/>
1979
+ <ref name="index"/>
1980
+ </choice>
1946
1981
  </zeroOrMore>
1947
1982
  </element>
1948
1983
  <optional>
1949
- <element name="abbreviationType">
1984
+ <element name="abbreviation-type">
1950
1985
  <ref name="AbbreviationType"/>
1951
1986
  </element>
1952
1987
  </optional>
@@ -1956,7 +1991,7 @@
1956
1991
  </element>
1957
1992
  </optional>
1958
1993
  <optional>
1959
- <element name="grammarInfo">
1994
+ <element name="grammar">
1960
1995
  <ref name="Grammar"/>
1961
1996
  </element>
1962
1997
  </optional>
@@ -1983,6 +2018,11 @@
1983
2018
  <ref name="GrammarGender"/>
1984
2019
  </element>
1985
2020
  </zeroOrMore>
2021
+ <zeroOrMore>
2022
+ <element name="number">
2023
+ <ref name="GrammarNumber"/>
2024
+ </element>
2025
+ </zeroOrMore>
1986
2026
  <optional>
1987
2027
  <element name="isPreposition">
1988
2028
  <data type="boolean"/>
@@ -2014,7 +2054,7 @@
2014
2054
  </element>
2015
2055
  </optional>
2016
2056
  <zeroOrMore>
2017
- <element name="grammarvalue">
2057
+ <element name="grammar-value">
2018
2058
  <text/>
2019
2059
  </element>
2020
2060
  </zeroOrMore>
@@ -2027,6 +2067,13 @@
2027
2067
  <value>common</value>
2028
2068
  </choice>
2029
2069
  </define>
2070
+ <define name="GrammarNumber">
2071
+ <choice>
2072
+ <value>singular</value>
2073
+ <value>dual</value>
2074
+ <value>plural</value>
2075
+ </choice>
2076
+ </define>
2030
2077
  <define name="termdomain">
2031
2078
  <element name="domain">
2032
2079
  <oneOrMore>
@@ -2041,13 +2088,6 @@
2041
2088
  </oneOrMore>
2042
2089
  </element>
2043
2090
  </define>
2044
- <define name="termusage">
2045
- <element name="usageinfo">
2046
- <oneOrMore>
2047
- <ref name="BasicBlock"/>
2048
- </oneOrMore>
2049
- </element>
2050
- </define>
2051
2091
  <define name="termdefinition">
2052
2092
  <element name="definition">
2053
2093
  <choice>
@@ -2061,13 +2101,16 @@
2061
2101
  </element>
2062
2102
  </define>
2063
2103
  <define name="verbaldefinition">
2064
- <element name="verbaldefinition">
2104
+ <element name="verbal-definition">
2065
2105
  <oneOrMore>
2066
2106
  <choice>
2067
2107
  <ref name="paragraph"/>
2068
2108
  <ref name="dl"/>
2069
2109
  <ref name="ol"/>
2070
2110
  <ref name="ul"/>
2111
+ <ref name="table"/>
2112
+ <ref name="figure"/>
2113
+ <ref name="formula"/>
2071
2114
  </choice>
2072
2115
  </oneOrMore>
2073
2116
  <zeroOrMore>
@@ -2076,7 +2119,7 @@
2076
2119
  </element>
2077
2120
  </define>
2078
2121
  <define name="nonverbalrep">
2079
- <element name="nonverbalrepresentation">
2122
+ <element name="non-verbal-representation">
2080
2123
  <oneOrMore>
2081
2124
  <choice>
2082
2125
  <ref name="table"/>
@@ -57,8 +57,20 @@ module Asciidoctor
57
57
  end
58
58
  end
59
59
 
60
+ def execsummary_validate(xmldoc)
61
+ doctype = xmldoc&.at("//bibdata/ext/doctype")&.text
62
+ sect = xmldoc&.at("//clause[@type = 'executivesummary']")
63
+ doctype == "engineering-report" && sect.nil? and
64
+ @log.add("Style", nil,
65
+ "Executive Summary required for Engineering Reports!")
66
+ doctype != "engineering-report" && !sect.nil? and
67
+ @log.add("Style", nil,
68
+ "Executive Summary only allowed for Engineering Reports!")
69
+ end
70
+
60
71
  def section_validate(doc)
61
72
  preface_sequence_validate(doc.root)
73
+ execsummary_validate(doc.root)
62
74
  sections_sequence_validate(doc.root)
63
75
  super
64
76
  end
@@ -138,7 +138,8 @@ module IsoDoc
138
138
  return super unless (node["class"] == "steps") ||
139
139
  node.at(".//ancestor::xmlns:ol[@class = 'steps']")
140
140
 
141
- ol_style(:arabic)
141
+ idx = node.xpath("./ancestor-or-self::xmlns:ol[@class = 'steps']").size
142
+ ol_style(%i(arabic alphabet roman alphabet_upper roman_upper)[(idx - 1) % 5])
142
143
  end
143
144
  end
144
145
  end
@@ -68,6 +68,12 @@ code *, pre *, tt *, kbd *, samp * {
68
68
  font-family: {{monospacefont}} !important;
69
69
  font-variant-ligatures: none; }
70
70
 
71
+ p code, dt code, li code, label code, legend code, caption code, th code, td code,
72
+ p tt, dt tt, li tt, label tt, legend tt, caption tt, th tt, td tt,
73
+ p kbd, dt kbd, li kbd, label kbd, legend kbd, caption kbd, th kbd, td kbd,
74
+ p samp, dt samp, li samp, label samp, legend samp, caption samp, th samp, td samp {
75
+ font-size: {{monospacefontsize}}; }
76
+
71
77
  article, aside, details, figcaption, figure,
72
78
  footer, header, hgroup, menu, nav, section {
73
79
  display: block; }
@@ -79,6 +85,9 @@ table {
79
85
  h1, h2, h3, h4, h5, h6 {
80
86
  font-family: {{headerfont}}; }
81
87
 
88
+ .h1, .h2, .h3, .h4, .h5, .h6 {
89
+ font-family: {{headerfont}}; }
90
+
82
91
  blockquote, q {
83
92
  quotes: none; }
84
93
  blockquote:before, blockquote:after, q:before, q:after {
@@ -151,6 +160,12 @@ a.FootnoteRef + a.FootnoteRef:before {
151
160
  #white-paper {
152
161
  border-bottom: solid 3px #39CCCC; }
153
162
 
163
+ #technical-paper-band {
164
+ background-color: #39CCCC; }
165
+
166
+ #technical-paper {
167
+ border-bottom: solid 3px #39CCCC; }
168
+
154
169
  #engineering-report-band {
155
170
  background-color: #39CCCC; }
156
171
 
@@ -718,32 +733,32 @@ p {
718
733
  margin-top: 1em;
719
734
  margin-bottom: 1em; }
720
735
 
721
- h1, h2, h3, h4, h5, h6 {
736
+ h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
722
737
  color: #00335b;
723
738
  font-weight: 400;
724
739
  margin-top: 1.6em;
725
740
  margin-bottom: 0.3em; }
726
741
 
727
- h1 {
742
+ h1, .h1 {
728
743
  font-size: 1.8em;
729
744
  text-transform: uppercase;
730
745
  margin-top: 2em; }
731
- h1 #content {
746
+ h1 #content, .h1 #content {
732
747
  margin-top: 2em; }
733
748
 
734
- h2 {
749
+ h2, .h2 {
735
750
  margin-top: 1.3em;
736
751
  font-size: 1.7em;
737
752
  font-weight: 300; }
738
- h2 p {
753
+ h2 p, .h2 p {
739
754
  display: inline; }
740
755
 
741
- h3 {
756
+ h3, .h3 {
742
757
  margin-top: 1.3em;
743
758
  font-size: 1.5em;
744
759
  font-weight: 100; }
745
760
 
746
- h4 {
761
+ h4, .h4 {
747
762
  font-size: 1.4em; }
748
763
 
749
764
  .contact-info {
@@ -863,9 +878,11 @@ p.TableTitle {
863
878
  font-weight: 400; }
864
879
 
865
880
  /* Terms */
881
+ .TermNum {
882
+ font-weight: 300; }
883
+
866
884
  .TermNum, .Terms, .AltTerms {
867
885
  color: #00335b;
868
- font-weight: 300;
869
886
  font-family: {{headerfont}}; }
870
887
 
871
888
  h2.TermNum {
@@ -877,7 +894,9 @@ p.AltTerms {
877
894
 
878
895
  span.AdmittedLabel {
879
896
  color: #00335b;
880
- background-color: #CFE2F3; }
897
+ background-color: #CFE2F3;
898
+ font-size: 70%;
899
+ vertical-align: top; }
881
900
 
882
901
  /* Links, selection */
883
902
  a, a:visited {
@@ -1079,18 +1098,18 @@ a.anchorjs-link:hover {
1079
1098
  margin: 2cm 1cm; }
1080
1099
 
1081
1100
  @media print {
1082
- h1, h2, h3, h4 {
1101
+ h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
1083
1102
  page-break-after: avoid;
1084
1103
  margin-top: 1.2em; }
1085
- h1 {
1104
+ h1, .h1 {
1086
1105
  font-size: 1.5em;
1087
1106
  line-height: 1.5; }
1088
- h1.content {
1107
+ h1.content, .h1.content {
1089
1108
  margin-top: 2em;
1090
1109
  line-height: 2.5em; }
1091
- h2 {
1110
+ h2, .h2 {
1092
1111
  font-size: 1.2em; }
1093
- h3 {
1112
+ h3, .h3 {
1094
1113
  font-size: 1em; }
1095
1114
  .prefatory-section {
1096
1115
  page-break-before: always; }
@@ -6,6 +6,7 @@ $doctype-colors-list: (
6
6
  best-practice: #39CCCC,
7
7
  discussion-paper: #39CCCC,
8
8
  white-paper: #39CCCC,
9
+ technical-paper: #39CCCC,
9
10
  engineering-report: #39CCCC,
10
11
 
11
12
  release-notes: #FFDC00,
@@ -172,14 +173,14 @@ p {
172
173
  margin-bottom: 1em;
173
174
  }
174
175
 
175
- h1, h2, h3, h4, h5, h6 {
176
+ h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
176
177
  color: #00335b;
177
178
  font-weight: 400;
178
179
  margin-top: 1.6em;
179
180
  margin-bottom: 0.3em;
180
181
  }
181
182
 
182
- h1 {
183
+ h1, .h1 {
183
184
  font-size: 1.8em;
184
185
  text-transform: uppercase;
185
186
  margin-top: 2em;
@@ -189,7 +190,7 @@ h1 {
189
190
  }
190
191
  }
191
192
 
192
- h2 {
193
+ h2, .h2 {
193
194
  margin-top: 1.3em;
194
195
  font-size: 1.7em;
195
196
  font-weight: 300;
@@ -199,13 +200,13 @@ h2 {
199
200
  }
200
201
  }
201
202
 
202
- h3 {
203
+ h3, .h3 {
203
204
  margin-top: 1.3em;
204
205
  font-size: 1.5em;
205
206
  font-weight: 100;
206
207
  }
207
208
 
208
- h4 {
209
+ h4, .h4 {
209
210
  font-size: 1.4em;
210
211
  }
211
212
 
@@ -355,9 +356,12 @@ p.TableTitle {
355
356
 
356
357
  /* Terms */
357
358
 
359
+ .TermNum {
360
+ font-weight: 300;
361
+ }
362
+
358
363
  .TermNum, .Terms, .AltTerms {
359
364
  color: #00335b;
360
- font-weight: 300;
361
365
  font-family: $headerfont;
362
366
  }
363
367
 
@@ -373,6 +377,8 @@ p.AltTerms {
373
377
  span.AdmittedLabel {
374
378
  color: #00335b;
375
379
  background-color: #CFE2F3;
380
+ font-size: 70%;
381
+ vertical-align: top;
376
382
  }
377
383
 
378
384
 
@@ -550,12 +556,12 @@ a.anchorjs-link {
550
556
  }
551
557
 
552
558
  @media print {
553
- h1, h2, h3, h4 {
559
+ h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
554
560
  page-break-after: avoid;
555
561
  margin-top: 1.2em;
556
562
  }
557
563
 
558
- h1 {
564
+ h1, .h1 {
559
565
  font-size: 1.5em;
560
566
  line-height: 1.5;
561
567
 
@@ -565,11 +571,11 @@ a.anchorjs-link {
565
571
  }
566
572
  }
567
573
 
568
- h2 {
574
+ h2, .h2 {
569
575
  font-size: 1.2em
570
576
  }
571
577
 
572
- h3 {
578
+ h3, .h3 {
573
579
  font-size: 1em;
574
580
  }
575
581
 
@@ -309,7 +309,6 @@ p.Terms, li.Terms, div.Terms {
309
309
  mso-fareast-font-family: {{headerfont}};
310
310
  mso-bidi-font-family: {{headerfont}};
311
311
  mso-ansi-language: EN-GB;
312
- font-weight: bold;
313
312
  mso-bidi-font-weight: normal; }
314
313
 
315
314
  p.AltTerms, li.AltTerms, div.AltTerms {
@@ -296,7 +296,6 @@ p.Terms, li.Terms, div.Terms
296
296
  mso-fareast-font-family:$headerfont;
297
297
  mso-bidi-font-family:$headerfont;
298
298
  mso-ansi-language:EN-GB;
299
- font-weight:bold;
300
299
  mso-bidi-font-weight:normal;}
301
300
  p.AltTerms, li.AltTerms, div.AltTerms
302
301
  {mso-style-name:"AltTerm\(s\)";
@@ -263,7 +263,6 @@ p.Terms, li.Terms, div.Terms {
263
263
  mso-fareast-font-family: {{headerfont}};
264
264
  mso-bidi-font-family: {{headerfont}};
265
265
  mso-ansi-language: EN-GB;
266
- font-weight: bold;
267
266
  mso-bidi-font-weight: normal; }
268
267
 
269
268
  p.AltTerms, li.AltTerms, div.AltTerms {
@@ -256,7 +256,6 @@ p.Terms, li.Terms, div.Terms
256
256
  mso-fareast-font-family:$headerfont;
257
257
  mso-bidi-font-family:$headerfont;
258
258
  mso-ansi-language:EN-GB;
259
- font-weight:bold;
260
259
  mso-bidi-font-weight:normal;}
261
260
  p.AltTerms, li.AltTerms, div.AltTerms
262
261
  {mso-style-name:"AltTerm\(s\)";
@@ -17,7 +17,6 @@ $('#toggle').on('click', function(){
17
17
  else {
18
18
  $('nav').show();
19
19
  $('nav').animate({ 'left': '0px' }, 'slow');
20
- $('.container').animate({ 'padding-left': '360px' }, 'slow');
21
20
  }
22
21
  });
23
22
  </script>