pdf.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. /**
  2. * This stylesheet is used to print reveal.js
  3. * presentations to PDF.
  4. *
  5. * https://revealjs.com/pdf-export/
  6. */
  7. html.reveal-print {
  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. .state-background {
  30. display: none !important;
  31. }
  32. .reveal pre code {
  33. overflow: hidden !important;
  34. }
  35. .reveal {
  36. width: auto !important;
  37. height: auto !important;
  38. overflow: hidden !important;
  39. }
  40. .reveal .slides {
  41. position: static;
  42. width: 100% !important;
  43. height: auto !important;
  44. zoom: 1 !important;
  45. pointer-events: initial;
  46. left: auto;
  47. top: auto;
  48. margin: 0 !important;
  49. padding: 0 !important;
  50. overflow: visible;
  51. display: block;
  52. perspective: none;
  53. perspective-origin: 50% 50%;
  54. }
  55. .reveal .slides .pdf-page {
  56. position: relative;
  57. overflow: hidden;
  58. z-index: 1;
  59. page-break-after: always;
  60. }
  61. .reveal .slides .pdf-page:last-of-type {
  62. page-break-after: avoid;
  63. }
  64. .reveal .slides section {
  65. visibility: visible !important;
  66. display: block !important;
  67. position: absolute !important;
  68. margin: 0 !important;
  69. padding: 0 !important;
  70. box-sizing: border-box !important;
  71. min-height: 1px;
  72. opacity: 1 !important;
  73. transform-style: flat !important;
  74. transform: none !important;
  75. }
  76. .reveal section.stack {
  77. position: relative !important;
  78. margin: 0 !important;
  79. padding: 0 !important;
  80. page-break-after: avoid !important;
  81. height: auto !important;
  82. min-height: auto !important;
  83. }
  84. .reveal img {
  85. box-shadow: none;
  86. }
  87. /* Slide backgrounds are placed inside of their slide when exporting to PDF */
  88. .reveal .backgrounds {
  89. display: none;
  90. }
  91. .reveal .slide-background {
  92. display: block !important;
  93. position: absolute;
  94. top: 0;
  95. left: 0;
  96. width: 100%;
  97. height: 100%;
  98. z-index: auto !important;
  99. }
  100. /* Display slide speaker notes when 'showNotes' is enabled */
  101. .reveal.show-notes {
  102. max-width: none;
  103. max-height: none;
  104. }
  105. .reveal .speaker-notes-pdf {
  106. display: block;
  107. width: 100%;
  108. height: auto;
  109. max-height: none;
  110. top: auto;
  111. right: auto;
  112. bottom: auto;
  113. left: auto;
  114. z-index: 100;
  115. }
  116. /* Layout option which makes notes appear on a separate page */
  117. .reveal .speaker-notes-pdf[data-layout="separate-page"] {
  118. position: relative;
  119. color: inherit;
  120. background-color: transparent;
  121. padding: 20px;
  122. page-break-after: always;
  123. border: 0;
  124. }
  125. /* Display slide numbers when 'slideNumber' is enabled */
  126. .reveal .slide-number-pdf {
  127. display: block;
  128. position: absolute;
  129. font-size: 14px;
  130. visibility: visible;
  131. }
  132. /* This accessibility tool is not useful in PDF and breaks it visually */
  133. .aria-status {
  134. display: none;
  135. }
  136. }