metanorma-standoc 2.8.8 → 2.8.10

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: d79ead2eb86071438f3e9f0ebf6079dbaf8465ee3b7d744b3f7bdad7c1152ea9
4
- data.tar.gz: dbad5d2702bc82ff88e95392127dfc01bdc0e2d3c06dba4132962943da12b461
3
+ metadata.gz: fc9017c5129df1275eedf83ba8816e29b96fc63ebef771adc4061ff2d3b12dc8
4
+ data.tar.gz: c318ba163f24eb061288262ea1045bb01604ff8dbe0f464985ec225fb37290e8
5
5
  SHA512:
6
- metadata.gz: 738efd82a76cd385d7b8ea8cd410c3e96954a8f89cc46dd28aa164132020af2f08758cbd798e686eb1c82dd4149a2a5780741845d3253e7a9ccbc4de2da34221
7
- data.tar.gz: e7d189dbc9e3ec5e4e5dfae31ecae79ea3a07e50a20a232082495831007541b3b328ed06f1c957da3a5d9fa12e422799dee967bfc073d5fe8c871b5970a496ab
6
+ metadata.gz: 4484712af3ccd71b9910e2f702a62afcd63a3bcd29534679e576259b4f9d577ae18d1a98c03004de1a71cee21766ba33729c6167fd55d6cdc2ddadf45dc7c30b
7
+ data.tar.gz: 9f5cfeff766498b8b723d0f66292903cb7d9fee7297cfdcab952b9b2aa7e6db0820c6064358f4486aace8f25607a9569d870a068945d51c17e7bde1617eca822
@@ -177,6 +177,58 @@ table.rouge-line-table pre {
177
177
  overflow-x: visible;
178
178
  font-size: 100%; }
179
179
 
180
+ /* header § links */
181
+ a.header {
182
+ color: inherit;
183
+ text-decoration: none; }
184
+
185
+ a.header:hover {
186
+ color: #a53221 !important;
187
+ background: inherit;
188
+ box-shadow: none; }
189
+
190
+ a.header:visited {
191
+ color: inherit;
192
+ text-decoration: none; }
193
+
194
+ a.anchor {
195
+ position: absolute;
196
+ z-index: 1001;
197
+ width: 1.5ex;
198
+ margin-left: -1.5ex;
199
+ display: block;
200
+ text-decoration: none !important;
201
+ visibility: hidden;
202
+ text-align: center;
203
+ font-weight: 400; }
204
+
205
+ a.anchor::before {
206
+ content: "\00A7";
207
+ font-size: .85em;
208
+ display: block;
209
+ padding-top: .1em; }
210
+
211
+ a.anchor:hover {
212
+ color: #a53221;
213
+ background: inherit;
214
+ box-shadow: none; }
215
+
216
+ h1 > a.anchor:hover,
217
+ h2 > a.anchor:hover,
218
+ h3 > a.anchor:hover,
219
+ h4 > a.anchor:hover,
220
+ h5 > a.anchor:hover,
221
+ h6 > a.anchor:hover,
222
+ .inline-header > a.anchor:hover,
223
+ h1:hover > a.anchor,
224
+ h2:hover > a.anchor,
225
+ h3:hover > a.anchor,
226
+ h4:hover > a.anchor,
227
+ h5:hover > a.anchor,
228
+ h6:hover > a.anchor,
229
+ .inline-header:hover > a.anchor {
230
+ visibility: visible; }
231
+
180
232
  #brochure-band {
181
233
  background-color: #0AC442; }
182
234
 
@@ -107,8 +107,9 @@ module Metanorma
107
107
  end
108
108
 
109
109
  def doctype(node)
110
- ret = node.attr("doctype")&.gsub(/\s+/, "-")&.downcase || "standard"
111
- ret = "standard" if ret == "article"
110
+ ret = node.attr("doctype")&.gsub(/\s+/, "-")&.downcase ||
111
+ @default_doctype
112
+ ret = @default_doctype if ret == "article"
112
113
  ret
113
114
  end
114
115