print.css

Same filename in this branch
  1. 11.x core/misc/print.css
  2. 11.x core/themes/stable9/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. 8.9.x core/misc/print.css
  11. 8.9.x core/themes/seven/css/base/print.css
  12. 8.9.x core/themes/claro/css/base/print.css
  13. 8.9.x core/themes/bartik/css/print.css
  14. 8.9.x core/themes/stable/css/core/print.css
  15. 10 core/misc/print.css
  16. 10 core/themes/stable9/css/core/print.css
  17. 10 core/themes/claro/css/base/print.css
/*
 * DO NOT EDIT THIS FILE.
 * See the following change record for more information,
 * https://www.drupal.org/node/3084859
 * @preserve
 */
@media print {
  * {
    /* Black prints faster */
    /* https://github.com/h5bp/main.css/blob/main/dist/_print.css#L14 */
    color: #000 !important;
    background-color: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  body {
    padding-top: 0;
  }
  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }
  thead {
    display: table-header-group;
  }
  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 {
    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 0.25rem !important;
    border-radius: 0.25rem 0.25rem 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: 0.25rem;
    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/claro/css/base/print.css

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

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