print.less 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. .btn,
  63. .dropup > .btn {
  64. > .caret {
  65. border-top-color: #000 !important;
  66. }
  67. }
  68. .label {
  69. border: 1px solid #000;
  70. }
  71. .table {
  72. border-collapse: collapse !important;
  73. td,
  74. th {
  75. background-color: #fff !important;
  76. }
  77. }
  78. .table-bordered {
  79. th,
  80. td {
  81. border: 1px solid #ddd !important;
  82. }
  83. }
  84. }