_print.scss 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /******************************************************************
  2. Site Name:
  3. Author:
  4. Stylesheet: Print Stylesheet
  5. This is the print stylesheet. There's probably not a lot
  6. of reasons to edit this stylesheet. If you want to
  7. though, go for it.
  8. ******************************************************************/
  9. * {
  10. background: transparent !important;
  11. color: black !important;
  12. text-shadow: none !important;
  13. filter:none !important;
  14. -ms-filter: none !important;
  15. }
  16. a, a:visited {
  17. color: #444 !important;
  18. text-decoration: underline;
  19. // show links on printed pages
  20. &:after {
  21. content: " (" attr(href) ")";
  22. }
  23. // show title too
  24. abbr[title]:after {
  25. content: " (" attr(title) ")";
  26. }
  27. }
  28. .ir a:after,
  29. a[href^="javascript:"]:after,
  30. a[href^="#"]:after {
  31. content: "";
  32. }
  33. pre, blockquote {
  34. border: 1px solid #999;
  35. page-break-inside: avoid;
  36. }
  37. thead {
  38. display: table-header-group;
  39. }
  40. tr, img {
  41. page-break-inside: avoid;
  42. }
  43. img {
  44. max-width: 100% !important;
  45. }
  46. @page {
  47. margin: 0.5cm;
  48. }
  49. p, h2, h3 {
  50. orphans: 3;
  51. widows: 3;
  52. }
  53. h2,
  54. h3 {
  55. page-break-after: avoid;
  56. }
  57. // hide content people who print don't need to see
  58. .sidebar,
  59. .page-navigation,
  60. .wp-prev-next,
  61. .respond-form,
  62. nav {
  63. display: none;
  64. }