asciidoctor-csand 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.adoc +2 -6
- data/lib/asciidoctor-csand.rb +1 -1
- data/lib/asciidoctor/csand/converter.rb +28 -26
- data/lib/asciidoctor/csand/csand.rng +28 -22
- data/lib/asciidoctor/csand/isostandard.rng +1 -1
- data/lib/asciidoctor/csand/version.rb +1 -1
- data/lib/{asciidoctor → isodoc}/csand/csandconvert.rb +54 -22
- data/lib/{asciidoctor → isodoc}/csand/html/dots-w@2x.png +0 -0
- data/lib/{asciidoctor → isodoc}/csand/html/dots@2x.png +0 -0
- data/lib/{asciidoctor/csand/html/html_rsd_intro.html → isodoc/csand/html/html_csand_intro.html} +0 -0
- data/lib/{asciidoctor/csand/html/html_rsd_titlepage.html → isodoc/csand/html/html_csand_titlepage.html} +0 -0
- data/lib/{asciidoctor → isodoc}/csand/html/htmlstyle.scss +169 -27
- data/lib/isodoc/csand/html/scripts.html +82 -0
- metadata +9 -11
- data/lib/asciidoctor/csand/html/header.html +0 -184
- data/lib/asciidoctor/csand/html/rsd.scss +0 -541
- data/lib/asciidoctor/csand/html/scripts.html +0 -68
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d58ce73b63e0ed847b63cbf18d0435fbf975fcc
|
4
|
+
data.tar.gz: 0dfc609f9a5de27fb148f989b810a7f1a50cfbba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c77eb0140640222cf83fd060f936c5f2e08ab0f5250548af8f94d05e5b7c765415877d4b8e56019e5b693a58c4d12a26301d2fc48d98a1ddc3d9f98ddaeaeebc
|
7
|
+
data.tar.gz: d543464acb5e8c9987821b5e438aea895a1a7e1e47002dd3d4492107f152c8b83adf9364d0cd6da3a131d524b4a05bf2b354a9c88cdccd7c471bd9e0ed5367c2
|
data/README.adoc
CHANGED
@@ -235,18 +235,14 @@ introduced with `=`, is ignored)
|
|
235
235
|
CSAND publications) (mandatory). The permitted types are:
|
236
236
|
+
|
237
237
|
--
|
238
|
-
|
239
|
-
presentation:: Presentation
|
240
|
-
proposal:: Proposal; includes IETF DRAFT
|
241
|
-
standard:: Recommendation; includes IETF RFC
|
242
|
-
report:: report
|
238
|
+
guidance, proposal, standard, report, whitepaper, charter, policy, glossary, case-study
|
243
239
|
--
|
244
240
|
|
245
241
|
`:status:``:: The document status. The permitted types are: `proposal`,
|
246
242
|
`working-draft`, `committee-draft`, `draft-standard`, `final-draft`,
|
247
243
|
`published`, `withdrawn`.
|
248
244
|
|
249
|
-
`:
|
245
|
+
`:committee:`:: The name of the relevant CSAND technical committee
|
250
246
|
(mandatory)
|
251
247
|
|
252
248
|
`:language:` :: The language of the document (only `en` for now) (mandatory)
|
data/lib/asciidoctor-csand.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
require "asciidoctor"
|
2
2
|
require "asciidoctor/csand/version"
|
3
|
-
require "
|
3
|
+
require "isodoc/csand/csandconvert"
|
4
4
|
require "asciidoctor/iso/converter"
|
5
5
|
|
6
6
|
module Asciidoctor
|
7
7
|
module Csand
|
8
|
-
|
8
|
+
CSAND_NAMESPACE = "https://open.ribose.com/standards/csand"
|
9
9
|
|
10
|
-
# A {Converter} implementation that generates
|
10
|
+
# A {Converter} implementation that generates CSD output, and a document
|
11
11
|
# schema encapsulation of the document for validation
|
12
12
|
class Converter < ISO::Converter
|
13
13
|
|
@@ -33,7 +33,7 @@ module Asciidoctor
|
|
33
33
|
|
34
34
|
def metadata_committee(node, xml)
|
35
35
|
xml.editorialgroup do |a|
|
36
|
-
a.
|
36
|
+
a.committee node.attr("technical-committee"),
|
37
37
|
**attr_code(type: node.attr("technical-committee-type"))
|
38
38
|
end
|
39
39
|
end
|
@@ -83,14 +83,25 @@ module Asciidoctor
|
|
83
83
|
ret1
|
84
84
|
end
|
85
85
|
|
86
|
+
def doctype(node)
|
87
|
+
d = node.attr("doctype")
|
88
|
+
unless %w{guidance proposal standard report whitepaper charter policy glossary case-study}.include? d
|
89
|
+
warn "#{d} is not a legal document type: reverting to 'standard'"
|
90
|
+
d = "standard"
|
91
|
+
end
|
92
|
+
d
|
93
|
+
end
|
94
|
+
|
86
95
|
def document(node)
|
87
96
|
init(node)
|
88
97
|
ret1 = makexml(node)
|
89
98
|
ret = ret1.to_xml(indent: 2)
|
90
|
-
|
91
|
-
gsub(
|
92
|
-
|
93
|
-
|
99
|
+
unless node.attr("nodoc") || !node.attr("docfile")
|
100
|
+
filename = node.attr("docfile").gsub(/\.adoc/, ".xml").
|
101
|
+
gsub(%r{^.*/}, "")
|
102
|
+
File.open(filename, "w") { |f| f.write(ret) }
|
103
|
+
html_converter(node).convert filename unless node.attr("nodoc")
|
104
|
+
end
|
94
105
|
@files_to_delete.each { |f| system "rm #{f}" }
|
95
106
|
ret
|
96
107
|
end
|
@@ -125,27 +136,18 @@ module Asciidoctor
|
|
125
136
|
return
|
126
137
|
end
|
127
138
|
|
128
|
-
def html_converter(
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
139
|
+
def html_converter(node)
|
140
|
+
IsoDoc::Csand::Convert.new(
|
141
|
+
script: node.attr("script"),
|
142
|
+
bodyfont: node.attr("body-font"),
|
143
|
+
headerfont: node.attr("header-font"),
|
144
|
+
monospacefont: node.attr("monospace-font"),
|
145
|
+
titlefont: node.attr("title-font"),
|
146
|
+
i18nyaml: node.attr("i18nyaml"),
|
147
|
+
scope: node.attr("scope"),
|
135
148
|
)
|
136
149
|
end
|
137
150
|
|
138
|
-
def default_fonts(node)
|
139
|
-
b = node.attr("body-font") ||
|
140
|
-
(node.attr("script") == "Hans" ? '"SimSun",serif' :
|
141
|
-
'"Overpass",sans-serif')
|
142
|
-
h = node.attr("header-font") ||
|
143
|
-
(node.attr("script") == "Hans" ? '"SimHei",sans-serif' :
|
144
|
-
'"Overpass",sans-serif')
|
145
|
-
m = node.attr("monospace-font") || '"Space Mono",monospace'
|
146
|
-
"$bodyfont: #{b};\n$headerfont: #{h};\n$monospacefont: #{m};\n"
|
147
|
-
end
|
148
|
-
|
149
151
|
def inline_quoted(node)
|
150
152
|
noko do |xml|
|
151
153
|
case node.type
|
@@ -1,7 +1,6 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
3
3
|
<!--
|
4
|
-
default namespace = "http://riboseinc.com/csand"
|
5
4
|
Currently we inherit from a namespaced grammar, isostandard. Until we inherit from isodoc,
|
6
5
|
we cannot have a new default namespace: we will end up with a grammar with two different
|
7
6
|
namespaces, one for isostandard and one for csand additions. And we do not want that.
|
@@ -25,19 +24,6 @@
|
|
25
24
|
<ref name="FormattedString"/>
|
26
25
|
</element>
|
27
26
|
</define>
|
28
|
-
<define name="status">
|
29
|
-
<element name="status">
|
30
|
-
<choice>
|
31
|
-
<value>proposal</value>
|
32
|
-
<value>working-draft</value>
|
33
|
-
<value>committee-draft</value>
|
34
|
-
<value>draft-standard</value>
|
35
|
-
<value>final-draft</value>
|
36
|
-
<value>published</value>
|
37
|
-
<value>withdrawn</value>
|
38
|
-
</choice>
|
39
|
-
</element>
|
40
|
-
</define>
|
41
27
|
<define name="figure">
|
42
28
|
<element name="figure">
|
43
29
|
<attribute name="id">
|
@@ -92,15 +78,35 @@
|
|
92
78
|
<ref name="keyword"/>
|
93
79
|
</choice>
|
94
80
|
</define>
|
81
|
+
<define name="BibItemType" combine="choice">
|
82
|
+
<choice>
|
83
|
+
<value>guidance</value>
|
84
|
+
<value>proposal</value>
|
85
|
+
<value>standard</value>
|
86
|
+
<value>report</value>
|
87
|
+
<value>whitepaper</value>
|
88
|
+
<value>charter</value>
|
89
|
+
<value>policy</value>
|
90
|
+
<value>glossary</value>
|
91
|
+
<value>case-study</value>
|
92
|
+
</choice>
|
93
|
+
</define>
|
94
|
+
<define name="editorialgroup">
|
95
|
+
<element name="editorialgroup">
|
96
|
+
<ref name="committee"/>
|
97
|
+
</element>
|
98
|
+
</define>
|
95
99
|
</include>
|
96
|
-
<define name="
|
97
|
-
<
|
98
|
-
<
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
100
|
+
<define name="committee">
|
101
|
+
<element name="committee">
|
102
|
+
<attribute name="type">
|
103
|
+
<choice>
|
104
|
+
<value>technical</value>
|
105
|
+
<value>provisional</value>
|
106
|
+
</choice>
|
107
|
+
</attribute>
|
108
|
+
<text/>
|
109
|
+
</element>
|
104
110
|
</define>
|
105
111
|
<define name="pre">
|
106
112
|
<element name="pre">
|
@@ -1,15 +1,35 @@
|
|
1
1
|
require "isodoc"
|
2
2
|
|
3
|
-
module
|
3
|
+
module IsoDoc
|
4
4
|
module Csand
|
5
5
|
# A {Converter} implementation that generates CSAND output, and a document
|
6
6
|
# schema encapsulation of the document for validation
|
7
|
-
class
|
7
|
+
class Convert < IsoDoc::Convert
|
8
|
+
def html_doc_path(file)
|
9
|
+
File.join(File.dirname(__FILE__), File.join("html", file))
|
10
|
+
end
|
11
|
+
|
8
12
|
def initialize(options)
|
9
13
|
super
|
14
|
+
@htmlstylesheet = generate_css(html_doc_path("htmlstyle.scss"), true, default_fonts(options))
|
15
|
+
# @standardstylesheet = generate_css(html_doc_path("csd.scss"), true, default_fonts(options))
|
16
|
+
@htmlcoverpage = html_doc_path("html_csand_titlepage.html")
|
17
|
+
@htmlintropage = html_doc_path("html_csand_intro.html")
|
18
|
+
@scripts = html_doc_path("scripts.html")
|
10
19
|
set_metadata(:status, "XXX")
|
11
20
|
end
|
12
21
|
|
22
|
+
def default_fonts(options)
|
23
|
+
b = options[:bodyfont] ||
|
24
|
+
(options[:script] == "Hans" ? '"SimSun",serif' :
|
25
|
+
'"Overpass",sans-serif')
|
26
|
+
h = options[:headerfont] ||
|
27
|
+
(options[:script] == "Hans" ? '"SimHei",sans-serif' :
|
28
|
+
'"Overpass",sans-serif')
|
29
|
+
m = options[:monospacefont] || '"Space Mono",monospace'
|
30
|
+
"$bodyfont: #{b};\n$headerfont: #{h};\n$monospacefont: #{m};\n"
|
31
|
+
end
|
32
|
+
|
13
33
|
def init_metadata
|
14
34
|
super
|
15
35
|
end
|
@@ -56,6 +76,19 @@ module Asciidoctor
|
|
56
76
|
end
|
57
77
|
end
|
58
78
|
|
79
|
+
def annex_name(annex, name, div)
|
80
|
+
div.h1 **{ class: "Annex" } do |t|
|
81
|
+
t << "#{get_anchors[annex['id']][:label]} "
|
82
|
+
t << "<b>#{name.text}</b>"
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
def annex_name_lbl(clause, num)
|
87
|
+
obl = l10n("(#{@inform_annex_lbl})")
|
88
|
+
obl = l10n("(#{@norm_annex_lbl})") if clause["obligation"] == "normative"
|
89
|
+
l10n("<b>#{@annex_lbl} #{num}</b> #{obl}")
|
90
|
+
end
|
91
|
+
|
59
92
|
def pre_parse(node, out)
|
60
93
|
out.pre node.text # content.gsub(/</, "<").gsub(/>/, ">")
|
61
94
|
end
|
@@ -85,7 +118,8 @@ module Asciidoctor
|
|
85
118
|
end
|
86
119
|
end
|
87
120
|
|
88
|
-
|
121
|
+
def html_head()
|
122
|
+
<<~HEAD.freeze
|
89
123
|
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
90
124
|
|
91
125
|
<!--TOC script import-->
|
@@ -97,24 +131,8 @@ module Asciidoctor
|
|
97
131
|
<!--Font awesome import for the link icon-->
|
98
132
|
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.8/css/solid.css" integrity="sha384-v2Tw72dyUXeU3y4aM2Y0tBJQkGfplr39mxZqlTBDUZAb9BGoC40+rdFCG0m10lXk" crossorigin="anonymous">
|
99
133
|
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.8/css/fontawesome.css" integrity="sha384-q3jl8XQu1OpdLgGFvNRnPdj5VIlCvgsDQTQB6owSOHWlAurxul7f+JpUOVdAiJ5P" crossorigin="anonymous">
|
100
|
-
|
101
|
-
|
102
|
-
BUTTON = '<button onclick="topFunction()" id="myBtn" '\
|
103
|
-
'title="Go to top">Top</button>'.freeze
|
104
|
-
|
105
|
-
|
106
|
-
def html_main(docxml)
|
107
|
-
d = docxml.at('//div[@class="WordSection3"]')
|
108
|
-
s = d.replace("<main></main>")
|
109
|
-
s.first.children = d
|
110
|
-
s.first.children.first.previous = BUTTON
|
111
|
-
end
|
112
|
-
|
113
|
-
def html_preface(docxml)
|
114
|
-
super
|
115
|
-
docxml.at("//head").add_child(HEAD)
|
116
|
-
html_main(docxml)
|
117
|
-
docxml
|
134
|
+
<style class="anchorjs"></style>
|
135
|
+
HEAD
|
118
136
|
end
|
119
137
|
|
120
138
|
def make_body(xml, docxml)
|
@@ -127,7 +145,21 @@ module Asciidoctor
|
|
127
145
|
end
|
128
146
|
|
129
147
|
def html_toc(docxml)
|
130
|
-
|
148
|
+
docxml
|
149
|
+
end
|
150
|
+
|
151
|
+
def cleanup(docxml)
|
152
|
+
super
|
153
|
+
term_cleanup(docxml)
|
154
|
+
end
|
155
|
+
|
156
|
+
def term_cleanup(docxml)
|
157
|
+
docxml.xpath("//p[@class = 'Terms']").each do |d|
|
158
|
+
h2 = d.at("./preceding-sibling::*[@class = 'TermNum'][1]")
|
159
|
+
h2.add_child(" ")
|
160
|
+
h2.add_child(d.remove)
|
161
|
+
end
|
162
|
+
docxml
|
131
163
|
end
|
132
164
|
end
|
133
165
|
end
|
File without changes
|
File without changes
|
data/lib/{asciidoctor/csand/html/html_rsd_intro.html → isodoc/csand/html/html_csand_intro.html}
RENAMED
File without changes
|
File without changes
|
@@ -13,20 +13,89 @@ a, abbr, acronym, address, big, cite, code,
|
|
13
13
|
del, dfn, em, img, ins, kbd, q, s, samp,
|
14
14
|
small, strike, strong, sub, sup, tt, var,
|
15
15
|
b, u, i, center,
|
16
|
+
ol, ul, li,
|
17
|
+
fieldset, form, label, legend,
|
18
|
+
table, caption, tbody, tfoot, thead, tr, th, td,
|
19
|
+
article, aside, canvas, details, embed,
|
20
|
+
figure, figcaption, footer, header, hgroup,
|
21
|
+
menu, nav, output, ruby, section, summary,
|
22
|
+
time, mark, audio, video {
|
23
|
+
margin: 0;
|
24
|
+
padding: 0;
|
25
|
+
}
|
26
|
+
|
27
|
+
html, body, div, span, applet, object, iframe,
|
28
|
+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
29
|
+
a, abbr, acronym, address, big, cite, code,
|
30
|
+
del, dfn, em, img, ins, kbd, q, s, samp,
|
31
|
+
small, strike, strong, sub, sup, tt, var,
|
32
|
+
b, u, i, center,
|
33
|
+
dl, dt, dd, ol, ul, li,
|
34
|
+
fieldset, form, label, legend,
|
35
|
+
table, caption, tbody, tfoot, thead, tr, th, td,
|
36
|
+
article, aside, canvas, details, embed,
|
37
|
+
figure, figcaption, footer, header, hgroup,
|
38
|
+
menu, nav, output, ruby, section, summary,
|
39
|
+
time, mark, audio, video {
|
40
|
+
border: 0;
|
41
|
+
font-size: 100%;
|
42
|
+
}
|
43
|
+
|
44
|
+
html, body, div, span, applet, object, iframe,
|
45
|
+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
46
|
+
a, abbr, acronym, address, big, cite, code,
|
47
|
+
del, dfn, em, img, ins, kbd, q, s, samp,
|
48
|
+
small, strike, strong, tt, var,
|
49
|
+
b, u, i, center,
|
50
|
+
dl, dd, ol, ul, li,
|
51
|
+
fieldset, form, label, legend,
|
52
|
+
table, caption, tbody, tfoot, thead, tr, th, td,
|
53
|
+
article, aside, canvas, details, embed,
|
54
|
+
figure, figcaption, footer, header, hgroup,
|
55
|
+
menu, nav, output, ruby, section, summary,
|
56
|
+
time, mark, audio, video {
|
57
|
+
vertical-align: baseline;
|
58
|
+
}
|
59
|
+
|
60
|
+
|
61
|
+
html, body, div, span, applet, object, iframe,
|
62
|
+
p, blockquote, pre,
|
63
|
+
a, abbr, acronym, address, big, cite, code,
|
64
|
+
del, dfn, em, img, ins, kbd, q, s, samp,
|
65
|
+
small, strike, strong, sub, sup, tt, var,
|
66
|
+
b, u, i, center,
|
16
67
|
dl, dt, dd, ol, ul, li,
|
17
68
|
fieldset, form, label, legend,
|
18
69
|
table, caption, tbody, tfoot, thead, tr, th, td,
|
19
|
-
article, aside, canvas, details, embed,
|
20
|
-
figure, figcaption, footer, header, hgroup,
|
70
|
+
article, aside, canvas, details, embed,
|
71
|
+
figure, figcaption, footer, header, hgroup,
|
21
72
|
menu, nav, output, ruby, section, summary,
|
22
73
|
time, mark, audio, video {
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
74
|
+
font-family: $bodyfont;
|
75
|
+
}
|
76
|
+
|
77
|
+
h1, h2, h3, h4, h5, h6, .h2Annex {
|
78
|
+
font-family: $headerfont;
|
79
|
+
}
|
80
|
+
|
81
|
+
dl {
|
82
|
+
display: grid;
|
83
|
+
grid-template-columns: max-content auto;
|
84
|
+
}
|
85
|
+
|
86
|
+
dt {
|
87
|
+
grid-column-start: 1;
|
88
|
+
}
|
89
|
+
|
90
|
+
dd {
|
91
|
+
grid-column-start: 2;
|
92
|
+
}
|
93
|
+
|
94
|
+
dd p {
|
95
|
+
margin-top: 0px;
|
29
96
|
}
|
97
|
+
|
98
|
+
|
30
99
|
/* HTML5 display-role reset for older browsers */
|
31
100
|
article, aside, details, figcaption, figure,
|
32
101
|
footer, header, hgroup, menu, nav, section {
|
@@ -35,11 +104,6 @@ footer, header, hgroup, menu, nav, section {
|
|
35
104
|
body {
|
36
105
|
line-height: 1;
|
37
106
|
}
|
38
|
-
/*
|
39
|
-
ol, ul {
|
40
|
-
list-style: none;
|
41
|
-
}
|
42
|
-
*/
|
43
107
|
blockquote, q {
|
44
108
|
quotes: none;
|
45
109
|
}
|
@@ -366,10 +430,17 @@ p.document-stage {
|
|
366
430
|
margin-top: 2em;
|
367
431
|
}
|
368
432
|
|
369
|
-
h2 {
|
433
|
+
h2 {
|
434
|
+
font-size: 1.3em;
|
435
|
+
font-weight: 400;
|
436
|
+
}
|
370
437
|
|
371
|
-
h3 {
|
438
|
+
h3 {
|
439
|
+
font-size: 1.1em;
|
440
|
+
font-weight: 400;
|
441
|
+
}
|
372
442
|
|
443
|
+
/*
|
373
444
|
span[id^="toc"]:after {
|
374
445
|
float: left;
|
375
446
|
padding-right: 4px;
|
@@ -380,10 +451,9 @@ p.document-stage {
|
|
380
451
|
color: #cfcfcf;
|
381
452
|
content: "\f0c1";
|
382
453
|
}
|
454
|
+
*/
|
383
455
|
|
384
|
-
|
385
|
-
|
386
|
-
p.TermNum, p.Terms, p.AltTerms {
|
456
|
+
.TermNum, .Terms, .AltTerms {
|
387
457
|
color: #485094;
|
388
458
|
font-weight: 400;
|
389
459
|
}
|
@@ -401,10 +471,17 @@ p.document-stage {
|
|
401
471
|
margin: 0;
|
402
472
|
}
|
403
473
|
|
474
|
+
/*
|
404
475
|
p.AltTerms {
|
405
476
|
font-style: italic;
|
406
477
|
margin: 0;
|
407
478
|
}
|
479
|
+
*/
|
480
|
+
|
481
|
+
span.obligation {
|
482
|
+
font-weight: 400;
|
483
|
+
}
|
484
|
+
|
408
485
|
|
409
486
|
/*
|
410
487
|
3.2 Links
|
@@ -444,11 +521,43 @@ p.document-stage {
|
|
444
521
|
3.3 Lists
|
445
522
|
*/
|
446
523
|
|
447
|
-
ul {
|
448
|
-
|
449
|
-
|
524
|
+
ul {
|
525
|
+
margin-left: 1.2em;
|
526
|
+
}
|
450
527
|
|
451
|
-
|
528
|
+
ul {
|
529
|
+
margin-left: 1.2em; }
|
530
|
+
|
531
|
+
ul > li {
|
532
|
+
list-style: none;
|
533
|
+
}
|
534
|
+
|
535
|
+
ul > li:before {
|
536
|
+
content: "—";
|
537
|
+
display: inline-block; width: 1em;
|
538
|
+
margin-left: -1.2em;
|
539
|
+
}
|
540
|
+
|
541
|
+
li p {
|
542
|
+
display: inline;
|
543
|
+
}
|
544
|
+
|
545
|
+
li:first-child {
|
546
|
+
margin-top: 1em;
|
547
|
+
}
|
548
|
+
|
549
|
+
#toc ul {
|
550
|
+
margin-bottom: 0.25em; }
|
551
|
+
|
552
|
+
#toc li {
|
553
|
+
list-style-type: none; }
|
554
|
+
|
555
|
+
#toc li:before {
|
556
|
+
content: " ";
|
557
|
+
display: none;
|
558
|
+
}
|
559
|
+
|
560
|
+
|
452
561
|
|
453
562
|
/*
|
454
563
|
3.4 Rules
|
@@ -461,13 +570,18 @@ p.document-stage {
|
|
461
570
|
margin: 2em 0;
|
462
571
|
}
|
463
572
|
|
573
|
+
h2 p {
|
574
|
+
display: inline;
|
575
|
+
}
|
576
|
+
|
464
577
|
/*
|
465
578
|
3.5 Bibliograhy
|
466
579
|
*/
|
467
580
|
|
468
|
-
p.Biblio {
|
581
|
+
p.Biblio, p.NormRef {
|
469
582
|
margin-top: 1em;
|
470
583
|
margin-left: 2em;
|
584
|
+
text-indent:-2em;
|
471
585
|
}
|
472
586
|
|
473
587
|
/*
|
@@ -579,12 +693,15 @@ a.footnote-number {
|
|
579
693
|
margin-right: auto;
|
580
694
|
}
|
581
695
|
|
696
|
+
.QuoteAttribution
|
697
|
+
{text-align:right;}
|
698
|
+
|
582
699
|
|
583
700
|
/*
|
584
701
|
3.12 Formulas
|
585
702
|
*/
|
586
703
|
|
587
|
-
.formula {
|
704
|
+
.formula, .Formula {
|
588
705
|
background-color: #f7f7f7;
|
589
706
|
padding: 1.5em;
|
590
707
|
margin-top: 2em;
|
@@ -639,6 +756,21 @@ p {
|
|
639
756
|
margin-bottom: 1em;
|
640
757
|
}
|
641
758
|
|
759
|
+
/* Admonitions */
|
760
|
+
|
761
|
+
.Admonition, .admonition {
|
762
|
+
background-color: #ffb3b3;
|
763
|
+
/* color: #47430c;*/
|
764
|
+
padding: 0.5em;
|
765
|
+
margin: 1.5em 0 1.5em 0;
|
766
|
+
text-align: left;
|
767
|
+
}
|
768
|
+
|
769
|
+
.Admonition p, .admonition p {
|
770
|
+
margin: 0;
|
771
|
+
}
|
772
|
+
|
773
|
+
|
642
774
|
/*
|
643
775
|
4.0 Page header
|
644
776
|
*/
|
@@ -650,7 +782,7 @@ p {
|
|
650
782
|
.wrapper-top {
|
651
783
|
background-color:#0e1a85;
|
652
784
|
/* background-image: url("img/dots@2x.png"); */
|
653
|
-
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAACXBIWXMAABYlAAAWJQFJUiTwAAADwUlEQVR4nO3YgQ2AMAwDwcAiWZ1NizrH30lIeIEq9nPOGSDqPgC7+93v/suy3Mmvhx+
|
785
|
+
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAACXBIWXMAABYlAAAWJQFJUiTwAAADwUlEQVR4nO3YgQ2AMAwDwcAiWZ1NizrH30lIeIEq9nPOGSDqPgC7+93v/suy3Mmvhx+6VAAIcwFAmc4nyzYAIMgGAGEuACirdyBZtgEASTYACHMBQFm9A8myDQBIsgFAmAsAyuodSJZtAECSDQDCXABQVu9AsmwDAJJsABDmAoCyegeSZRsAkGQDgDAXAJTVO5As2wCAJBsAhLkAoKzegWTZBgAk2QAgzAUAZfUOJMs2ACDJBgBhLgAoq3cgWbYBAEk2AAhzAUBZvQPJsg0ASLIBQJgLAMrqHUiWbQBAkg0AwlwAUFbvQLJsAwCSbAAQ5gKAsnoHkmUbAJBkA4AwFwCU1TuQLNsAgCQbAIS5AKCs3oFk2QYAJNkAIMwFAGX1DiTLNgAgyQYAYS4AKKt3IFm2AQBJNgAIcwFAWb0DybINAEiyAUCYCwDK6h1Ilm0AQJINAMJcAFBW70CybAMAkmwAEOYCgLJ6B5JlGwCQZAOAMBcAlNU7kCzbAIAkGwCEuQCgrN6BZNkGACTZACDMBQBl9Q4kyzYAIMkGAGEuACirdyBZtgEASTYACHMBQFm9A8myDQBIsgFAmAsAyuodSJZtAECSDQDCXABQVu9AsmwDAJJsABDmAoCyegeSZRsAkGQDgDAXAJTVO5As2wCAJBsAhLkAoKzegWTZBgAk2QAgzAUAZfUOJMs2ACDJBgBhLgAoq3cgWbYBAEk2AAhzAUBZvQPJsg0ASLIBQJgLAMrqHUiWbQBAkg0AwlwAUFbvQLJsAwCSbAAQ5gKAsnoHkmUbAJBkA4AwFwCU1TuQLNsAgCQbAIS5AKCs3oFk2QYAJNkAIMwFAGX1DiTLNgAgyQYAYS4AKKt3IFm2AQBJNgAIcwFAWb0DybINAEiyAUCYCwDK6h1Ilm0AQJINAMJcAFBW70CybAMAkmwAEOYCgLJ6B5JlGwCQZAOAMBcAlNU7kCzbAIAkGwCEuQCgrN6BZNkGACTZACDMBQBl9Q4kyzYAIMkGAGEuACirdyBZtgEASTYACHMBQFm9A8myDQBIsgFAmAsAyuodSJZtAECSDQDCXABQVu9AsmwDAJJsABDmAoCyegeSZRsAkGQDgDAXAJTVO5As2wCAJBsAhLkAoKzegWTZBgAk2QAgzAUAZfUOJMs2ACDJBgBhLgAoq3cgWbYBAEk2AAhzAUBZvQPJsg0ASLIBQJgLAMrqHUiWbQBAkg0AwlwAUFbvQLJsAwCSbAAQ5gKAsnoHkmUbAJBkA4AwFwCU1TuQLNsAgCQbAFTNzA9ggAr9aahO8QAAAABJRU5ErkJggg==');
|
654
786
|
color: #ffffff;
|
655
787
|
padding: 2em 0;
|
656
788
|
}
|
@@ -663,8 +795,11 @@ p {
|
|
663
795
|
.coverpage-title {
|
664
796
|
padding-bottom: 0.5em;
|
665
797
|
font-family: $headerfont;
|
666
|
-
font-size: 1.
|
667
|
-
|
798
|
+
font-size: 1.2em;
|
799
|
+
line-height: 1.2em;
|
800
|
+
font-weight: 900;
|
801
|
+
padding-left: 1em;
|
802
|
+
padding-right: 1em;
|
668
803
|
}
|
669
804
|
|
670
805
|
.WordSection11 {
|
@@ -683,6 +818,7 @@ p {
|
|
683
818
|
|
684
819
|
.coverpage {
|
685
820
|
text-align: center;
|
821
|
+
padding-left: 1.5em;
|
686
822
|
}
|
687
823
|
|
688
824
|
.coverpage-logo span, .coverpage-tc-name span {
|
@@ -791,3 +927,9 @@ To top button
|
|
791
927
|
#myBtn:hover {
|
792
928
|
opacity: 1;
|
793
929
|
}
|
930
|
+
|
931
|
+
a.anchorjs-link:hover {
|
932
|
+
background: none;
|
933
|
+
color: #485094;
|
934
|
+
box-shadow: none;
|
935
|
+
}
|