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.

pdf.scss 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. /**
  2. * This stylesheet is used to print reveal.js
  3. * presentations to PDF.
  4. *
  5. * https://revealjs.com/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. .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 section {
  62. visibility: visible !important;
  63. display: block !important;
  64. position: absolute !important;
  65. margin: 0 !important;
  66. padding: 0 !important;
  67. box-sizing: border-box !important;
  68. min-height: 1px;
  69. opacity: 1 !important;
  70. transform-style: flat !important;
  71. transform: none !important;
  72. }
  73. .reveal section.stack {
  74. position: relative !important;
  75. margin: 0 !important;
  76. padding: 0 !important;
  77. page-break-after: avoid !important;
  78. height: auto !important;
  79. min-height: auto !important;
  80. }
  81. .reveal img {
  82. box-shadow: none;
  83. }
  84. /* Slide backgrounds are placed inside of their slide when exporting to PDF */
  85. .reveal .backgrounds {
  86. display: none;
  87. }
  88. .reveal .slide-background {
  89. display: block !important;
  90. position: absolute;
  91. top: 0;
  92. left: 0;
  93. width: 100%;
  94. height: 100%;
  95. z-index: auto !important;
  96. }
  97. /* Display slide speaker notes when 'showNotes' is enabled */
  98. .reveal.show-notes {
  99. max-width: none;
  100. max-height: none;
  101. }
  102. .reveal .speaker-notes-pdf {
  103. display: block;
  104. width: 100%;
  105. height: auto;
  106. max-height: none;
  107. top: auto;
  108. right: auto;
  109. bottom: auto;
  110. left: auto;
  111. z-index: 100;
  112. }
  113. /* Layout option which makes notes appear on a separate page */
  114. .reveal .speaker-notes-pdf[data-layout="separate-page"] {
  115. position: relative;
  116. color: inherit;
  117. background-color: transparent;
  118. padding: 20px;
  119. page-break-after: always;
  120. border: 0;
  121. }
  122. /* Display slide numbers when 'slideNumber' is enabled */
  123. .reveal .slide-number-pdf {
  124. display: block;
  125. position: absolute;
  126. font-size: 14px;
  127. }
  128. /* This accessibility tool is not useful in PDF and breaks it visually */
  129. .aria-status {
  130. display: none;
  131. }
  132. }