pdf.css 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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. .reveal .slide-number {
  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. left: auto;
  61. top: auto;
  62. margin: 0 !important;
  63. padding: 0 !important;
  64. overflow: visible;
  65. display: block;
  66. -webkit-perspective: none;
  67. -moz-perspective: none;
  68. -ms-perspective: none;
  69. perspective: none;
  70. -webkit-perspective-origin: 50% 50%; /* there isn't a none/auto value but 50-50 is the default */
  71. -moz-perspective-origin: 50% 50%;
  72. -ms-perspective-origin: 50% 50%;
  73. perspective-origin: 50% 50%;
  74. }
  75. .reveal .slides .pdf-page {
  76. position: relative;
  77. overflow: hidden;
  78. z-index: 1;
  79. }
  80. .reveal .slides section {
  81. page-break-after: always !important;
  82. visibility: visible !important;
  83. display: block !important;
  84. position: relative !important;
  85. margin: 0 !important;
  86. padding: 0 !important;
  87. box-sizing: border-box !important;
  88. min-height: 1px;
  89. opacity: 1 !important;
  90. -webkit-transform-style: flat !important;
  91. -moz-transform-style: flat !important;
  92. -ms-transform-style: flat !important;
  93. transform-style: flat !important;
  94. -webkit-transform: none !important;
  95. -moz-transform: none !important;
  96. -ms-transform: none !important;
  97. transform: none !important;
  98. }
  99. .reveal section.stack {
  100. margin: 0 !important;
  101. padding: 0 !important;
  102. page-break-after: avoid !important;
  103. height: auto !important;
  104. min-height: auto !important;
  105. }
  106. .reveal img {
  107. box-shadow: none;
  108. }
  109. .reveal .roll {
  110. overflow: visible;
  111. line-height: 1em;
  112. }
  113. /* Slide backgrounds are placed inside of their slide when exporting to PDF */
  114. .reveal section .slide-background {
  115. display: block !important;
  116. position: absolute;
  117. top: 0;
  118. left: 0;
  119. width: 100%;
  120. height: 100%;
  121. }
  122. /* Display slide speaker notes when 'showNotes' is enabled */
  123. .reveal .speaker-notes-pdf {
  124. display: block;
  125. width: 100%;
  126. max-height: none;
  127. top: auto;
  128. right: auto;
  129. bottom: auto;
  130. left: auto;
  131. z-index: 100;
  132. }
  133. /* Layout option which makes notes appear on a separate page */
  134. .reveal .speaker-notes-pdf[data-layout="separate-page"] {
  135. position: relative;
  136. color: inherit;
  137. background-color: transparent;
  138. padding: 20px;
  139. page-break-after: always;
  140. }
  141. /* Display slide numbers when 'slideNumber' is enabled */
  142. .reveal .slide-number-pdf {
  143. display: block;
  144. position: absolute;
  145. font-size: 14px;
  146. }