pdf.scss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. /**
  2. * This stylesheet is used to print reveal.js
  3. * presentations to PDF.
  4. *
  5. * https://github.com/hakimel/reveal.js#pdf-export
  6. */
  7. html.print-pdf {
  8. * {
  9. -webkit-print-color-adjust: exact;
  10. }
  11. & {
  12. width: 100%;
  13. height: 100%;
  14. overflow: visible;
  15. }
  16. body {
  17. margin: 0 auto !important;
  18. border: 0;
  19. padding: 0;
  20. float: none !important;
  21. overflow: visible;
  22. }
  23. /* Remove any elements not needed in print. */
  24. .nestedarrow,
  25. .reveal .controls,
  26. .reveal .progress,
  27. .reveal .playback,
  28. .reveal.overview,
  29. .fork-reveal,
  30. .share-reveal,
  31. .state-background {
  32. display: none !important;
  33. }
  34. h1, h2, h3, h4, h5, h6 {
  35. text-shadow: 0 0 0 #000 !important;
  36. }
  37. .reveal pre code {
  38. overflow: hidden !important;
  39. font-family: Courier, 'Courier New', monospace !important;
  40. }
  41. ul, ol, div, p {
  42. visibility: visible;
  43. position: static;
  44. width: auto;
  45. height: auto;
  46. display: block;
  47. overflow: visible;
  48. margin: auto;
  49. }
  50. .reveal {
  51. width: auto !important;
  52. height: auto !important;
  53. overflow: hidden !important;
  54. }
  55. .reveal .slides {
  56. position: static;
  57. width: 100% !important;
  58. height: auto !important;
  59. zoom: 1 !important;
  60. pointer-events: initial;
  61. left: auto;
  62. top: auto;
  63. margin: 0 !important;
  64. padding: 0 !important;
  65. overflow: visible;
  66. display: block;
  67. perspective: none;
  68. perspective-origin: 50% 50%;
  69. }
  70. .reveal .slides .pdf-page {
  71. position: relative;
  72. overflow: hidden;
  73. z-index: 1;
  74. page-break-after: always;
  75. }
  76. .reveal .slides section {
  77. visibility: visible !important;
  78. display: block !important;
  79. position: absolute !important;
  80. margin: 0 !important;
  81. padding: 0 !important;
  82. box-sizing: border-box !important;
  83. min-height: 1px;
  84. opacity: 1 !important;
  85. transform-style: flat !important;
  86. transform: none !important;
  87. }
  88. .reveal section.stack {
  89. position: relative !important;
  90. margin: 0 !important;
  91. padding: 0 !important;
  92. page-break-after: avoid !important;
  93. height: auto !important;
  94. min-height: auto !important;
  95. }
  96. .reveal img {
  97. box-shadow: none;
  98. }
  99. .reveal .roll {
  100. overflow: visible;
  101. line-height: 1em;
  102. }
  103. /* Slide backgrounds are placed inside of their slide when exporting to PDF */
  104. .reveal .slide-background {
  105. display: block !important;
  106. position: absolute;
  107. top: 0;
  108. left: 0;
  109. width: 100%;
  110. height: 100%;
  111. z-index: auto !important;
  112. }
  113. /* Display slide speaker notes when 'showNotes' is enabled */
  114. .reveal.show-notes {
  115. max-width: none;
  116. max-height: none;
  117. }
  118. .reveal .speaker-notes-pdf {
  119. display: block;
  120. width: 100%;
  121. height: auto;
  122. max-height: none;
  123. top: auto;
  124. right: auto;
  125. bottom: auto;
  126. left: auto;
  127. z-index: 100;
  128. }
  129. /* Layout option which makes notes appear on a separate page */
  130. .reveal .speaker-notes-pdf[data-layout="separate-page"] {
  131. position: relative;
  132. color: inherit;
  133. background-color: transparent;
  134. padding: 20px;
  135. page-break-after: always;
  136. border: 0;
  137. }
  138. /* Display slide numbers when 'slideNumber' is enabled */
  139. .reveal .slide-number-pdf {
  140. display: block;
  141. position: absolute;
  142. font-size: 14px;
  143. }
  144. /* This accessibility tool is not useful in PDF and breaks it visually */
  145. .aria-status {
  146. display: none;
  147. }
  148. }