pdf.css 2.8 KB

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