pdf.css 3.7 KB

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