_print.scss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. // scss-lint:disable QualifyingElement
  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:
  6. // http://www.phpied.com/delay-loading-your-print-css/
  7. // ==========================================================================
  8. @if $enable-print-styles {
  9. @media print {
  10. *,
  11. *::before,
  12. *::after,
  13. *::first-letter,
  14. p::first-line,
  15. div::first-line,
  16. blockquote::first-line,
  17. li::first-line {
  18. // Bootstrap specific; comment out `color` and `background`
  19. //color: #000 !important; // Black prints faster:
  20. // http://www.sanbeiji.com/archives/953
  21. text-shadow: none !important;
  22. //background: transparent !important;
  23. box-shadow: none !important;
  24. }
  25. a,
  26. a:visited {
  27. text-decoration: underline;
  28. }
  29. // Bootstrap specific; comment the following selector out
  30. //a[href]::after {
  31. // content: " (" attr(href) ")";
  32. //}
  33. abbr[title]::after {
  34. content: " (" attr(title) ")";
  35. }
  36. // Bootstrap specific; comment the following selector out
  37. //
  38. // Don't show links that are fragment identifiers,
  39. // or use the `javascript:` pseudo protocol
  40. //
  41. //a[href^="#"]::after,
  42. //a[href^="javascript:"]::after {
  43. // content: "";
  44. //}
  45. pre {
  46. white-space: pre-wrap !important;
  47. }
  48. pre,
  49. blockquote {
  50. border: $border-width solid #999; // Bootstrap custom code; using `$border-width` instead of 1px
  51. page-break-inside: avoid;
  52. }
  53. //
  54. // Printing Tables:
  55. // http://css-discuss.incutio.com/wiki/Printing_Tables
  56. //
  57. thead {
  58. display: table-header-group;
  59. }
  60. tr,
  61. img {
  62. page-break-inside: avoid;
  63. }
  64. p,
  65. h2,
  66. h3 {
  67. orphans: 3;
  68. widows: 3;
  69. }
  70. h2,
  71. h3 {
  72. page-break-after: avoid;
  73. }
  74. // Bootstrap specific changes start
  75. // Bootstrap components
  76. .navbar {
  77. display: none;
  78. }
  79. .btn,
  80. .dropup > .btn {
  81. > .caret {
  82. border-top-color: #000 !important;
  83. }
  84. }
  85. .tag {
  86. border: $border-width solid #000;
  87. }
  88. .table {
  89. border-collapse: collapse !important;
  90. td,
  91. th {
  92. background-color: #fff !important;
  93. }
  94. }
  95. .table-bordered {
  96. th,
  97. td {
  98. border: 1px solid #ddd !important;
  99. }
  100. }
  101. // Bootstrap specific changes end
  102. }
  103. }