print.css

Same filename in this branch
  1. 8.9.x core/misc/print.css
  2. 8.9.x core/themes/claro/css/base/print.css
  3. 8.9.x core/themes/bartik/css/print.css
  4. 8.9.x core/themes/stable/css/core/print.css
Same filename in other branches
  1. 7.x misc/print.css
  2. 7.x themes/garland/print.css
  3. 7.x themes/bartik/css/print.css
  4. 9 core/misc/print.css
  5. 9 core/themes/stable9/css/core/print.css
  6. 9 core/themes/seven/css/base/print.css
  7. 9 core/themes/claro/css/base/print.css
  8. 9 core/themes/bartik/css/print.css
  9. 9 core/themes/stable/css/core/print.css
  10. 10 core/misc/print.css
  11. 10 core/themes/stable9/css/core/print.css
  12. 10 core/themes/claro/css/base/print.css
  13. 11.x core/misc/print.css
  14. 11.x core/themes/stable9/css/core/print.css
  15. 11.x core/themes/claro/css/base/print.css
@media print {
  * {
    color: #000 !important; /* Black prints faster: h5bp.com/s */
    background-color: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  body {
    padding-top: 0;
  }
  a,
  a:visited {
    text-decoration: underline;
  }
  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }
  thead {
    display: table-header-group; /* h5bp.com/t */
  }
  tr,
  img {
    page-break-inside: avoid;
  }
  img {
    max-width: 100% !important;
  }
  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }
  h2,
  h3 {
    page-break-after: avoid;
  }
  a,
  .link {
    text-decoration: underline;
    color: #000;
  }
  .button,
  .button--primary {
    background: none !important;
  }
  .messages {
    border-width: 1px;
    border-color: #999;
  }
  .is-collapse-enabled .tabs {
    max-height: 999em;
  }
  .is-horizontal .tabs__tab {
    margin: 0 4px !important;
    border-radius: 4px 4px 0 0 !important;
  }
  .dropbutton-multiple .dropbutton .secondary-action {
    display: block;
  }
  .js .dropbutton-widget,
  .js td .dropbutton-widget /* Splitbuttons */ {
    position: relative;
  }
  .js .dropbutton .dropbutton-toggle {
    display: none;
  }
  .js .dropbutton-multiple .dropbutton-widget {
    border-radius: 4px;
    background: none;
  }
  input.form-autocomplete,
  input.form-text,
  input.form-tel,
  input.form-email,
  input.form-url,
  input.form-search,
  input.form-number,
  input.form-color,
  input.form-file,
  textarea.form-textarea,
  select.form-select {
    border-width: 1px;
  }
}

File

core/themes/seven/css/base/print.css

View source
  1. @media print {
  2. * {
  3. color: #000 !important; /* Black prints faster: h5bp.com/s */
  4. background-color: transparent !important;
  5. box-shadow: none !important;
  6. text-shadow: none !important;
  7. }
  8. body {
  9. padding-top: 0;
  10. }
  11. a,
  12. a:visited {
  13. text-decoration: underline;
  14. }
  15. pre,
  16. blockquote {
  17. border: 1px solid #999;
  18. page-break-inside: avoid;
  19. }
  20. thead {
  21. display: table-header-group; /* h5bp.com/t */
  22. }
  23. tr,
  24. img {
  25. page-break-inside: avoid;
  26. }
  27. img {
  28. max-width: 100% !important;
  29. }
  30. p,
  31. h2,
  32. h3 {
  33. orphans: 3;
  34. widows: 3;
  35. }
  36. h2,
  37. h3 {
  38. page-break-after: avoid;
  39. }
  40. a,
  41. .link {
  42. text-decoration: underline;
  43. color: #000;
  44. }
  45. .button,
  46. .button--primary {
  47. background: none !important;
  48. }
  49. .messages {
  50. border-width: 1px;
  51. border-color: #999;
  52. }
  53. .is-collapse-enabled .tabs {
  54. max-height: 999em;
  55. }
  56. .is-horizontal .tabs__tab {
  57. margin: 0 4px !important;
  58. border-radius: 4px 4px 0 0 !important;
  59. }
  60. .dropbutton-multiple .dropbutton .secondary-action {
  61. display: block;
  62. }
  63. .js .dropbutton-widget,
  64. .js td .dropbutton-widget /* Splitbuttons */ {
  65. position: relative;
  66. }
  67. .js .dropbutton .dropbutton-toggle {
  68. display: none;
  69. }
  70. .js .dropbutton-multiple .dropbutton-widget {
  71. border-radius: 4px;
  72. background: none;
  73. }
  74. input.form-autocomplete,
  75. input.form-text,
  76. input.form-tel,
  77. input.form-email,
  78. input.form-url,
  79. input.form-search,
  80. input.form-number,
  81. input.form-color,
  82. input.form-file,
  83. textarea.form-textarea,
  84. select.form-select {
  85. border-width: 1px;
  86. }
  87. }

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.