/
dita-ot-docs-theme.yaml
220 lines (214 loc) · 5.14 KB
/
dita-ot-docs-theme.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
# Sample PDF theme
#
# https://www.dita-ot.org/dev/topics/sample-pdf-theme.html
# ↓ add-brand-colors ↓
brand:
color:
primary: '#1d365d'
secondary: '#6c757d'
tertiary: '#bac8d1'
inverse: '#e9ecef'
links: '#3563ab'
note:
background:
attention: '#fff3cd'
caution: '#f8d7da'
info: '#dce4f0'
tip: '#d1e7dd'
xml-domain: '#639'
# ↑ end-brand-colors ↑
# ↓ add-font-stacks ↓
pdf2:
font:
sans: 'Helvetica, Arial Unicode MS, Tahoma, Batang, SimSun'
serif: 'Times New Roman, Times, Arial Unicode MS, Tahoma, Batang, SimSun'
monospaced: 'Courier New, Courier, Arial Unicode MS, Tahoma, Batang, SimSun'
# ↑ end-font-stacks ↑
# ↓ add-page-settings ↓
page:
size: PA4
mirror-margins: true
# ↑ end-page-settings ↑
# ↓ add-header-setup ↓
header:
color: $brand-color-secondary
display-align: before
end-indent: 10mm
font-family: $pdf2-font-sans
padding-after: 6pt
padding-before: 12pt
start-indent: 10mm
odd:
content: '{chapter}'
text-align: end
even:
content: '{title}'
text-align: start
# ↑ end-header-setup ↑
# ↓ add-footer-setup ↓
footer:
color: $brand-color-secondary
end-indent: 10mm
font-family: $pdf2-font-sans
padding-after: 12pt
padding-before: 6pt
start-indent: 10mm
odd:
content: '{folio}'
font-weight: bold
text-align: end
even:
content: '{folio}'
font-weight: bold
text-align: start
# ↑ end-footer-setup ↑
style:
body:
font-family: $pdf2-font-serif
font-size: 11pt
line-height: 1.3
start-indent: 50pt
cmdname:
color: $brand-color-primary
font-weight: bold
codeblock:
background-color: $brand-color-inverse
border: solid 1pt $brand-color-tertiary
font-family: $pdf2-font-monospaced
font-size: 8pt
keep-together.within-page: always
space-after: 8pt
codeph:
color: $brand-color-secondary
# ↓ set-cover-page ↓
cover:
background-image: dita-ot-logo-inverse.svg
background-repeat: no-repeat
height: 25.7cm
cover-title:
color: $brand-color-primary
font-size: 36pt
font-weight: bold
line-height: 1.5
space-before: 195mm
# ↑ end-cover-page ↑
example-title:
color: $brand-color-secondary
fig:
caption:
color: $brand-color-secondary
font-size: 9pt
font-style: italic
font-weight: normal
filepath:
color: $brand-color-secondary
h1:
border-after: solid 2pt $brand-color-inverse
color: $brand-color-primary
font-size: 18pt
space-before: 0pt
padding-top: 0pt
space-after: 9pt
font-weight: bold
title-numbering: true
h2:
border-after: solid 1pt $brand-color-inverse
color: $brand-color-primary
font-size: 16pt
font-style: italic
space-before: 16pt
space-after: 8pt
title-numbering: true
h3:
color: $brand-color-primary
font-size: 14pt
font-weight: bold
space-before: 21pt
space-after: 7pt
h4:
font-size: 12pt
font-style: italic
space-before: 12pt
li:
label:
color: $brand-color-secondary
link:
color: $brand-color-links
note:
background-color: $brand-color-note-background-info
border: solid 1pt $brand-color-tertiary
keep-together.within-page: always
label:
font-family: $pdf2-font-sans
space-end: 2pt
padding-start: 6pt
start-indent: '6pt + from-parent(start-indent)'
padding-end: 6pt
end-indent: '6pt + from-parent(end-indent)'
space-before: 6pt
space-after: 12pt
attention:
background-color: $brand-color-note-background-attention
caution:
background-color: $brand-color-note-background-caution
important:
background-color: $brand-color-note-background-attention
notice:
background-color: $brand-color-note-background-attention
restriction:
background-color: $brand-color-note-background-attention
tip:
background-color: $brand-color-note-background-tip
warning:
background-color: $brand-color-note-background-caution
option:
color: $brand-color-secondary
font-family: $pdf2-font-monospaced
font-weight: bold
parmname:
color: $brand-color-primary
font-family: $pdf2-font-monospaced
font-weight: bold
section-title:
color: $brand-color-secondary
shortdesc:
color: $brand-color-secondary
font-size: 13pt
line-height: 1.3
table:
caption:
color: $brand-color-secondary
font-size: 9pt
font-style: italic
font-weight: normal
font-family: $pdf2-font-sans
font-size: 9pt
header:
background-color: $brand-color-inverse
toc-1:
color: $brand-color-primary
font-family: $pdf2-font-sans
start-indent: 0
toc-2:
color: black
space-before: 4pt
start-indent: 20pt
toc-3:
color: black
space-before: 2pt
start-indent: 42pt
toc-4:
color: black
space-before: 2pt
start-indent: 64pt
varname:
color: $brand-color-secondary
font-family: $pdf2-font-monospaced
font-style: italic
font-weight: bold
xmlatt:
color: $brand-color-xml-domain
xmlelement:
color: $brand-color-xml-domain
xmlnsname:
color: $brand-color-xml-domain