metanorma-ogc 2.5.8 → 2.5.10

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: 6ef5866d7b49fc11574257b7a48ce843441996b2a7b76dea6db8dd1b1fe351b2
4
- data.tar.gz: 764832074d256805c933ab69bc65d7a2fca9c362d221abc9f82d537c7b6b259e
3
+ metadata.gz: 293e56616f190040c73828ec1363fa9fafb029cf486b871acb66d2cade57c66a
4
+ data.tar.gz: fb262d4965b0bd780ba0f728ac706aef318973c7b519aae31b2c341930ba61d8
5
5
  SHA512:
6
- metadata.gz: 71373f3e5f38707756dfa51bf10ead71a8f5344af730dd7978f361e4f2cc895152cb98aa5400365c74e59805838d1b6a0e8cb71aac388ba9107ebf2b303f84d7
7
- data.tar.gz: cca19498cb273834993a4b4d82b576b24a3e95a096a4c7a56a6ee08c27979e12f2ee6761f2a0f168d4c38e23db95589b5678183a9ef97f8c79812a3f67fa86e0
6
+ metadata.gz: b9e35f6ecb20df080cf6d8d70657883ac7ad6013fcdc67e1dfe469b05e3765f9c8bcead0321cd1ac871864908151d0c39d783b666b7ba8b459290fb3b121c208
7
+ data.tar.gz: 674ffa4c9dcdd122bff0a1767bab246bda09f6796cb45cc6971b00bbe8967b34bee3d7e19d81693c9555650b5e91c73a336bc32d139ec5a0ec9b7146cf744c8b
@@ -1,3 +1,4 @@
1
+ @charset "UTF-8";
1
2
  html, body, div, span, applet, object, iframe,
2
3
  h1, h2, h3, h4, h5, h6, p, blockquote, pre,
3
4
  a, abbr, acronym, address, big, cite, code,
@@ -169,12 +170,15 @@ table.rouge-line-table pre {
169
170
  overflow-x: visible;
170
171
  font-size: 100%; }
171
172
 
173
+ /* header § links */
172
174
  a.header {
173
175
  color: inherit;
174
176
  text-decoration: none; }
175
177
 
176
178
  a.header:hover {
177
- color: #a53221; }
179
+ color: #a53221 !important;
180
+ background: inherit;
181
+ box-shadow: none; }
178
182
 
179
183
  a.header:visited {
180
184
  color: inherit;
@@ -197,6 +201,11 @@ a.anchor::before {
197
201
  display: block;
198
202
  padding-top: .1em; }
199
203
 
204
+ a.anchor:hover {
205
+ color: #a53221;
206
+ background: inherit;
207
+ box-shadow: none; }
208
+
200
209
  h1 > a.anchor:hover,
201
210
  h2 > a.anchor:hover,
202
211
  h3 > a.anchor:hover,
@@ -599,6 +608,16 @@ h6:hover > a.anchor,
599
608
  margin-top: -5px;
600
609
  display: none; } }
601
610
 
611
+ /* For Requirement Test anchors */
612
+ p.RecommendationTitle:hover > a.anchor,
613
+ p.RecommendationTitle > a.anchor:hover,
614
+ p.RecommendationTestTitle:hover > a.anchor,
615
+ p.RecommendationTestTitle > a.anchor:hover {
616
+ visibility: visible; }
617
+
618
+ table a.anchor {
619
+ margin-left: -2em; }
620
+
602
621
  body {
603
622
  margin-left: auto;
604
623
  margin-right: auto;
@@ -49,6 +49,17 @@ $docstage-colors-list: (
49
49
  @import 'base_style/all';
50
50
  @import 'coverpage';
51
51
 
52
+ /* For Requirement Test anchors */
53
+ p.RecommendationTitle:hover > a.anchor,
54
+ p.RecommendationTitle > a.anchor:hover,
55
+ p.RecommendationTestTitle:hover > a.anchor,
56
+ p.RecommendationTestTitle > a.anchor:hover {
57
+ visibility: visible; }
58
+
59
+ table a.anchor {
60
+ margin-left: -2em;
61
+ }
62
+
52
63
 
53
64
  body {
54
65
  @include bodyStyle1(
@@ -124,6 +124,17 @@ module IsoDoc
124
124
  "<meta name='DC.title' lang='#{@lang}' content='#{k}' />"
125
125
  end
126
126
 
127
+ def heading_anchors(html)
128
+ super
129
+ html.xpath("//p[@class = 'RecommendationTitle'] | " \
130
+ "//p[@class = 'RecommendationTestTitle']").each do |h|
131
+ div = h.xpath("./ancestor::table[@id]")
132
+ div.empty? and next
133
+ heading_anchor(h, div[-1]["id"])
134
+ end
135
+ html
136
+ end
137
+
127
138
  include BaseConvert
128
139
  include Init
129
140
  end