暂无描述

print.less 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. //
  58. // Chrome (OSX) fix for https://github.com/twbs/bootstrap/issues/11245
  59. // Once fixed, we can just straight up remove this.
  60. select {
  61. background: #fff !important;
  62. }
  63. // Bootstrap components
  64. .navbar {
  65. display: none;
  66. }
  67. .btn,
  68. .dropup > .btn {
  69. > .caret {
  70. border-top-color: #000 !important;
  71. }
  72. }
  73. .label {
  74. border: 1px solid #000;
  75. }
  76. .table {
  77. border-collapse: collapse !important;
  78. td,
  79. th {
  80. background-color: #fff !important;
  81. }
  82. }
  83. .table-bordered {
  84. th,
  85. td {
  86. border: 1px solid #ddd !important;
  87. }
  88. }
  89. // Bootstrap specific changes end
  90. }