pdf.css 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. /* Default Print Stylesheet Template
  2. by Rob Glazebrook of CSSnewbie.com
  3. Last Updated: June 4, 2008
  4. Feel free (nay, compelled) to edit, append, and
  5. manipulate this file as you see fit. */
  6. /* SECTION 1: Set default width, margin, float, and
  7. background. This prevents elements from extending
  8. beyond the edge of the printed page, and prevents
  9. unnecessary background images from printing */
  10. * {
  11. -webkit-print-color-adjust: exact;
  12. }
  13. body {
  14. margin: 0 auto !important;
  15. border: 0;
  16. padding: 0;
  17. float: none !important;
  18. overflow: visible;
  19. }
  20. html {
  21. width: 100%;
  22. height: 100%;
  23. overflow: visible;
  24. }
  25. /* SECTION 2: Remove any elements not needed in print.
  26. This would include navigation, ads, sidebars, etc. */
  27. .nestedarrow,
  28. .reveal .controls,
  29. .reveal .progress,
  30. .reveal .playback,
  31. .reveal.overview,
  32. .fork-reveal,
  33. .share-reveal,
  34. .state-background {
  35. display: none !important;
  36. }
  37. /* SECTION 3: Set body font face, size, and color.
  38. Consider using a serif font for readability. */
  39. body, p, td, li, div {
  40. }
  41. /* SECTION 4: Set heading font face, sizes, and color.
  42. Differentiate your headings from your body text.
  43. Perhaps use a large sans-serif for distinction. */
  44. h1,h2,h3,h4,h5,h6 {
  45. text-shadow: 0 0 0 #000 !important;
  46. }
  47. .reveal pre code {
  48. overflow: hidden !important;
  49. font-family: Courier, 'Courier New', monospace !important;
  50. }
  51. /* SECTION 5: more reveal.js specific additions by @skypanther */
  52. ul, ol, div, p {
  53. visibility: visible;
  54. position: static;
  55. width: auto;
  56. height: auto;
  57. display: block;
  58. overflow: visible;
  59. margin: auto;
  60. }
  61. .reveal {
  62. width: auto !important;
  63. height: auto !important;
  64. overflow: hidden !important;
  65. }
  66. .reveal .slides {
  67. position: static;
  68. width: 100%;
  69. height: auto;
  70. left: auto;
  71. top: auto;
  72. margin: 0 !important;
  73. padding: 0 !important;
  74. overflow: visible;
  75. display: block;
  76. -webkit-perspective: none;
  77. -moz-perspective: none;
  78. -ms-perspective: none;
  79. perspective: none;
  80. -webkit-perspective-origin: 50% 50%; /* there isn't a none/auto value but 50-50 is the default */
  81. -moz-perspective-origin: 50% 50%;
  82. -ms-perspective-origin: 50% 50%;
  83. perspective-origin: 50% 50%;
  84. }
  85. .reveal .slides section {
  86. page-break-after: always !important;
  87. visibility: visible !important;
  88. position: relative !important;
  89. display: block !important;
  90. position: relative !important;
  91. margin: 0 !important;
  92. padding: 0 !important;
  93. box-sizing: border-box !important;
  94. min-height: 1px;
  95. opacity: 1 !important;
  96. -webkit-transform-style: flat !important;
  97. -moz-transform-style: flat !important;
  98. -ms-transform-style: flat !important;
  99. transform-style: flat !important;
  100. -webkit-transform: none !important;
  101. -moz-transform: none !important;
  102. -ms-transform: none !important;
  103. transform: none !important;
  104. }
  105. .reveal section.stack {
  106. margin: 0 !important;
  107. padding: 0 !important;
  108. page-break-after: avoid !important;
  109. height: auto !important;
  110. min-height: auto !important;
  111. }
  112. .reveal img {
  113. box-shadow: none;
  114. }
  115. .reveal .roll {
  116. overflow: visible;
  117. line-height: 1em;
  118. }
  119. /* Slide backgrounds are placed inside of their slide when exporting to PDF */
  120. .reveal section .slide-background {
  121. display: block !important;
  122. position: absolute;
  123. top: 0;
  124. left: 0;
  125. width: 100%;
  126. z-index: -1;
  127. }
  128. /* All elements should be above the slide-background */
  129. .reveal section>* {
  130. position: relative;
  131. z-index: 1;
  132. }
  133. /* Display slide speaker notes when 'showNotes' is enabled */
  134. .reveal .speaker-notes-pdf {
  135. display: block;
  136. width: 100%;
  137. max-height: none;
  138. left: auto;
  139. top: auto;
  140. z-index: 100;
  141. }
  142. /* Display slide numbers when 'slideNumber' is enabled */
  143. .reveal .slide-number {
  144. display: none;
  145. }
  146. .reveal .slide-number-pdf {
  147. display: block;
  148. position: absolute;
  149. font-size: 14px;
  150. }