😎 Give your xaringan slides some style
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

368 lines
6.8KB

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