_print.scss 921 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * Misc: Print
  3. * -----------
  4. */
  5. @media print {
  6. //Add to elements that you do not want to show when printing
  7. .no-print {
  8. display: none !important;
  9. }
  10. //Elements that we want to hide when printing
  11. .main-sidebar,
  12. .main-header,
  13. .content-header {
  14. @extend .no-print;
  15. }
  16. //This is the only element that should appear, so let's remove the margins
  17. .content-wrapper,
  18. .main-footer {
  19. @include translate(0, 0);
  20. margin-left: 0 !important;
  21. min-height: 0 !important;
  22. }
  23. .layout-fixed .content-wrapper {
  24. padding-top: 0 !important;
  25. }
  26. //Invoice printing
  27. .invoice {
  28. border: 0;
  29. margin: 0;
  30. padding: 0;
  31. width: 100%;
  32. }
  33. .invoice-col {
  34. float: left;
  35. width: 33.3333333%;
  36. }
  37. //Make sure table content displays properly
  38. .table-responsive {
  39. overflow: auto;
  40. > .table tr th,
  41. > .table tr td {
  42. white-space: normal !important;
  43. }
  44. }
  45. }