|
a |
|
b/docs/pkgdown.css |
|
|
1 |
/* Sticky footer */ |
|
|
2 |
|
|
|
3 |
/** |
|
|
4 |
* Basic idea: https://philipwalton.github.io/solved-by-flexbox/demos/sticky-footer/ |
|
|
5 |
* Details: https://github.com/philipwalton/solved-by-flexbox/blob/master/assets/css/components/site.css |
|
|
6 |
* |
|
|
7 |
* .Site -> body > .container |
|
|
8 |
* .Site-content -> body > .container .row |
|
|
9 |
* .footer -> footer |
|
|
10 |
* |
|
|
11 |
* Key idea seems to be to ensure that .container and __all its parents__ |
|
|
12 |
* have height set to 100% |
|
|
13 |
* |
|
|
14 |
*/ |
|
|
15 |
|
|
|
16 |
html, body { |
|
|
17 |
height: 100%; |
|
|
18 |
} |
|
|
19 |
|
|
|
20 |
body { |
|
|
21 |
position: relative; |
|
|
22 |
} |
|
|
23 |
|
|
|
24 |
body > .container { |
|
|
25 |
display: flex; |
|
|
26 |
height: 100%; |
|
|
27 |
flex-direction: column; |
|
|
28 |
} |
|
|
29 |
|
|
|
30 |
body > .container .row { |
|
|
31 |
flex: 1 0 auto; |
|
|
32 |
} |
|
|
33 |
|
|
|
34 |
footer { |
|
|
35 |
margin-top: 45px; |
|
|
36 |
padding: 35px 0 36px; |
|
|
37 |
border-top: 1px solid #e5e5e5; |
|
|
38 |
color: #666; |
|
|
39 |
display: flex; |
|
|
40 |
flex-shrink: 0; |
|
|
41 |
} |
|
|
42 |
footer p { |
|
|
43 |
margin-bottom: 0; |
|
|
44 |
} |
|
|
45 |
footer div { |
|
|
46 |
flex: 1; |
|
|
47 |
} |
|
|
48 |
footer .pkgdown { |
|
|
49 |
text-align: right; |
|
|
50 |
} |
|
|
51 |
footer p { |
|
|
52 |
margin-bottom: 0; |
|
|
53 |
} |
|
|
54 |
|
|
|
55 |
img.icon { |
|
|
56 |
float: right; |
|
|
57 |
} |
|
|
58 |
|
|
|
59 |
/* Ensure in-page images don't run outside their container */ |
|
|
60 |
.contents img { |
|
|
61 |
max-width: 100%; |
|
|
62 |
height: auto; |
|
|
63 |
} |
|
|
64 |
|
|
|
65 |
/* Fix bug in bootstrap (only seen in firefox) */ |
|
|
66 |
summary { |
|
|
67 |
display: list-item; |
|
|
68 |
} |
|
|
69 |
|
|
|
70 |
/* Typographic tweaking ---------------------------------*/ |
|
|
71 |
|
|
|
72 |
.contents .page-header { |
|
|
73 |
margin-top: calc(-60px + 1em); |
|
|
74 |
} |
|
|
75 |
|
|
|
76 |
dd { |
|
|
77 |
margin-left: 3em; |
|
|
78 |
} |
|
|
79 |
|
|
|
80 |
/* Section anchors ---------------------------------*/ |
|
|
81 |
|
|
|
82 |
a.anchor { |
|
|
83 |
display: none; |
|
|
84 |
margin-left: 5px; |
|
|
85 |
width: 20px; |
|
|
86 |
height: 20px; |
|
|
87 |
|
|
|
88 |
background-image: url(./link.svg); |
|
|
89 |
background-repeat: no-repeat; |
|
|
90 |
background-size: 20px 20px; |
|
|
91 |
background-position: center center; |
|
|
92 |
} |
|
|
93 |
|
|
|
94 |
h1:hover .anchor, |
|
|
95 |
h2:hover .anchor, |
|
|
96 |
h3:hover .anchor, |
|
|
97 |
h4:hover .anchor, |
|
|
98 |
h5:hover .anchor, |
|
|
99 |
h6:hover .anchor { |
|
|
100 |
display: inline-block; |
|
|
101 |
} |
|
|
102 |
|
|
|
103 |
/* Fixes for fixed navbar --------------------------*/ |
|
|
104 |
|
|
|
105 |
.contents h1, .contents h2, .contents h3, .contents h4 { |
|
|
106 |
padding-top: 60px; |
|
|
107 |
margin-top: -40px; |
|
|
108 |
} |
|
|
109 |
|
|
|
110 |
/* Navbar submenu --------------------------*/ |
|
|
111 |
|
|
|
112 |
.dropdown-submenu { |
|
|
113 |
position: relative; |
|
|
114 |
} |
|
|
115 |
|
|
|
116 |
.dropdown-submenu>.dropdown-menu { |
|
|
117 |
top: 0; |
|
|
118 |
left: 100%; |
|
|
119 |
margin-top: -6px; |
|
|
120 |
margin-left: -1px; |
|
|
121 |
border-radius: 0 6px 6px 6px; |
|
|
122 |
} |
|
|
123 |
|
|
|
124 |
.dropdown-submenu:hover>.dropdown-menu { |
|
|
125 |
display: block; |
|
|
126 |
} |
|
|
127 |
|
|
|
128 |
.dropdown-submenu>a:after { |
|
|
129 |
display: block; |
|
|
130 |
content: " "; |
|
|
131 |
float: right; |
|
|
132 |
width: 0; |
|
|
133 |
height: 0; |
|
|
134 |
border-color: transparent; |
|
|
135 |
border-style: solid; |
|
|
136 |
border-width: 5px 0 5px 5px; |
|
|
137 |
border-left-color: #cccccc; |
|
|
138 |
margin-top: 5px; |
|
|
139 |
margin-right: -10px; |
|
|
140 |
} |
|
|
141 |
|
|
|
142 |
.dropdown-submenu:hover>a:after { |
|
|
143 |
border-left-color: #ffffff; |
|
|
144 |
} |
|
|
145 |
|
|
|
146 |
.dropdown-submenu.pull-left { |
|
|
147 |
float: none; |
|
|
148 |
} |
|
|
149 |
|
|
|
150 |
.dropdown-submenu.pull-left>.dropdown-menu { |
|
|
151 |
left: -100%; |
|
|
152 |
margin-left: 10px; |
|
|
153 |
border-radius: 6px 0 6px 6px; |
|
|
154 |
} |
|
|
155 |
|
|
|
156 |
/* Sidebar --------------------------*/ |
|
|
157 |
|
|
|
158 |
#pkgdown-sidebar { |
|
|
159 |
margin-top: 30px; |
|
|
160 |
position: -webkit-sticky; |
|
|
161 |
position: sticky; |
|
|
162 |
top: 70px; |
|
|
163 |
} |
|
|
164 |
|
|
|
165 |
#pkgdown-sidebar h2 { |
|
|
166 |
font-size: 1.5em; |
|
|
167 |
margin-top: 1em; |
|
|
168 |
} |
|
|
169 |
|
|
|
170 |
#pkgdown-sidebar h2:first-child { |
|
|
171 |
margin-top: 0; |
|
|
172 |
} |
|
|
173 |
|
|
|
174 |
#pkgdown-sidebar .list-unstyled li { |
|
|
175 |
margin-bottom: 0.5em; |
|
|
176 |
} |
|
|
177 |
|
|
|
178 |
/* bootstrap-toc tweaks ------------------------------------------------------*/ |
|
|
179 |
|
|
|
180 |
/* All levels of nav */ |
|
|
181 |
|
|
|
182 |
nav[data-toggle='toc'] .nav > li > a { |
|
|
183 |
padding: 4px 20px 4px 6px; |
|
|
184 |
font-size: 1.5rem; |
|
|
185 |
font-weight: 400; |
|
|
186 |
color: inherit; |
|
|
187 |
} |
|
|
188 |
|
|
|
189 |
nav[data-toggle='toc'] .nav > li > a:hover, |
|
|
190 |
nav[data-toggle='toc'] .nav > li > a:focus { |
|
|
191 |
padding-left: 5px; |
|
|
192 |
color: inherit; |
|
|
193 |
border-left: 1px solid #878787; |
|
|
194 |
} |
|
|
195 |
|
|
|
196 |
nav[data-toggle='toc'] .nav > .active > a, |
|
|
197 |
nav[data-toggle='toc'] .nav > .active:hover > a, |
|
|
198 |
nav[data-toggle='toc'] .nav > .active:focus > a { |
|
|
199 |
padding-left: 5px; |
|
|
200 |
font-size: 1.5rem; |
|
|
201 |
font-weight: 400; |
|
|
202 |
color: inherit; |
|
|
203 |
border-left: 2px solid #878787; |
|
|
204 |
} |
|
|
205 |
|
|
|
206 |
/* Nav: second level (shown on .active) */ |
|
|
207 |
|
|
|
208 |
nav[data-toggle='toc'] .nav .nav { |
|
|
209 |
display: none; /* Hide by default, but at >768px, show it */ |
|
|
210 |
padding-bottom: 10px; |
|
|
211 |
} |
|
|
212 |
|
|
|
213 |
nav[data-toggle='toc'] .nav .nav > li > a { |
|
|
214 |
padding-left: 16px; |
|
|
215 |
font-size: 1.35rem; |
|
|
216 |
} |
|
|
217 |
|
|
|
218 |
nav[data-toggle='toc'] .nav .nav > li > a:hover, |
|
|
219 |
nav[data-toggle='toc'] .nav .nav > li > a:focus { |
|
|
220 |
padding-left: 15px; |
|
|
221 |
} |
|
|
222 |
|
|
|
223 |
nav[data-toggle='toc'] .nav .nav > .active > a, |
|
|
224 |
nav[data-toggle='toc'] .nav .nav > .active:hover > a, |
|
|
225 |
nav[data-toggle='toc'] .nav .nav > .active:focus > a { |
|
|
226 |
padding-left: 15px; |
|
|
227 |
font-weight: 500; |
|
|
228 |
font-size: 1.35rem; |
|
|
229 |
} |
|
|
230 |
|
|
|
231 |
/* orcid ------------------------------------------------------------------- */ |
|
|
232 |
|
|
|
233 |
.orcid { |
|
|
234 |
font-size: 16px; |
|
|
235 |
color: #A6CE39; |
|
|
236 |
/* margins are required by official ORCID trademark and display guidelines */ |
|
|
237 |
margin-left:4px; |
|
|
238 |
margin-right:4px; |
|
|
239 |
vertical-align: middle; |
|
|
240 |
} |
|
|
241 |
|
|
|
242 |
/* Reference index & topics ----------------------------------------------- */ |
|
|
243 |
|
|
|
244 |
.ref-index th {font-weight: normal;} |
|
|
245 |
|
|
|
246 |
.ref-index td {vertical-align: top; min-width: 100px} |
|
|
247 |
.ref-index .icon {width: 40px;} |
|
|
248 |
.ref-index .alias {width: 40%;} |
|
|
249 |
.ref-index-icons .alias {width: calc(40% - 40px);} |
|
|
250 |
.ref-index .title {width: 60%;} |
|
|
251 |
|
|
|
252 |
.ref-arguments th {text-align: right; padding-right: 10px;} |
|
|
253 |
.ref-arguments th, .ref-arguments td {vertical-align: top; min-width: 100px} |
|
|
254 |
.ref-arguments .name {width: 20%;} |
|
|
255 |
.ref-arguments .desc {width: 80%;} |
|
|
256 |
|
|
|
257 |
/* Nice scrolling for wide elements --------------------------------------- */ |
|
|
258 |
|
|
|
259 |
table { |
|
|
260 |
display: block; |
|
|
261 |
overflow: auto; |
|
|
262 |
} |
|
|
263 |
|
|
|
264 |
/* Syntax highlighting ---------------------------------------------------- */ |
|
|
265 |
|
|
|
266 |
pre, code, pre code { |
|
|
267 |
background-color: #f8f8f8; |
|
|
268 |
color: #333; |
|
|
269 |
} |
|
|
270 |
pre, pre code { |
|
|
271 |
white-space: pre-wrap; |
|
|
272 |
word-break: break-all; |
|
|
273 |
overflow-wrap: break-word; |
|
|
274 |
} |
|
|
275 |
|
|
|
276 |
pre { |
|
|
277 |
border: 1px solid #eee; |
|
|
278 |
} |
|
|
279 |
|
|
|
280 |
pre .img, pre .r-plt { |
|
|
281 |
margin: 5px 0; |
|
|
282 |
} |
|
|
283 |
|
|
|
284 |
pre .img img, pre .r-plt img { |
|
|
285 |
background-color: #fff; |
|
|
286 |
} |
|
|
287 |
|
|
|
288 |
code a, pre a { |
|
|
289 |
color: #375f84; |
|
|
290 |
} |
|
|
291 |
|
|
|
292 |
a.sourceLine:hover { |
|
|
293 |
text-decoration: none; |
|
|
294 |
} |
|
|
295 |
|
|
|
296 |
.fl {color: #1514b5;} |
|
|
297 |
.fu {color: #000000;} /* function */ |
|
|
298 |
.ch,.st {color: #036a07;} /* string */ |
|
|
299 |
.kw {color: #264D66;} /* keyword */ |
|
|
300 |
.co {color: #888888;} /* comment */ |
|
|
301 |
|
|
|
302 |
.error {font-weight: bolder;} |
|
|
303 |
.warning {font-weight: bolder;} |
|
|
304 |
|
|
|
305 |
/* Clipboard --------------------------*/ |
|
|
306 |
|
|
|
307 |
.hasCopyButton { |
|
|
308 |
position: relative; |
|
|
309 |
} |
|
|
310 |
|
|
|
311 |
.btn-copy-ex { |
|
|
312 |
position: absolute; |
|
|
313 |
right: 0; |
|
|
314 |
top: 0; |
|
|
315 |
visibility: hidden; |
|
|
316 |
} |
|
|
317 |
|
|
|
318 |
.hasCopyButton:hover button.btn-copy-ex { |
|
|
319 |
visibility: visible; |
|
|
320 |
} |
|
|
321 |
|
|
|
322 |
/* headroom.js ------------------------ */ |
|
|
323 |
|
|
|
324 |
.headroom { |
|
|
325 |
will-change: transform; |
|
|
326 |
transition: transform 200ms linear; |
|
|
327 |
} |
|
|
328 |
.headroom--pinned { |
|
|
329 |
transform: translateY(0%); |
|
|
330 |
} |
|
|
331 |
.headroom--unpinned { |
|
|
332 |
transform: translateY(-100%); |
|
|
333 |
} |
|
|
334 |
|
|
|
335 |
/* mark.js ----------------------------*/ |
|
|
336 |
|
|
|
337 |
mark { |
|
|
338 |
background-color: rgba(255, 255, 51, 0.5); |
|
|
339 |
border-bottom: 2px solid rgba(255, 153, 51, 0.3); |
|
|
340 |
padding: 1px; |
|
|
341 |
} |
|
|
342 |
|
|
|
343 |
/* vertical spacing after htmlwidgets */ |
|
|
344 |
.html-widget { |
|
|
345 |
margin-bottom: 10px; |
|
|
346 |
} |
|
|
347 |
|
|
|
348 |
/* fontawesome ------------------------ */ |
|
|
349 |
|
|
|
350 |
.fab { |
|
|
351 |
font-family: "Font Awesome 5 Brands" !important; |
|
|
352 |
} |
|
|
353 |
|
|
|
354 |
/* don't display links in code chunks when printing */ |
|
|
355 |
/* source: https://stackoverflow.com/a/10781533 */ |
|
|
356 |
@media print { |
|
|
357 |
code a:link:after, code a:visited:after { |
|
|
358 |
content: ""; |
|
|
359 |
} |
|
|
360 |
} |
|
|
361 |
|
|
|
362 |
/* Section anchors --------------------------------- |
|
|
363 |
Added in pandoc 2.11: https://github.com/jgm/pandoc-templates/commit/9904bf71 |
|
|
364 |
*/ |
|
|
365 |
|
|
|
366 |
div.csl-bib-body { } |
|
|
367 |
div.csl-entry { |
|
|
368 |
clear: both; |
|
|
369 |
} |
|
|
370 |
.hanging-indent div.csl-entry { |
|
|
371 |
margin-left:2em; |
|
|
372 |
text-indent:-2em; |
|
|
373 |
} |
|
|
374 |
div.csl-left-margin { |
|
|
375 |
min-width:2em; |
|
|
376 |
float:left; |
|
|
377 |
} |
|
|
378 |
div.csl-right-inline { |
|
|
379 |
margin-left:2em; |
|
|
380 |
padding-left:1em; |
|
|
381 |
} |
|
|
382 |
div.csl-indent { |
|
|
383 |
margin-left: 2em; |
|
|
384 |
} |