print.css

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

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