pdf.css 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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. /* SECTION 5: more reveal.js specific additions by @skypanther */
  53. ul, ol, div, p {
  54. visibility: visible;
  55. position: static;
  56. width: auto;
  57. height: auto;
  58. display: block;
  59. overflow: visible;
  60. margin: auto;
  61. }
  62. .reveal {
  63. width: auto !important;
  64. height: auto !important;
  65. overflow: hidden !important;
  66. }
  67. .reveal .slides {
  68. position: static;
  69. width: 100%;
  70. height: auto;
  71. left: auto;
  72. top: auto;
  73. margin: 0 !important;
  74. padding: 0 !important;
  75. overflow: visible;
  76. display: block;
  77. -webkit-perspective: none;
  78. -moz-perspective: none;
  79. -ms-perspective: none;
  80. perspective: none;
  81. -webkit-perspective-origin: 50% 50%; /* there isn't a none/auto value but 50-50 is the default */
  82. -moz-perspective-origin: 50% 50%;
  83. -ms-perspective-origin: 50% 50%;
  84. perspective-origin: 50% 50%;
  85. }
  86. .reveal .slides section {
  87. page-break-after: always !important;
  88. visibility: visible !important;
  89. position: relative !important;
  90. display: block !important;
  91. position: relative !important;
  92. margin: 0 !important;
  93. padding: 0 !important;
  94. box-sizing: border-box !important;
  95. min-height: 1px;
  96. opacity: 1 !important;
  97. -webkit-transform-style: flat !important;
  98. -moz-transform-style: flat !important;
  99. -ms-transform-style: flat !important;
  100. transform-style: flat !important;
  101. -webkit-transform: none !important;
  102. -moz-transform: none !important;
  103. -ms-transform: none !important;
  104. transform: none !important;
  105. }
  106. .reveal section.stack {
  107. margin: 0 !important;
  108. padding: 0 !important;
  109. page-break-after: avoid !important;
  110. height: auto !important;
  111. min-height: auto !important;
  112. }
  113. .reveal img {
  114. box-shadow: none;
  115. }
  116. .reveal .roll {
  117. overflow: visible;
  118. line-height: 1em;
  119. }
  120. /* Slide backgrounds are placed inside of their slide when exporting to PDF */
  121. .reveal section .slide-background {
  122. display: block !important;
  123. position: absolute;
  124. top: 0;
  125. left: 0;
  126. width: 100%;
  127. z-index: -1;
  128. }
  129. /* All elements should be above the slide-background */
  130. .reveal section>* {
  131. position: relative;
  132. z-index: 1;
  133. }