😎 Give your xaringan slides some style
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

237 líneas
4.0KB

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