😎 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.

228 lines
3.9KB

  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 > .container {
  18. display: flex;
  19. height: 100%;
  20. flex-direction: column;
  21. padding-top: 60px;
  22. }
  23. body > .container .row {
  24. flex: 1 0 auto;
  25. }
  26. footer {
  27. margin-top: 45px;
  28. padding: 35px 0 36px;
  29. border-top: 1px solid #e5e5e5;
  30. color: #666;
  31. display: flex;
  32. flex-shrink: 0;
  33. }
  34. footer p {
  35. margin-bottom: 0;
  36. }
  37. footer div {
  38. flex: 1;
  39. }
  40. footer .pkgdown {
  41. text-align: right;
  42. }
  43. footer p {
  44. margin-bottom: 0;
  45. }
  46. img.icon {
  47. float: right;
  48. }
  49. img {
  50. max-width: 100%;
  51. }
  52. /* Typographic tweaking ---------------------------------*/
  53. .contents h1.page-header {
  54. margin-top: calc(-60px + 1em);
  55. }
  56. /* Section anchors ---------------------------------*/
  57. a.anchor {
  58. margin-left: -30px;
  59. display:inline-block;
  60. width: 30px;
  61. height: 30px;
  62. visibility: hidden;
  63. background-image: url(./link.svg);
  64. background-repeat: no-repeat;
  65. background-size: 20px 20px;
  66. background-position: center center;
  67. }
  68. .hasAnchor:hover a.anchor {
  69. visibility: visible;
  70. }
  71. @media (max-width: 767px) {
  72. .hasAnchor:hover a.anchor {
  73. visibility: hidden;
  74. }
  75. }
  76. /* Fixes for fixed navbar --------------------------*/
  77. .contents h1, .contents h2, .contents h3, .contents h4 {
  78. padding-top: 60px;
  79. margin-top: -40px;
  80. }
  81. /* Static header placement on mobile devices */
  82. @media (max-width: 767px) {
  83. .navbar-fixed-top {
  84. position: absolute;
  85. }
  86. .navbar {
  87. padding: 0;
  88. }
  89. }
  90. /* Sidebar --------------------------*/
  91. #sidebar {
  92. margin-top: 30px;
  93. }
  94. #sidebar h2 {
  95. font-size: 1.5em;
  96. margin-top: 1em;
  97. }
  98. #sidebar h2:first-child {
  99. margin-top: 0;
  100. }
  101. #sidebar .list-unstyled li {
  102. margin-bottom: 0.5em;
  103. }
  104. .orcid {
  105. height: 16px;
  106. vertical-align: middle;
  107. }
  108. /* Reference index & topics ----------------------------------------------- */
  109. .ref-index th {font-weight: normal;}
  110. .ref-index td {vertical-align: top;}
  111. .ref-index .alias {width: 40%;}
  112. .ref-index .title {width: 60%;}
  113. .ref-index .alias {width: 40%;}
  114. .ref-index .title {width: 60%;}
  115. .ref-arguments th {text-align: right; padding-right: 10px;}
  116. .ref-arguments th, .ref-arguments td {vertical-align: top;}
  117. .ref-arguments .name {width: 20%;}
  118. .ref-arguments .desc {width: 80%;}
  119. /* Nice scrolling for wide elements --------------------------------------- */
  120. table {
  121. display: block;
  122. overflow: auto;
  123. }
  124. /* Syntax highlighting ---------------------------------------------------- */
  125. pre {
  126. word-wrap: normal;
  127. word-break: normal;
  128. border: 1px solid #eee;
  129. }
  130. pre, code {
  131. background-color: #f8f8f8;
  132. color: #333;
  133. }
  134. pre code {
  135. overflow: auto;
  136. word-wrap: normal;
  137. white-space: pre;
  138. }
  139. pre .img {
  140. margin: 5px 0;
  141. }
  142. pre .img img {
  143. background-color: #fff;
  144. display: block;
  145. height: auto;
  146. }
  147. code a, pre a {
  148. color: #375f84;
  149. }
  150. a.sourceLine:hover {
  151. text-decoration: none;
  152. }
  153. .fl {color: #1514b5;}
  154. .fu {color: #000000;} /* function */
  155. .ch,.st {color: #036a07;} /* string */
  156. .kw {color: #264D66;} /* keyword */
  157. .co {color: #888888;} /* comment */
  158. .message { color: black; font-weight: bolder;}
  159. .error { color: orange; font-weight: bolder;}
  160. .warning { color: #6A0366; font-weight: bolder;}
  161. /* Clipboard --------------------------*/
  162. .hasCopyButton {
  163. position: relative;
  164. }
  165. .btn-copy-ex {
  166. position: absolute;
  167. right: 0;
  168. top: 0;
  169. visibility: hidden;
  170. }
  171. .hasCopyButton:hover button.btn-copy-ex {
  172. visibility: visible;
  173. }
  174. /* mark.js ----------------------------*/
  175. mark {
  176. background-color: rgba(255, 255, 51, 0.5);
  177. border-bottom: 2px solid rgba(255, 153, 51, 0.3);
  178. padding: 1px;
  179. }