pdf.css 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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. font-size: 18pt;
  15. margin: 0 auto !important;
  16. border: 0;
  17. padding: 0;
  18. float: none !important;
  19. overflow: visible;
  20. }
  21. html {
  22. width: 100%;
  23. height: 100%;
  24. overflow: visible;
  25. }
  26. @page {
  27. size: letter landscape;
  28. margin: 0;
  29. }
  30. /* SECTION 2: Remove any elements not needed in print.
  31. This would include navigation, ads, sidebars, etc. */
  32. .nestedarrow,
  33. .controls,
  34. .reveal .progress,
  35. .reveal.overview,
  36. .fork-reveal,
  37. .share-reveal,
  38. .state-background {
  39. display: none !important;
  40. }
  41. /* SECTION 3: Set body font face, size, and color.
  42. Consider using a serif font for readability. */
  43. body, p, td, li, div {
  44. font-size: 18pt;
  45. }
  46. /* SECTION 4: Set heading font face, sizes, and color.
  47. Differentiate your headings from your body text.
  48. Perhaps use a large sans-serif for distinction. */
  49. h1,h2,h3,h4,h5,h6 {
  50. text-shadow: 0 0 0 #000 !important;
  51. }
  52. /* SECTION 5: Make hyperlinks more usable.
  53. Ensure links are underlined, and consider appending
  54. the URL to the end of the link for usability. */
  55. a:link,
  56. a:visited {
  57. font-weight: normal;
  58. text-decoration: underline;
  59. }
  60. .reveal pre code {
  61. overflow: hidden !important;
  62. font-family: monospace !important;
  63. }
  64. /* SECTION 6: more reveal.js specific additions by @skypanther */
  65. ul, ol, div, p {
  66. visibility: visible;
  67. position: static;
  68. width: auto;
  69. height: auto;
  70. display: block;
  71. overflow: visible;
  72. margin: auto;
  73. }
  74. .reveal {
  75. width: auto !important;
  76. height: auto !important;
  77. overflow: hidden !important;
  78. }
  79. .reveal .slides {
  80. position: static;
  81. width: 100%;
  82. height: auto;
  83. left: auto;
  84. top: auto;
  85. margin: 0 !important;
  86. padding: 0 !important;
  87. overflow: visible;
  88. display: block;
  89. -webkit-perspective: none;
  90. -moz-perspective: none;
  91. -ms-perspective: none;
  92. perspective: none;
  93. -webkit-perspective-origin: 50% 50%; /* there isn't a none/auto value but 50-50 is the default */
  94. -moz-perspective-origin: 50% 50%;
  95. -ms-perspective-origin: 50% 50%;
  96. perspective-origin: 50% 50%;
  97. }
  98. .reveal .slides section {
  99. page-break-after: always !important;
  100. visibility: visible !important;
  101. position: relative !important;
  102. display: block !important;
  103. position: relative !important;
  104. margin: 0 !important;
  105. padding: 0 !important;
  106. box-sizing: border-box !important;
  107. opacity: 1 !important;
  108. -webkit-transform-style: flat !important;
  109. -moz-transform-style: flat !important;
  110. -ms-transform-style: flat !important;
  111. transform-style: flat !important;
  112. -webkit-transform: none !important;
  113. -moz-transform: none !important;
  114. -ms-transform: none !important;
  115. transform: none !important;
  116. }
  117. .reveal section.stack {
  118. margin: 0 !important;
  119. padding: 0 !important;
  120. page-break-after: avoid !important;
  121. height: auto !important;
  122. min-height: auto !important;
  123. }
  124. .reveal img {
  125. box-shadow: none;
  126. }
  127. .reveal .roll {
  128. overflow: visible;
  129. line-height: 1em;
  130. }
  131. .reveal small a {
  132. font-size: 16pt !important;
  133. }
  134. /* Slide backgrounds are placed inside of their slide when exporting to PDF */
  135. .reveal section .slide-background {
  136. position: absolute;
  137. top: 0;
  138. left: 0;
  139. width: 100%;
  140. z-index: 0;
  141. }
  142. /* All elements should be above the slide-background */
  143. .reveal section>* {
  144. position: relative;
  145. z-index: 1;
  146. }