You are here

print.css in AT Tools 8

/**
 * Print
 * This aggressively styles print output, you can remove all of it if you want
 * print to be identical to a normal web page, or adjust it to better suit
 * your design and requirements. For example this only removes a sub-set of
 * regions, all others will print.
 ============================================================================ */
@media print {
  * {
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  html,
  body,
  .l-rw,
  .pr-main .l-r--content,
  .block-main-content,
  article {
    width: 100% !important;
    padding: 0;
    margin: 0;
  }

  body {
    top: 0;
    padding: 0 !important;
    margin: 0 !important;
  }

  .pr-main .l-r--content,
  .block-main-content {
    float: none;
  }

  [id*="toolbar-"],
  [class*="_sidebar-"],
  .pr-navbar,
  .l-rw-navbar,
  .l-r--page-top,
  .l-r--page-bottom,
  .pr-temporary-tabs,
  .comment-form-wrapper,
  .block-breadcrumbs,
  .links,
  .contextual,
  .tabs,
  .feed-icons,
  .messages {
    display: none !important;
    width: 0;
    height: 0;
    float: none;
  }

  .node--view-mode-teaser {
    border-bottom: 1px dotted silver;
    margin-bottom: 1em;
  }

  a,
  a:visited {
    text-decoration: underline;
    color: #0066cc !important;
  }

  .site-branding a,
  .node__title a {
    text-decoration: none;
  }

  .block,
  .node,
  .comment,
  .page__row,
  .regions,
  .region {
    margin: 0 0 12px;
  }

  .menu a {
    padding: 0 16px 7px 0;
    padding: 0 1rem 0.4375rem 0;
  }

  [dir="rtl"] .menu a {
    padding: 0 0 7px 16px;
    padding: 0 0 0.4375rem 1rem;
  }

  /* Don't show links for images, or javascript/internal links */
  .ir a:after,
  a[href^="javascript:"]:after,
  a[href^="#"]:after {
    content: "";
  }

  body,
  img,
  caption,
  .page,
  .field,
  .block,
  .comment,
  .node,
  .view,
  .page__row,
  .regions,
  .region {
    border: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  pre,
  code,
  img,
  svg,
  tr,
  blockquote {
    page-break-inside: avoid;
  }

  thead {
    display: table-header-group;
    /* h5bp.com/t */
  }

  img {
    max-width: 100%;
  }

  @page {
    margin: 0.5cm;
  }
  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h1,
  h2 {
    page-break-after: avoid;
  }
}

/*# sourceMappingURL=maps/print.css.map */

File

at_theme_generator/starterkits/starterkit/styles/css/components/print.css
View source
  1. /**
  2. * Print
  3. * This aggressively styles print output, you can remove all of it if you want
  4. * print to be identical to a normal web page, or adjust it to better suit
  5. * your design and requirements. For example this only removes a sub-set of
  6. * regions, all others will print.
  7. ============================================================================ */
  8. @media print {
  9. * {
  10. background: transparent !important;
  11. box-shadow: none !important;
  12. text-shadow: none !important;
  13. }
  14. html,
  15. body,
  16. .l-rw,
  17. .pr-main .l-r--content,
  18. .block-main-content,
  19. article {
  20. width: 100% !important;
  21. padding: 0;
  22. margin: 0;
  23. }
  24. body {
  25. top: 0;
  26. padding: 0 !important;
  27. margin: 0 !important;
  28. }
  29. .pr-main .l-r--content,
  30. .block-main-content {
  31. float: none;
  32. }
  33. [id*="toolbar-"],
  34. [class*="_sidebar-"],
  35. .pr-navbar,
  36. .l-rw-navbar,
  37. .l-r--page-top,
  38. .l-r--page-bottom,
  39. .pr-temporary-tabs,
  40. .comment-form-wrapper,
  41. .block-breadcrumbs,
  42. .links,
  43. .contextual,
  44. .tabs,
  45. .feed-icons,
  46. .messages {
  47. display: none !important;
  48. width: 0;
  49. height: 0;
  50. float: none;
  51. }
  52. .node--view-mode-teaser {
  53. border-bottom: 1px dotted silver;
  54. margin-bottom: 1em;
  55. }
  56. a,
  57. a:visited {
  58. text-decoration: underline;
  59. color: #0066cc !important;
  60. }
  61. .site-branding a,
  62. .node__title a {
  63. text-decoration: none;
  64. }
  65. .block,
  66. .node,
  67. .comment,
  68. .page__row,
  69. .regions,
  70. .region {
  71. margin: 0 0 12px;
  72. }
  73. .menu a {
  74. padding: 0 16px 7px 0;
  75. padding: 0 1rem 0.4375rem 0;
  76. }
  77. [dir="rtl"] .menu a {
  78. padding: 0 0 7px 16px;
  79. padding: 0 0 0.4375rem 1rem;
  80. }
  81. /* Don't show links for images, or javascript/internal links */
  82. .ir a:after,
  83. a[href^="javascript:"]:after,
  84. a[href^="#"]:after {
  85. content: "";
  86. }
  87. body,
  88. img,
  89. caption,
  90. .page,
  91. .field,
  92. .block,
  93. .comment,
  94. .node,
  95. .view,
  96. .page__row,
  97. .regions,
  98. .region {
  99. border: 0 !important;
  100. box-shadow: none !important;
  101. text-shadow: none !important;
  102. }
  103. pre,
  104. code,
  105. img,
  106. svg,
  107. tr,
  108. blockquote {
  109. page-break-inside: avoid;
  110. }
  111. thead {
  112. display: table-header-group;
  113. /* h5bp.com/t */
  114. }
  115. img {
  116. max-width: 100%;
  117. }
  118. @page {
  119. margin: 0.5cm;
  120. }
  121. p,
  122. h2,
  123. h3 {
  124. orphans: 3;
  125. widows: 3;
  126. }
  127. h1,
  128. h2 {
  129. page-break-after: avoid;
  130. }
  131. }
  132. /*# sourceMappingURL=maps/print.css.map */