isodoc 3.0.1 → 3.0.3
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 +4 -4
- data/lib/isodoc/base_style/all.scss +7 -6
- data/lib/isodoc/base_style/blocks.scss +1 -0
- data/lib/isodoc/base_style/coverpage.scss +2 -0
- data/lib/isodoc/base_style/nav.scss +1 -0
- data/lib/isodoc/base_style/reset.scss +2 -0
- data/lib/isodoc/css.rb +17 -4
- data/lib/isodoc/version.rb +1 -1
- metadata +1 -5
- data/lib/isodoc/base_style/blocks.css +0 -0
- data/lib/isodoc/base_style/coverpage.css +0 -0
- data/lib/isodoc/base_style/nav.css +0 -0
- data/lib/isodoc/base_style/reset.css +0 -312
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1afcea1c3a61c003f63ef54ee1fc3336a65755daceb584dcff2558731f419bd8
|
4
|
+
data.tar.gz: 6534a2e478ca74da49d70dbca4e88b611f045f6fa66051a62fe8d39775f61012
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b4ebffb29a7b2cee5f973244560c4ba3886a79712b3bc8ae0f0ed446ee4324f9b0e54cd40be669aa7aafcea84e493ea96bed8140bdc436765b67def8d9533f8
|
7
|
+
data.tar.gz: b95c345dc9079afd3b80b4d31eaabf0e89c87ec4b56433f860da6004f345390c437be0fb03c0eba3df3640c9cac242999259ec93746caaf3969d5b4c76edb2e0
|
@@ -1,6 +1,7 @@
|
|
1
|
-
@use '
|
2
|
-
@
|
3
|
-
@
|
4
|
-
@
|
5
|
-
@
|
6
|
-
@
|
1
|
+
@use 'variables' as *;
|
2
|
+
@forward 'base_style/reset';
|
3
|
+
@forward 'base_style/typography';
|
4
|
+
@forward 'base_style/nav';
|
5
|
+
@forward 'base_style/bands';
|
6
|
+
@forward 'base_style/blocks';
|
7
|
+
@forward 'base_style/coverpage';
|
data/lib/isodoc/css.rb
CHANGED
@@ -77,15 +77,28 @@ module IsoDoc
|
|
77
77
|
def convert_scss(filename, stylesheet, stripwordcss)
|
78
78
|
require "sassc-embedded"
|
79
79
|
require "isodoc/sassc_importer"
|
80
|
-
|
81
80
|
[File.join(Gem.loaded_specs["isodoc"].full_gem_path,
|
82
81
|
"lib", "isodoc"),
|
83
82
|
File.dirname(filename)].each do |name|
|
84
83
|
SassC.load_paths << name
|
85
84
|
end
|
86
|
-
|
87
|
-
|
88
|
-
.
|
85
|
+
|
86
|
+
Dir.mktmpdir do |dir|
|
87
|
+
variables_file_path = File.join(dir, "variables.scss")
|
88
|
+
File.write(variables_file_path,
|
89
|
+
scss_fontheader(stripwordcss))
|
90
|
+
|
91
|
+
SassC.load_paths << dir
|
92
|
+
|
93
|
+
# Modify the stylesheet to use the tempfile with @use
|
94
|
+
modified_stylesheet = <<~SCSS
|
95
|
+
@use "variables" as *;
|
96
|
+
#{stylesheet}
|
97
|
+
SCSS
|
98
|
+
SassC::Engine.new(modified_stylesheet,
|
99
|
+
syntax: :scss, importer: SasscImporter)
|
100
|
+
.render
|
101
|
+
end
|
89
102
|
end
|
90
103
|
|
91
104
|
# stripwordcss if HTML stylesheet, !stripwordcss if DOC stylesheet
|
data/lib/isodoc/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isodoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
@@ -378,17 +378,13 @@ files:
|
|
378
378
|
- lib/isodoc/base_style/all.scss
|
379
379
|
- lib/isodoc/base_style/bands.css
|
380
380
|
- lib/isodoc/base_style/bands.scss
|
381
|
-
- lib/isodoc/base_style/blocks.css
|
382
381
|
- lib/isodoc/base_style/blocks.scss
|
383
|
-
- lib/isodoc/base_style/coverpage.css
|
384
382
|
- lib/isodoc/base_style/coverpage.scss
|
385
383
|
- lib/isodoc/base_style/defaults.css
|
386
384
|
- lib/isodoc/base_style/defaults.scss
|
387
385
|
- lib/isodoc/base_style/metanorma_word.css
|
388
386
|
- lib/isodoc/base_style/metanorma_word.scss
|
389
|
-
- lib/isodoc/base_style/nav.css
|
390
387
|
- lib/isodoc/base_style/nav.scss
|
391
|
-
- lib/isodoc/base_style/reset.css
|
392
388
|
- lib/isodoc/base_style/reset.scss
|
393
389
|
- lib/isodoc/base_style/rouge.css
|
394
390
|
- lib/isodoc/base_style/scripts.html
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,312 +0,0 @@
|
|
1
|
-
@charset "UTF-8";
|
2
|
-
html, body, div, span, applet, object, iframe,
|
3
|
-
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
4
|
-
a, abbr, acronym, address, big, cite, code,
|
5
|
-
del, dfn, em, img, ins, kbd, q, s, samp,
|
6
|
-
small, strike, strong, sub, sup, tt, var,
|
7
|
-
b, u, i, center,
|
8
|
-
ol, ul, li,
|
9
|
-
fieldset, form, label, legend,
|
10
|
-
table, caption, tbody, tfoot, thead, tr, th, td,
|
11
|
-
article, aside, canvas, details, embed,
|
12
|
-
figure, figcaption, footer, header, hgroup,
|
13
|
-
menu, output, ruby, section, summary,
|
14
|
-
time, mark, audio, video {
|
15
|
-
margin: 0;
|
16
|
-
padding: 0;
|
17
|
-
}
|
18
|
-
|
19
|
-
html, body, div, span, applet, object, iframe,
|
20
|
-
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
21
|
-
a, abbr, acronym, address, big, cite, code,
|
22
|
-
del, dfn, em, img, ins, kbd, q, s, samp,
|
23
|
-
small, strike, strong, sub, sup, tt, var,
|
24
|
-
b, u, i, center,
|
25
|
-
dl, dt, dd, ol, ul, li,
|
26
|
-
fieldset, form, label, legend,
|
27
|
-
table, caption, tbody, tfoot, thead, tr, th, td,
|
28
|
-
article, aside, canvas, details, embed,
|
29
|
-
figure, figcaption, footer, header, hgroup,
|
30
|
-
menu, nav, output, ruby, section, summary,
|
31
|
-
time, mark, audio, video {
|
32
|
-
border: 0;
|
33
|
-
font-size: 100%;
|
34
|
-
}
|
35
|
-
|
36
|
-
html, body, div, span, applet, object, iframe,
|
37
|
-
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
38
|
-
a, abbr, acronym, address, big, cite, code,
|
39
|
-
del, dfn, em, img, ins, kbd, q, s, samp,
|
40
|
-
small, strike, strong, tt, var,
|
41
|
-
b, u, i, center,
|
42
|
-
dl, dd, ol, ul, li,
|
43
|
-
fieldset, form, label, legend,
|
44
|
-
table, caption, tbody, tfoot, thead, tr, th, td,
|
45
|
-
article, aside, canvas, details, embed,
|
46
|
-
figure, figcaption, footer, header, hgroup,
|
47
|
-
menu, nav, output, ruby, section, summary,
|
48
|
-
time, mark, audio, video {
|
49
|
-
vertical-align: baseline;
|
50
|
-
}
|
51
|
-
|
52
|
-
html, body, div, span, applet, object, iframe,
|
53
|
-
p, blockquote,
|
54
|
-
a, abbr, acronym, address, big, cite,
|
55
|
-
del, dfn, em, img, ins, q, s,
|
56
|
-
small, strike, strong, sub, sup, var,
|
57
|
-
b, u, i, center,
|
58
|
-
dl, dt, dd, ol, ul, li,
|
59
|
-
fieldset, form, label, legend,
|
60
|
-
table, caption, tbody, tfoot, thead, tr, th, td,
|
61
|
-
article, aside, canvas, details, embed,
|
62
|
-
figure, figcaption, footer, header, hgroup,
|
63
|
-
menu, nav, output, ruby, section, summary,
|
64
|
-
time, mark, audio, video {
|
65
|
-
font-family: {{bodyfont}};
|
66
|
-
}
|
67
|
-
|
68
|
-
code, pre, tt, kbd, samp {
|
69
|
-
font-family: {{monospacefont}};
|
70
|
-
font-variant-ligatures: none;
|
71
|
-
}
|
72
|
-
|
73
|
-
code *, pre *, tt *, kbd *, samp * {
|
74
|
-
font-family: {{monospacefont}} !important;
|
75
|
-
font-variant-ligatures: none;
|
76
|
-
}
|
77
|
-
|
78
|
-
p code, dt code, li code, label code, legend code, caption code, th code, td code,
|
79
|
-
p tt, dt tt, li tt, label tt, legend tt, caption tt, th tt, td tt,
|
80
|
-
p kbd, dt kbd, li kbd, label kbd, legend kbd, caption kbd, th kbd, td kbd,
|
81
|
-
p samp, dt samp, li samp, label samp, legend samp, caption samp, th samp, td samp {
|
82
|
-
font-size: {{monospacefontsize}};
|
83
|
-
}
|
84
|
-
|
85
|
-
sub, sup {
|
86
|
-
font-size: 0.75em;
|
87
|
-
}
|
88
|
-
|
89
|
-
article, aside, details, figcaption, figure,
|
90
|
-
footer, header, hgroup, menu, nav, section {
|
91
|
-
display: block;
|
92
|
-
}
|
93
|
-
|
94
|
-
table {
|
95
|
-
border-collapse: collapse;
|
96
|
-
border-spacing: 0;
|
97
|
-
}
|
98
|
-
|
99
|
-
h1, h2, h3, h4, h5, h6 {
|
100
|
-
font-family: {{headerfont}};
|
101
|
-
}
|
102
|
-
|
103
|
-
.h1, .h2, .h3, .h4, .h5, .h6 {
|
104
|
-
font-family: {{headerfont}};
|
105
|
-
}
|
106
|
-
|
107
|
-
blockquote, q {
|
108
|
-
quotes: none;
|
109
|
-
}
|
110
|
-
blockquote::before, blockquote::after, q::before, q::after {
|
111
|
-
content: "";
|
112
|
-
content: none;
|
113
|
-
}
|
114
|
-
|
115
|
-
.h2Annex {
|
116
|
-
font-family: {{headerfont}};
|
117
|
-
}
|
118
|
-
|
119
|
-
dl {
|
120
|
-
display: grid;
|
121
|
-
grid-template-columns: max-content auto;
|
122
|
-
}
|
123
|
-
dl dt p, dl dd p {
|
124
|
-
margin-top: 0;
|
125
|
-
}
|
126
|
-
dl dt {
|
127
|
-
grid-column-start: 1;
|
128
|
-
}
|
129
|
-
dl dd {
|
130
|
-
grid-column-start: 2;
|
131
|
-
}
|
132
|
-
|
133
|
-
b, strong {
|
134
|
-
font-weight: bold;
|
135
|
-
}
|
136
|
-
|
137
|
-
div.document-stage-band, div.document-type-band {
|
138
|
-
background-color: #333333;
|
139
|
-
}
|
140
|
-
|
141
|
-
a.FootnoteRef + a.FootnoteRef::before {
|
142
|
-
content: ", ";
|
143
|
-
vertical-align: super;
|
144
|
-
}
|
145
|
-
|
146
|
-
a.TableFootnoteRef + a.TableFootnoteRef::before {
|
147
|
-
content: ", ";
|
148
|
-
vertical-align: super;
|
149
|
-
}
|
150
|
-
|
151
|
-
a.TableFootnoteRef, span.TableFootnoteRef,
|
152
|
-
a.FootnoteRef, span.FootnoteRef {
|
153
|
-
vertical-align: super;
|
154
|
-
}
|
155
|
-
|
156
|
-
.addition {
|
157
|
-
color: blue;
|
158
|
-
}
|
159
|
-
|
160
|
-
.deletion {
|
161
|
-
color: red;
|
162
|
-
text-decoration: line-through;
|
163
|
-
}
|
164
|
-
|
165
|
-
ruby {
|
166
|
-
ruby-position: over;
|
167
|
-
-webkit-ruby-position: before;
|
168
|
-
}
|
169
|
-
|
170
|
-
ruby ruby {
|
171
|
-
ruby-position: under;
|
172
|
-
-webkit-ruby-position: after;
|
173
|
-
}
|
174
|
-
|
175
|
-
/* code highlighting with line numbers */
|
176
|
-
table.rouge-line-table td.rouge-gutter {
|
177
|
-
-moz-user-select: none;
|
178
|
-
-ms-user-select: none;
|
179
|
-
-webkit-user-select: none;
|
180
|
-
user-select: none;
|
181
|
-
padding-right: 1em;
|
182
|
-
}
|
183
|
-
|
184
|
-
table.rouge-line-table td.rouge-code {
|
185
|
-
-moz-user-select: all;
|
186
|
-
-ms-user-select: all;
|
187
|
-
-webkit-user-select: all;
|
188
|
-
user-select: all;
|
189
|
-
}
|
190
|
-
|
191
|
-
table.rouge-line-table,
|
192
|
-
table.rouge-line-table th,
|
193
|
-
table.rouge-line-table td {
|
194
|
-
width: auto;
|
195
|
-
border: none;
|
196
|
-
margin: 0;
|
197
|
-
padding: 0;
|
198
|
-
font-size: 100%;
|
199
|
-
}
|
200
|
-
|
201
|
-
table.rouge-line-table pre {
|
202
|
-
margin: 0;
|
203
|
-
padding: 0;
|
204
|
-
overflow-x: visible;
|
205
|
-
font-size: 100%;
|
206
|
-
}
|
207
|
-
|
208
|
-
/* header § links */
|
209
|
-
a.header {
|
210
|
-
color: inherit;
|
211
|
-
text-decoration: none;
|
212
|
-
}
|
213
|
-
|
214
|
-
a.header:hover {
|
215
|
-
color: #a53221 !important;
|
216
|
-
background: inherit;
|
217
|
-
box-shadow: none;
|
218
|
-
}
|
219
|
-
|
220
|
-
a.header:visited {
|
221
|
-
color: inherit;
|
222
|
-
text-decoration: none;
|
223
|
-
}
|
224
|
-
|
225
|
-
a.anchor {
|
226
|
-
position: absolute;
|
227
|
-
z-index: 1001;
|
228
|
-
width: 1.5ex;
|
229
|
-
margin-left: -1.5ex;
|
230
|
-
display: block;
|
231
|
-
text-decoration: none !important;
|
232
|
-
visibility: hidden;
|
233
|
-
text-align: center;
|
234
|
-
font-weight: 400;
|
235
|
-
}
|
236
|
-
|
237
|
-
a.anchor::before {
|
238
|
-
content: "§";
|
239
|
-
font-size: 0.85em;
|
240
|
-
display: block;
|
241
|
-
padding-top: 0.1em;
|
242
|
-
}
|
243
|
-
|
244
|
-
a.anchor:hover {
|
245
|
-
color: #a53221;
|
246
|
-
background: inherit;
|
247
|
-
box-shadow: none;
|
248
|
-
}
|
249
|
-
|
250
|
-
h1 > a.anchor:hover,
|
251
|
-
h2 > a.anchor:hover,
|
252
|
-
h3 > a.anchor:hover,
|
253
|
-
h4 > a.anchor:hover,
|
254
|
-
h5 > a.anchor:hover,
|
255
|
-
h6 > a.anchor:hover,
|
256
|
-
.inline-header > a.anchor:hover,
|
257
|
-
h1:hover > a.anchor,
|
258
|
-
h2:hover > a.anchor,
|
259
|
-
h3:hover > a.anchor,
|
260
|
-
h4:hover > a.anchor,
|
261
|
-
h5:hover > a.anchor,
|
262
|
-
h6:hover > a.anchor,
|
263
|
-
.inline-header:hover > a.anchor {
|
264
|
-
visibility: visible;
|
265
|
-
}
|
266
|
-
|
267
|
-
/* collapsible snippets: collapsible before hidable */
|
268
|
-
.hidable {
|
269
|
-
max-height: 0;
|
270
|
-
overflow: hidden;
|
271
|
-
transition: max-height 0.2s ease-out;
|
272
|
-
}
|
273
|
-
|
274
|
-
.collapsible {
|
275
|
-
background-color: #777;
|
276
|
-
color: white;
|
277
|
-
cursor: pointer;
|
278
|
-
padding: 3px 0;
|
279
|
-
margin: 0;
|
280
|
-
width: 100%;
|
281
|
-
border: none;
|
282
|
-
text-align: left;
|
283
|
-
outline: none;
|
284
|
-
font-size: 15px;
|
285
|
-
}
|
286
|
-
|
287
|
-
.active, .collapsible:hover {
|
288
|
-
background-color: #555;
|
289
|
-
}
|
290
|
-
|
291
|
-
.collapsible:after {
|
292
|
-
content: "▼";
|
293
|
-
color: white;
|
294
|
-
font-weight: bold;
|
295
|
-
float: right;
|
296
|
-
margin-left: 12px;
|
297
|
-
margin-right: 12px;
|
298
|
-
}
|
299
|
-
|
300
|
-
.active:after {
|
301
|
-
content: "▲";
|
302
|
-
}
|
303
|
-
|
304
|
-
/* collapsible: */
|
305
|
-
.collapsible + .hidable {
|
306
|
-
margin-top: 0;
|
307
|
-
}
|
308
|
-
|
309
|
-
.collapsible:not(.active) + .hidable {
|
310
|
-
overflow: hidden;
|
311
|
-
padding: 0;
|
312
|
-
}
|