_print.scss 1.9 KB

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