pdf.css 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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 {
  73. width: auto !important;
  74. height: auto !important;
  75. overflow: hidden !important;
  76. }
  77. .reveal .slides {
  78. position: static;
  79. width: 100%;
  80. height: auto;
  81. left: auto;
  82. top: auto;
  83. margin: 0 !important;
  84. padding: 0 !important;
  85. overflow: visible;
  86. display: block;
  87. text-align: center;
  88. -webkit-perspective: none;
  89. -moz-perspective: none;
  90. -ms-perspective: none;
  91. perspective: none;
  92. -webkit-perspective-origin: 50% 50%; /* there isn't a none/auto value but 50-50 is the default */
  93. -moz-perspective-origin: 50% 50%;
  94. -ms-perspective-origin: 50% 50%;
  95. perspective-origin: 50% 50%;
  96. }
  97. .reveal .slides section {
  98. page-break-after: always !important;
  99. visibility: visible !important;
  100. position: relative !important;
  101. width: 100% !important;
  102. height: 229mm !important;
  103. min-height: 229mm !important;
  104. display: block !important;
  105. overflow: hidden !important;
  106. left: 0 !important;
  107. top: 0 !important;
  108. margin: 0 !important;
  109. padding: 2cm 2cm 0 2cm !important;
  110. box-sizing: border-box !important;
  111. opacity: 1 !important;
  112. -webkit-transform-style: flat !important;
  113. -moz-transform-style: flat !important;
  114. -ms-transform-style: flat !important;
  115. transform-style: flat !important;
  116. -webkit-transform: none !important;
  117. -moz-transform: none !important;
  118. -ms-transform: none !important;
  119. transform: none !important;
  120. }
  121. .reveal section.stack {
  122. margin: 0 !important;
  123. padding: 0 !important;
  124. page-break-after: avoid !important;
  125. height: auto !important;
  126. min-height: auto !important;
  127. }
  128. .reveal .absolute-element {
  129. margin-left: 2.2cm;
  130. margin-top: 1.8cm;
  131. }
  132. .reveal section .fragment {
  133. opacity: 1 !important;
  134. visibility: visible !important;
  135. -webkit-transform: none !important;
  136. -moz-transform: none !important;
  137. -ms-transform: none !important;
  138. transform: none !important;
  139. }
  140. .reveal section .slide-background {
  141. position: absolute;
  142. top: 0;
  143. left: 0;
  144. width: 100%;
  145. z-index: 0;
  146. }
  147. .reveal section>* {
  148. position: relative;
  149. z-index: 1;
  150. }
  151. .reveal img {
  152. box-shadow: none;
  153. }
  154. .reveal .roll {
  155. overflow: visible;
  156. line-height: 1em;
  157. }
  158. .reveal small a {
  159. font-size: 16pt !important;
  160. }