pdf.css 3.6 KB

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