print.css 3.9 KB

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