print.less 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. // stylelint-disable declaration-no-important, selector-no-qualifying-type
  2. /*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */
  3. // ==========================================================================
  4. // Print styles.
  5. // Inlined to avoid the additional HTTP request: h5bp.com/r
  6. // ==========================================================================
  7. @media print {
  8. *,
  9. *:before,
  10. *:after {
  11. color: #000 !important; // Black prints faster: h5bp.com/s
  12. text-shadow: none !important;
  13. background: transparent !important;
  14. box-shadow: none !important;
  15. }
  16. a,
  17. a:visited {
  18. text-decoration: underline;
  19. }
  20. a[href]:after {
  21. content: ' (' attr(href) ')';
  22. }
  23. abbr[title]:after {
  24. content: ' (' attr(title) ')';
  25. }
  26. // Don't show links that are fragment identifiers,
  27. // or use the `javascript:` pseudo protocol
  28. a[href^='#']:after,
  29. a[href^='javascript:']:after {
  30. content: '';
  31. }
  32. pre,
  33. blockquote {
  34. border: 1px solid #999;
  35. page-break-inside: avoid;
  36. }
  37. thead {
  38. display: table-header-group; // h5bp.com/t
  39. }
  40. tr,
  41. img {
  42. page-break-inside: avoid;
  43. }
  44. img {
  45. max-width: 100% !important;
  46. }
  47. p,
  48. h2,
  49. h3 {
  50. orphans: 3;
  51. widows: 3;
  52. }
  53. h2,
  54. h3 {
  55. page-break-after: avoid;
  56. }
  57. // Bootstrap specific changes start
  58. // Bootstrap components
  59. .navbar {
  60. display: none;
  61. }
  62. .label {
  63. border: 1px solid #000;
  64. }
  65. .table {
  66. border-collapse: collapse !important;
  67. td,
  68. th {
  69. background-color: #fff !important;
  70. }
  71. }
  72. }