print-pdf.css 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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: 20pt;
  15. width: auto;
  16. height: auto;
  17. border: 0;
  18. margin: 0 5%;
  19. padding: 0;
  20. float: none !important;
  21. overflow: visible;
  22. }
  23. html {
  24. width: auto;
  25. height: auto;
  26. overflow: visible;
  27. }
  28. /* SECTION 2: Remove any elements not needed in print.
  29. This would include navigation, ads, sidebars, etc. */
  30. .nestedarrow,
  31. .controls a,
  32. .reveal .progress,
  33. .reveal.overview,
  34. .fork-reveal,
  35. .share-reveal,
  36. .state-background {
  37. display:none;
  38. }
  39. /* SECTION 3: Set body font face, size, and color.
  40. Consider using a serif font for readability. */
  41. body, p, td, li, div, a {
  42. font-size: 20pt;
  43. }
  44. /* SECTION 4: Set heading font face, sizes, and color.
  45. Diffrentiate your headings from your body text.
  46. Perhaps use a large sans-serif for distinction. */
  47. h1,h2,h3,h4,h5,h6 {
  48. text-shadow: 0 0 0 #000 !important;
  49. }
  50. /* SECTION 5: Make hyperlinks more usable.
  51. Ensure links are underlined, and consider appending
  52. the URL to the end of the link for usability. */
  53. a:link,
  54. a:visited {
  55. font-weight: bold;
  56. text-decoration: underline;
  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 .slides {
  69. position: static;
  70. width: 100%;
  71. height: auto;
  72. left: auto;
  73. top: auto;
  74. margin-left: auto;
  75. margin-top: auto;
  76. padding: auto;
  77. overflow: visible;
  78. display: block;
  79. text-align: center;
  80. -webkit-perspective: none;
  81. -moz-perspective: none;
  82. -ms-perspective: none;
  83. perspective: none;
  84. -webkit-perspective-origin: 50% 50%; /* there isn't a none/auto value but 50-50 is the default */
  85. -moz-perspective-origin: 50% 50%;
  86. -ms-perspective-origin: 50% 50%;
  87. perspective-origin: 50% 50%;
  88. }
  89. .reveal .slides>section, .reveal .slides>section>section,
  90. .reveal .slides>section.past, .reveal .slides>section.future,
  91. .reveal.linear .slides>section, .reveal.linear .slides>section>section,
  92. .reveal.linear .slides>section.past, .reveal.linear .slides>section.future {
  93. visibility: visible;
  94. position: static;
  95. width: 100%;
  96. height: auto;
  97. display: block;
  98. overflow: visible;
  99. left: 0%;
  100. top: 0%;
  101. margin-left: 0px;
  102. margin-top: 15%;
  103. padding: 20px 0px;
  104. opacity: 1;
  105. -webkit-transform-style: flat;
  106. -moz-transform-style: flat;
  107. -ms-transform-style: flat;
  108. transform-style: flat;
  109. -webkit-transform: none;
  110. -moz-transform: none;
  111. -ms-transform: none;
  112. transform: none;
  113. }
  114. .reveal section {
  115. page-break-after: always !important;
  116. display: block !important;
  117. }
  118. .reveal section.stack {
  119. margin-top: 0% !important;
  120. page-break-after: avoid !important;
  121. }
  122. .reveal section .fragment {
  123. opacity: 1 !important;
  124. }
  125. .reveal img {
  126. box-shadow: none;
  127. }