_print.scss 942 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. @include print {
  2. ._header, ._sidebar, ._path, ._notif, ._toc, ._pre-clip, ._notice, ._links {
  3. display: none !important;
  4. }
  5. body, ._app, ._container, ._content {
  6. margin: 0;
  7. padding: 0;
  8. height: initial;
  9. background: none;
  10. &:after {
  11. content: '';
  12. clear: both;
  13. }
  14. }
  15. ::-webkit-scrollbar {
  16. display: none;
  17. }
  18. %external-link:after {
  19. display: none;
  20. }
  21. ._attribution-p {
  22. background: none;
  23. border: 2px solid var(--boxBorder);
  24. }
  25. ._attribution:last-child:after {
  26. content: 'Exported from DevDocs \2014 https://devdocs.io';
  27. display: block;
  28. margin-top: 1rem;
  29. font-weight: var(--bolderFontWeight);
  30. }
  31. ._attribution {
  32. page-break-inside: avoid;
  33. }
  34. h1, h2, h3, h4, h5, h6 {
  35. page-break-inside: avoid;
  36. page-break-after: avoid;
  37. }
  38. pre {
  39. page-break-before: avoid;
  40. orphans: 5;
  41. widows: 5;
  42. }
  43. p {
  44. orphans: 2;
  45. widows: 2;
  46. }
  47. }