😎 Give your xaringan slides some style
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

153 satır
4.4KB

  1. @import url({{text_font_url}});
  2. @import url({{header_font_url}});
  3. @import url({{code_font_url}});
  4. {{extra_font_imports}}
  5. body {
  6. font-family: {{paste(text_font_family, text_font_family_fallback, text_font_base, sep = ", ")}};
  7. font-weight: {{text_font_weight}};
  8. color: {{text_color}};
  9. }
  10. h1, h2, h3 {
  11. font-family: {{header_font_family}};
  12. font-weight: {{header_font_weight}};
  13. color: {{header_color}};
  14. }
  15. .remark-slide-content {
  16. background-color: {{background_color}};
  17. font-size: {{text_font_size}};
  18. }
  19. .remark-slide-content h1 {
  20. font-size: {{header_h1_font_size}};
  21. }
  22. .remark-slide-content h2 {
  23. font-size: {{header_h2_font_size}};
  24. }
  25. .remark-slide-content h3 {
  26. font-size: {{header_h3_font_size}};
  27. }
  28. .remark-code, .remark-inline-code {
  29. font-family: {{code_font_family}}, {{code_font_family_fallback}}, monospace;
  30. }
  31. .remark-code {
  32. font-size: {{code_font_size}};
  33. }
  34. .remark-inline-code {
  35. font-size: {{code_inline_font_size}};
  36. {{ifelse(!is.na(code_inline_color), paste0("color: ", code_inline_color, ";"), "")}}
  37. {{ifelse(!is.na(code_inline_background_color), paste0("background-color: ", code_inline_background_color, ";"), "")}}
  38. {{ifelse(!is.na(code_inline_background_color), "padding: 2px;", "")}}
  39. }
  40. .remark-slide-number {
  41. color: {{text_slide_number_color}};
  42. opacity: 1;
  43. text-size: {{text_slide_number_font_size}};
  44. }
  45. {{ifelse(!is.na(text_bold_color), paste0("strong{color:", text_bold_color,";}"), "")}}
  46. a, a > code {
  47. color: {{link_color}};
  48. text-decoration: none;
  49. }
  50. .footnote {
  51. position: absolute;
  52. bottom: 3em;
  53. padding-right: 4em;
  54. font-size: 90%;
  55. }
  56. .remark-code-line-highlighted {
  57. background-color: {{code_highlight_color}};
  58. }
  59. .inverse {
  60. background-color: {{inverse_background_color}};
  61. color: {{inverse_text_color}};
  62. {{ifelse(inverse_text_shadow, "text-shadow: 0 0 20px #333;", "")}}
  63. }
  64. .inverse h1, .inverse h2, .inverse h3 {
  65. color: {{inverse_header_color}};
  66. }
  67. .title-slide, .title-slide h1, .title-slide h2, .title-slide h3 {
  68. color: {{title_slide_text_color}};
  69. }
  70. .title-slide {
  71. background-color: {{title_slide_background_color}};
  72. {{ifelse(!is.na(title_slide_background_image), paste0("background-image: url(", title_slide_background_image, ");"), "")}}
  73. {{ifelse(!is.na(title_slide_background_size), paste0("background-size: ", title_slide_background_size, ";"), ifelse(!is.na(title_slide_background_image), "background-size: cover;", ""))}}
  74. {{ifelse(!is.na(title_slide_background_position), paste0("background-position: ", title_slide_background_position, ";"), "")}}
  75. }
  76. .title-slide .remark-slide-number {
  77. display: none;
  78. }
  79. /* Two-column layout */
  80. .left-column {
  81. width: 20%;
  82. height: 92%;
  83. float: left;
  84. }
  85. .left-column h2, .left-column h3 {
  86. color: {{left_column_subtle_color}};
  87. }
  88. .left-column h2:last-of-type, .left-column h3:last-child {
  89. color: {{left_column_selected_color}};
  90. }
  91. .right-column {
  92. width: 75%;
  93. float: right;
  94. padding-top: 1em;
  95. }
  96. .pull-left {
  97. float: left;
  98. width: 47%;
  99. }
  100. .pull-right {
  101. float: right;
  102. width: 47%;
  103. }
  104. .pull-right ~ * {
  105. clear: both;
  106. }
  107. img, video, iframe {
  108. max-width: 100%;
  109. }
  110. blockquote {
  111. border-left: solid 5px {{blockquote_left_color}};
  112. padding-left: 1em;
  113. }
  114. table {
  115. margin: auto;
  116. border-top: 1px solid {{table_border_color}};
  117. border-bottom: 1px solid {{table_border_color}};
  118. }
  119. table thead th { border-bottom: 1px solid {{table_row_border_color}}; }
  120. th, td { padding: 5px; }
  121. thead, tfoot, tr:nth-child(even) { background: {{table_row_even_background_color}} }
  122. table.dataTable tbody {
  123. background-color: {{background_color}};
  124. color: {{text_color}};
  125. }
  126. table.dataTable.display tbody tr.odd {
  127. background-color: {{background_color}};
  128. }
  129. table.dataTable.display tbody tr.even {
  130. background-color: {{ifelse(!is.na(table_row_even_background_color), table_row_even_background_color, background_color)}};
  131. }
  132. table.dataTable.hover tbody tr:hover, table.dataTable.display tbody tr:hover {
  133. background-color: rgba(255, 255, 255, 0.5);
  134. }
  135. .dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter, .dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_processing, .dataTables_wrapper .dataTables_paginate {
  136. color: {{text_color}};
  137. }
  138. .dataTables_wrapper .dataTables_paginate .paginate_button {
  139. color: {{text_color}} !important;
  140. }
  141. @page { margin: 0; }
  142. @media print {
  143. .remark-slide-scaler {
  144. width: 100% !important;
  145. height: 100% !important;
  146. transform: scale(1) !important;
  147. top: 0 !important;
  148. left: 0 !important;
  149. }
  150. }