pdf.css 3.9 KB

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