pdf.css 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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 .slide-number,
  31. .reveal .playback,
  32. .reveal.overview,
  33. .fork-reveal,
  34. .share-reveal,
  35. .state-background {
  36. display: none !important;
  37. }
  38. /* SECTION 3: Set body font face, size, and color.
  39. Consider using a serif font for readability. */
  40. body, p, td, li, div {
  41. }
  42. /* SECTION 4: Set heading font face, sizes, and color.
  43. Differentiate your headings from your body text.
  44. Perhaps use a large sans-serif for distinction. */
  45. h1,h2,h3,h4,h5,h6 {
  46. text-shadow: 0 0 0 #000 !important;
  47. }
  48. .reveal pre code {
  49. overflow: hidden !important;
  50. font-family: Courier, 'Courier New', monospace !important;
  51. }
  52. .reveal .speaker-notes {
  53. display: block;
  54. width: 100%;
  55. max-height: none;
  56. left: auto;
  57. top: auto;
  58. }
  59. /* SECTION 5: more reveal.js specific additions by @skypanther */
  60. ul, ol, div, p {
  61. visibility: visible;
  62. position: static;
  63. width: auto;
  64. height: auto;
  65. display: block;
  66. overflow: visible;
  67. margin: auto;
  68. }
  69. .reveal {
  70. width: auto !important;
  71. height: auto !important;
  72. overflow: hidden !important;
  73. }
  74. .reveal .slides {
  75. position: static;
  76. width: 100%;
  77. height: auto;
  78. left: auto;
  79. top: auto;
  80. margin: 0 !important;
  81. padding: 0 !important;
  82. overflow: visible;
  83. display: block;
  84. -webkit-perspective: none;
  85. -moz-perspective: none;
  86. -ms-perspective: none;
  87. perspective: none;
  88. -webkit-perspective-origin: 50% 50%; /* there isn't a none/auto value but 50-50 is the default */
  89. -moz-perspective-origin: 50% 50%;
  90. -ms-perspective-origin: 50% 50%;
  91. perspective-origin: 50% 50%;
  92. }
  93. .reveal .slides section {
  94. page-break-after: always !important;
  95. visibility: visible !important;
  96. position: relative !important;
  97. display: block !important;
  98. position: relative !important;
  99. margin: 0 !important;
  100. padding: 0 !important;
  101. box-sizing: border-box !important;
  102. min-height: 1px;
  103. opacity: 1 !important;
  104. -webkit-transform-style: flat !important;
  105. -moz-transform-style: flat !important;
  106. -ms-transform-style: flat !important;
  107. transform-style: flat !important;
  108. -webkit-transform: none !important;
  109. -moz-transform: none !important;
  110. -ms-transform: none !important;
  111. transform: none !important;
  112. }
  113. .reveal section.stack {
  114. margin: 0 !important;
  115. padding: 0 !important;
  116. page-break-after: avoid !important;
  117. height: auto !important;
  118. min-height: auto !important;
  119. }
  120. .reveal img {
  121. box-shadow: none;
  122. }
  123. .reveal .roll {
  124. overflow: visible;
  125. line-height: 1em;
  126. }
  127. /* Slide backgrounds are placed inside of their slide when exporting to PDF */
  128. .reveal section .slide-background {
  129. display: block !important;
  130. position: absolute;
  131. top: 0;
  132. left: 0;
  133. width: 100%;
  134. z-index: -1;
  135. }
  136. /* All elements should be above the slide-background */
  137. .reveal section>* {
  138. position: relative;
  139. z-index: 1;
  140. }