pdf.css 3.5 KB

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