pdf.css 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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. /* SECTION 2: Remove any elements not needed in print.
  27. This would include navigation, ads, sidebars, etc. */
  28. .nestedarrow,
  29. .controls,
  30. .reveal .progress,
  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. font-size: 18pt;
  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: 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. 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. .reveal small a {
  128. font-size: 16pt !important;
  129. }
  130. /* Slide backgrounds are placed inside of their slide when exporting to PDF */
  131. .reveal section .slide-background {
  132. display: block !important;
  133. position: absolute;
  134. top: 0;
  135. left: 0;
  136. width: 100%;
  137. z-index: 0;
  138. }
  139. /* All elements should be above the slide-background */
  140. .reveal section>* {
  141. position: relative;
  142. z-index: 1;
  143. }